aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-04-25 21:38:46 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-04-25 21:38:46 +0200
commit3b97fe6f553c236ea614a4ae24fc848d799b8eec (patch)
tree4532ab588f666847cbc70343b57d35c98d51dc6a
parent15d7dde3e8043efcb96cf0a0c9e73f54308306ba (diff)
downloaddotfiles-3b97fe6f553c236ea614a4ae24fc848d799b8eec.tar.xz
vim: Add vimspell toggle keybinding
-rw-r--r--vim/vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index f80cf09..26ed2d5 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -64,6 +64,9 @@ set linebreak " Don’t wrap lines in the middle of a word
map <space> <Leader>
nmap <silent> <Leader>/ :nohlsearch<CR>
+" Toggle spell checking
+nmap <silent> <Leader>s :set spell!<CR>
+
cmap w!! w !sudo tee % >/dev/null
" Tabs are 4 spaces wide