set nocompatible " be iMproved, required filetype off " required " set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() " alternatively, pass a path where Vundle should install plugins "call vundle#begin('~/some/path/here') " let Vundle manage Vundle, required Plugin 'VundleVim/Vundle.vim' Plugin 'mileszs/ack.vim' "Plugin 'autozimu/LanguageClient-neovim' Plugin 'tpope/vim-surround' Plugin 'tpope/vim-repeat' Plugin 'vim-latex/vim-latex' Plugin 'vim-scripts/ReplaceWithRegister' Plugin 'zchee/deoplete-jedi' Plugin 'sirtaj/vim-openscad' Plugin 'tmhedberg/matchit' Plugin 'kien/ctrlp.vim' 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 colorscheme eldar syntax enable set number relativenumber set tabstop=4 set shiftwidth=4 set softtabstop=4 set noexpandtab let g:deoplete#enable_at_startup = 1 inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? "\" : "\" tnoremap " Map C-s noremap :update " Make ToBegin and ToEnd function! InputChar() let c = getchar() return type(c) == type(0) ? nr2char(c) : c endfunction function! ToEnd() let s = InputChar() if s =~ "\" || s =~ "\" return endif execute "normal! vi". s. "\" endfunction function! ToBegin() call ToEnd() execute "'<" endfunction nnoremap ge :call ToEnd() nnoremap gb :call ToBegin() map :NERDTreeToggle " Required for operations modifying multiple buffers like rename. set hidden let g:LanguageClient_serverCommands = { \ 'rust': ['rustup', 'run', 'stable', 'rls'], \ } "nnoremap K :call LanguageClient#textDocument_hover() "nnoremap gd :call LanguageClient#textDocument_definition() "nnoremap :call LanguageClient#textDocument_rename() "nnoremap :call LanguageClient_contextMenu() " Trigger configuration. Do not use if you use https://github.com/Valloric/YouCompleteMe. let g:UltiSnipsExpandTrigger="" let g:UltiSnipsJumpForwardTrigger="" let g:UltiSnipsJumpBackwardTrigger="" " If you want :UltiSnipsEdit to split your window. let g:UltiSnipsEditSplit="vertical" inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? "\" : "\" " Run binding nnoremap :!terminator -e '"%:p" ;read -n 1' set completeopt-=preview