From 70fc369f8f62a299723f1050300f7866bc2db1c4 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Thu, 28 May 2020 16:06:17 +0200 Subject: Add dictionary completion via ctrl+n --- .vimrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 :call JsBeautify() autocmd FileType json noremap :call JsonBeautify() autocmd FileType html noremap :call HtmlBeautify() -- cgit v1.2.3