Explorar o código

added spelling hotkey

Josh Bicking %!s(int64=7) %!d(string=hai) anos
pai
achega
e00f88a4ba
Modificáronse 1 ficheiros con 11 adicións e 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