aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-01-20 17:20:06 +0100
committerTeddy Wing2018-01-20 17:20:06 +0100
commitff222d0a8cd72f5bdc1b2be5e6c207e31be4ad10 (patch)
tree6e543ea0b0cc2edf48c2c502a4209b77979f9323
parenta4d9cd7491b7b63318318a86c5e64df86fb4e56a (diff)
downloaddotvim-ff222d0a8cd72f5bdc1b2be5e6c207e31be4ad10.tar.bz2
vimrc: Add <leader>sp mapping to toggle spell checking
One frustration that happens every so often is having to manually type `:set spe<Tab><CR>` or `:set nosp<Tab><CR>` to turn spell checking on and off. It's not often that I need to toggle spell checking, but when I do, I notice it as being bothersome. I think it's finally time to add a mapping for this.
-rw-r--r--vimrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 7c0834d..b5c7642 100644
--- a/vimrc
+++ b/vimrc
@@ -388,6 +388,9 @@
" 2017.11.28:
" * Log statistics of RSpec commands to gather usage data.
"
+" 2018.01.10:
+" * Add <leader>sp mapping to toggle spell checking.
+"
" Pathogen
@@ -753,6 +756,9 @@ nnoremap <leader>cf :call system('pbcopy', expand('%'))<cr>
" Save the current session to a file
nnoremap <leader>mk :mksession! vimsession<cr>
+" Toggle spell checking
+nnoremap <leader>sp :set spell! spell?<cr>
+
" Project Settings