mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
make filetype mapping local
Otherwise, the mapping will be global and leak to unrelated to files.
This commit is contained in:
parent
7f9af87185
commit
074d2bbdfd
@ -2,7 +2,7 @@
|
||||
set formatoptions-=o
|
||||
set formatoptions-=r
|
||||
|
||||
nnoremap <silent> <F9> :luafile %<CR>
|
||||
nnoremap <buffer><silent> <F9> :luafile %<CR>
|
||||
|
||||
" For delimitMate
|
||||
let b:delimitMate_matchpairs = "(:),[:],{:}"
|
||||
|
||||
@ -12,4 +12,4 @@ set foldmethod=expr foldexpr=utils#VimFolds(v:lnum) foldtext=utils#MyFoldText()
|
||||
" see `:h K` and https://stackoverflow.com/q/15867323/6064933
|
||||
set keywordprg=:help
|
||||
|
||||
nnoremap <silent> <F9> :source %<CR>
|
||||
nnoremap <buffer><silent> <F9> :source %<CR>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user