From 91a64bc4009318ef559c9b70c2c4edd904d59757 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Mon, 23 Mar 2020 00:18:41 +0100 Subject: Fix auto-spell and auto-correct vim --- .vimrc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.vimrc b/.vimrc index 1908621..88b0753 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 " allow spell autocompletion 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) @@ -150,10 +151,8 @@ set omnifunc=pythoncomplete#Complete """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" autocmd BufNewFile,BufRead *.html.erb set filetype=html " for ruby erb template files autocmd BufNewFile,BufRead *.json.jbuilder set filetype=ruby " for ruby json template files -autocmd BufRead,BufNewFile *.md setlocal spell " spell check md files -autocmd BufRead,BufNewFile *.markdown setlocal spell " spell check md files +autocmd FileType markdown setlocal spell " spell check markdown files autocmd FileType gitcommit setlocal spell " spell check commits -autocmd FileType gitcommit set complete+=k " allow spell autocompletion using CTRL-N autocmd FileType javascript noremap :call JsBeautify() autocmd FileType json noremap :call JsonBeautify() autocmd FileType html noremap :call HtmlBeautify() -- cgit v1.2.3 From 921285a75a718da5f6f14ca2d1b116b874de17cb Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Mon, 30 Mar 2020 16:13:54 +0200 Subject: Show typescript method autocompletion in preview menu --- .vimrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.vimrc b/.vimrc index 88b0753..3ba5916 100644 --- a/.vimrc +++ b/.vimrc @@ -159,6 +159,7 @@ autocmd FileType html noremap :call HtmlBeautify() autocmd FileType css noremap :call CSSBeautify() autocmd FileType scss noremap :call CSSBeautify() autocmd FileType typescript nmap t : echo tsuquyomi#hint() +autocmd FileType typescript setlocal completeopt+=menu,preview autocmd CompleteDone * pclose " auto-close preview after completion """""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -- cgit v1.2.3