From ff222d0a8cd72f5bdc1b2be5e6c207e31be4ad10 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 20 Jan 2018 17:20:06 +0100 Subject: vimrc: Add sp mapping to toggle spell checking One frustration that happens every so often is having to manually type `:set spe` or `:set nosp` 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. --- vimrc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vimrc') 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 sp mapping to toggle spell checking. +" " Pathogen @@ -753,6 +756,9 @@ nnoremap cf :call system('pbcopy', expand('%')) " Save the current session to a file nnoremap mk :mksession! vimsession +" Toggle spell checking +nnoremap sp :set spell! spell? + " Project Settings -- cgit v1.2.3