From 4a0f5bc8d95af2c62527ed1d17e5411133482921 Mon Sep 17 00:00:00 2001 From: neodarz Date: Wed, 20 Dec 2017 16:32:00 +0100 Subject: neovim: add somme cool plugin --- nvim/.config/nvim/init.vim | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index e9449e8..6d5b3e4 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -90,6 +90,18 @@ Plugin 'maksimr/vim-jsbeautify' " rst Plugin 'marshallward/vim-restructuredtext' +Plugin 'artur-shaik/vim-javacomplete2' + +Plugin 'leafgarland/typescript-vim' + +Plugin 'Quramy/tsuquyomi' + +Plugin 'palantir/tslint' + +"Plugin 'FredKSchott/CoVim' + +Plugin 'makerforceio/CoVim' + " After all plugins... call vundle#end() filetype plugin indent on @@ -206,3 +218,35 @@ noremap :Autoformat let g:autoformat_autoindent = 0 let g:autoformat_retab = 0 let g:autoformat_remove_trailing_spaces = 0 + +autocmd Filetype java set makeprg=javac\ % +set errorformat=%A%f:%l:\ %m,%-Z%p^,%-C%.%# +map :make:copen +map :cprevious +map :cnext + +map :call CompileRunGcc() +func! CompileRunGcc() + exec "w" + if &filetype == 'c' + exec "!gcc % -o %<" + exec "!time ./%<" + elseif &filetype == 'cpp' + exec "!g++ % -o %<" + exec "!time ./%<" + elseif &filetype == 'java' + exec "!time java -cp %:p:h %:t:r" + elseif &filetype == 'sh' + exec "!time bash %" + elseif &filetype == 'python' + exec "!time python2.7 %" + elseif &filetype == 'html' + exec "!firefox % &" + elseif &filetype == 'go' + exec "!go build %<" + exec "!time go run %" + elseif &filetype == 'mkd' + exec "!~/.vim/markdown.pl % > %.html &" + exec "!firefox %.html &" + endif +endfunc -- cgit v1.2.1