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/vim.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/vim.vim')
| -rw-r--r-- | after/ftplugin/vim.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/after/ftplugin/vim.vim b/after/ftplugin/vim.vim index 4e9a2a4..17dcedb 100644 --- a/after/ftplugin/vim.vim +++ b/after/ftplugin/vim.vim @@ -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> |
