diff options
| author | Teddy Wing | 2018-02-05 20:39:09 +0100 | 
|---|---|---|
| committer | Teddy Wing | 2018-02-05 20:39:09 +0100 | 
| commit | 921d2a1bf301f7085fe3f09b7688f75f6f151225 (patch) | |
| tree | b894f98a6a8d352167b61b409a3b1e4341e467ad | |
| parent | ff222d0a8cd72f5bdc1b2be5e6c207e31be4ad10 (diff) | |
| download | dotvim-921d2a1bf301f7085fe3f09b7688f75f6f151225.tar.bz2 | |
vimrc: Make <leader>sp mapping use `setlocal`
Toggling spell checking should not happen for the entire Vim session,
only for the current buffer. We don't want to be editing regular text
and then switch into a code file and find spell checking turned on.
| -rw-r--r-- | vimrc | 5 | 
1 files changed, 4 insertions, 1 deletions
| @@ -391,6 +391,9 @@  "   2018.01.10:  "       * Add <leader>sp mapping to toggle spell checking.  " +"   2018.02.05: +"       * Make <leader>sp use `setlocal`. +"  " Pathogen @@ -757,7 +760,7 @@ nnoremap <leader>cf :call system('pbcopy', expand('%'))<cr>  nnoremap <leader>mk :mksession! vimsession<cr>  " Toggle spell checking -nnoremap <leader>sp :set spell! spell?<cr> +nnoremap <leader>sp :setlocal spell! spell?<cr> | 
