summaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
authorJulian <j@teule.nl>2018-10-20 01:21:49 +0200
committerJulian <j@teule.nl>2018-10-20 01:21:49 +0200
commit4e2e2ea2db51075f4269e4b38429c719688aa759 (patch)
treee4dbef7e0d7de6c65f529bbbcfae020053eadf86 /.vimrc
parente65754ce0c0d8696316b7a8ec0bb28b4ee902dd5 (diff)
Added lots of new stuff
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc42
1 files changed, 36 insertions, 6 deletions
diff --git a/.vimrc b/.vimrc
index 87529dc..b5e8388 100644
--- a/.vimrc
+++ b/.vimrc
@@ -13,7 +13,7 @@ Plugin 'VundleVim/Vundle.vim'
Plugin 'mileszs/ack.vim'
-Plugin 'autozimu/LanguageClient-neovim'
+"Plugin 'autozimu/LanguageClient-neovim'
Plugin 'tpope/vim-surround'
Plugin 'tpope/vim-repeat'
@@ -25,12 +25,25 @@ Plugin 'zchee/deoplete-jedi'
Plugin 'sirtaj/vim-openscad'
Plugin 'tmhedberg/matchit'
Plugin 'kien/ctrlp.vim'
-Plugin 'Shougo/deoplete.nvim'
+
+if has("nvim")
+ Plugin 'Shougo/deoplete.nvim'
+else
+ Plugin 'Shougo/deoplete.nvim'
+ Plugin 'roxma/nvim-yarp'
+ Plugin 'roxma/vim-hug-neovim-rpc'
+endif
Plugin 'agude/vim-eldar'
Plugin 'scrooloose/nerdtree'
+" Track the engine.
+Plugin 'SirVer/ultisnips'
+
+" Snippets are separated from the engine. Add this if you want them:
+Plugin 'honza/vim-snippets'
+
call vundle#end() " required
filetype plugin indent on " required
@@ -88,8 +101,25 @@ let g:LanguageClient_serverCommands = {
\ 'rust': ['rustup', 'run', 'stable', 'rls'],
\ }
-nnoremap <silent> K :call LanguageClient#textDocument_hover()<CR>
-nnoremap <silent> gd :call LanguageClient#textDocument_definition()<CR>
-nnoremap <silent> <F2> :call LanguageClient#textDocument_rename()<CR>
-nnoremap <F5> :call LanguageClient_contextMenu()<CR>
+"nnoremap <silent> K :call LanguageClient#textDocument_hover()<CR>
+"nnoremap <silent> gd :call LanguageClient#textDocument_definition()<CR>
+"nnoremap <silent> <F2> :call LanguageClient#textDocument_rename()<CR>
+"nnoremap <F5> :call LanguageClient_contextMenu()<CR>
+
+
+" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
+let g:UltiSnipsExpandTrigger="<c-b>"
+let g:UltiSnipsJumpForwardTrigger="<c-b>"
+let g:UltiSnipsJumpBackwardTrigger="<c-z>"
+
+" If you want :UltiSnipsEdit to split your window.
+let g:UltiSnipsEditSplit="vertical"
+
+
+inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
+inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
+
+" Run binding
+nnoremap <F5> :!terminator -e '"%:p" ;read -n 1'<CR>
+set completeopt-=preview