summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2020-05-28 16:06:17 +0200
committerAhmed Abdelhalim <[email protected]>2020-05-28 16:06:17 +0200
commit70fc369f8f62a299723f1050300f7866bc2db1c4 (patch)
treeb5fedd5f5a9696de5e770bcb31cde4fec55459ce
parent3abfb82194feed395e03294e1b4e07ba12f5a85d (diff)
Add dictionary completion via ctrl+n
-rw-r--r--.vimrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/.vimrc b/.vimrc
index 1908621..bb595d2 100644
--- a/.vimrc
+++ b/.vimrc
@@ -65,6 +65,7 @@ set clipboard=unnamed " fix not copying between clipboard and vim
set backspace=indent,eol,start " fix backspace not deleteing existing text
set number " set numbers column on the left
set complete-=i " Faster vim completion
+set complete+=k " Dictionary word completion using Ctrl+N
set nrformats-=octal " Increment numbers decimally using Ctrl+A and Ctrl+X
set autoindent " Auto indent
" set smartindent " Smart indet (causes problems having differnt files indentation)
@@ -153,7 +154,7 @@ autocmd BufNewFile,BufRead *.json.jbuilder set filetype=ruby " for ruby json te
autocmd BufRead,BufNewFile *.md setlocal spell " spell check md files
autocmd BufRead,BufNewFile *.markdown setlocal spell " spell check md files
autocmd FileType gitcommit setlocal spell " spell check commits
-autocmd FileType gitcommit set complete+=k " allow spell autocompletion using CTRL-N
+autocmd FileType ruby setlocal nospell " disable spell checking for ruby documentation
autocmd FileType javascript noremap <buffer> <c-f> :call JsBeautify()<cr>
autocmd FileType json noremap <buffer> <c-f> :call JsonBeautify()<cr>
autocmd FileType html noremap <buffer> <c-f> :call HtmlBeautify()<cr>