1
0
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:
jdhao 2022-11-15 01:08:56 +08:00
parent 7f9af87185
commit 074d2bbdfd
2 changed files with 2 additions and 2 deletions

View File

@ -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 = "(:),[:],{:}"

View File

@ -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>