diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-11 09:49:09 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-11 09:49:09 +1200 |
commit | 31662311f9f8f65dd63be05c1474e5d3df77fa95 (patch) | |
tree | 281e20ae4f1ea0ac74b9d69dc08ee76736cc9af4 /vim/plugin | |
parent | Factor out :FileTypeReload into a function (diff) | |
download | dotfiles-31662311f9f8f65dd63be05c1474e5d3df77fa95.tar.gz dotfiles-31662311f9f8f65dd63be05c1474e5d3df77fa95.zip |
Move spellfile local mapping into function
Diffstat (limited to 'vim/plugin')
-rw-r--r-- | vim/plugin/spellfile_local.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vim/plugin/spellfile_local.vim b/vim/plugin/spellfile_local.vim index 302854f4..6e04babf 100644 --- a/vim/plugin/spellfile_local.vim +++ b/vim/plugin/spellfile_local.vim @@ -21,6 +21,7 @@ function! AddLocalSpellfile() abort \ ], '.') . '.add' setlocal spellfile< execute 'setlocal spellfile+=$MYVIM/cache/spell/local/'.spellfile + nnoremap <buffer> zG 2zg endfunction autocmd vimrc BufRead * - \ call AddLocalSpellfile() | nnoremap <buffer> zG 2zg + \ call AddLocalSpellFile() |