aboutsummaryrefslogtreecommitdiff
path: root/after/ftplugin/vim.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2022-11-15 01:08:56 +0800
committerjdhao <jdhao@hotmail.com>2022-11-15 01:10:26 +0800
commit074d2bbdfdbdb0ce0d7631a3b9406bd172e0d851 (patch)
treef41a40be27af23b6415c7422c94cc3073cc1a491 /after/ftplugin/vim.vim
parent7f9af87185983e0c89871ed94c02107cc7624f9c (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.vim2
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>