summaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.xyz>2021-02-05 15:39:27 -0600
committerDanny Holman <dholman@gymli.xyz>2021-02-05 15:39:27 -0600
commitccac130ed733d047210a789e457f40060ec04214 (patch)
treee9b6ba4db7c246fb8cdeef96469b37bf1b3b8b77 /.vimrc
parent723e67595d6b0bb48726a873830ff5342015de28 (diff)
Updates
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc11
1 files changed, 11 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index 6138962..1618c8a 100644
--- a/.vimrc
+++ b/.vimrc
@@ -41,6 +41,16 @@ set noswapfile
set nobackup
set nowb
+" Spellcheck
+function! ToggleSpell()
+ setlocal spell!
+ if &spell
+ echo "Spellcheck ON"
+ else
+ echo "Spellcheck OFF"
+ endif
+endfunction
+
" Indentation
set autoindent
set smartindent
@@ -123,6 +133,7 @@ nnoremap <C-H> <C-W><C-H>
nnoremap <silent> <Leader>n :NERDTreeToggle<CR>
nnoremap <silent> <Leader>c :silent !ctags -R .<CR><C-L>
nnoremap <silent> <Leader>t :tag
+nnoremap <silent> <F5> :call ToggleSpell()<CR>
nnoremap qq :quit<CR>
let mapleader = " "