diff options
| author | jdhao <jdhao@hotmail.com> | 2022-11-15 01:08:56 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2022-11-15 01:10:26 +0800 |
| commit | 074d2bbdfdbdb0ce0d7631a3b9406bd172e0d851 (patch) | |
| tree | f41a40be27af23b6415c7422c94cc3073cc1a491 /after/ftplugin/lua.vim | |
| parent | 7f9af87185983e0c89871ed94c02107cc7624f9c (diff) | |
make filetype mapping local
Otherwise, the mapping will be global and leak to unrelated to files.
Diffstat (limited to 'after/ftplugin/lua.vim')
| -rw-r--r-- | after/ftplugin/lua.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/after/ftplugin/lua.vim b/after/ftplugin/lua.vim index 193a5d1..73b1a8f 100644 --- a/after/ftplugin/lua.vim +++ b/after/ftplugin/lua.vim @@ -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 = "(:),[:],{:}" |
