Explorar el Código

added spelling hotkey

Josh Bicking hace 7 años
padre
commit
e00f88a4ba
Se han modificado 1 ficheros con 11 adiciones y 0 borrados
  1. 11 0
      vimrc

+ 11 - 0
vimrc

@@ -152,6 +152,17 @@ endif
 " <Leader>l formats a line
 noremap <Leader>l Vgq
 
+" <Leader>s toggles spelling
+function! SpellToggle()
+    if(&spell == 1)
+        setlocal nospell
+    else
+        setlocal spell spelllang=en_us
+    endif
+endfunc
+
+nnoremap <Leader>s :call SpellToggle()<CR>
+
 
 """ Plugins