From f583ac14f405724b0ac966f78a0c13752a362b5a Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Wed, 20 Jan 2016 19:31:08 +0100 Subject: [PATCH] nvim - clear unused plugins and make use of plug belated loading --- config/nvim/init.vim | 33 +++++++++++++-------------------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/config/nvim/init.vim b/config/nvim/init.vim index 92a05eb..146e030 100644 --- a/config/nvim/init.vim +++ b/config/nvim/init.vim @@ -65,30 +65,28 @@ nnoremap cp :cprevious call plug#begin('~/.config/nvim/plugged') Plug 'ctrlpvim/ctrlp.vim' Plug 'bling/vim-airline' -Plug 'scrooloose/nerdtree' +Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } Plug 'junegunn/vim-easy-align' Plug 'easymotion/vim-easymotion' Plug 'tpope/vim-fugitive' -Plug 'rust-lang/rust.vim' +Plug 'rust-lang/rust.vim', { 'for': 'rust' } Plug 'Valloric/YouCompleteMe' Plug 'chriskempson/base16-vim' -"Plugin 'LaTeX-Box-Team/LaTeX-Box' -"Plugin 'chase/vim-ansible-yaml' +Plug 'LaTeX-Box-Team/LaTeX-Box', { 'for': 'tex' } +Plug 'chase/vim-ansible-yaml', { 'for': 'yaml' } -Plug 'junegunn/vim-after-object' Plug 'junegunn/vim-peekaboo' Plug 'takac/vim-hardtime' -Plug 'mhinz/vim-grepper' +Plug 'mhinz/vim-grepper', { 'on': 'Grepper' } Plug 'neovimhaskell/haskell-vim' -Plug 'kassio/neoterm' -Plug 'brettanomyces/nvim-editcommand' -Plug 'benekastah/neomake' +Plug 'kassio/neoterm', { 'on': 'T' } + call plug#end() " Plugin configuration " -------------------- let g:ctrlp_map='l' -let g:ctrlp_user_command=['.git/', 'git --git-dir=%s/.git ls-files -oc --exclude-standard'] +let g:ctrlp_user_command=['.git/', 'git --git-dir=%s/.git ls-files . -co --exclude-standard'] let g:airline_powerline_fonts=1 @@ -104,21 +102,19 @@ xnoremap a (EasyAlign) nmap a (EasyAlign) let g:EasyMotion_do_mapping=0 -nmap w (easymotion-w) -nmap f (easymotion-s) -nmap j (easymotion-j) -nmap k (easymotion-k) +map w (easymotion-w) +map f (easymotion-s) +map j (easymotion-j) +map k (easymotion-k) let g:ycm_global_ycm_extra_conf='~/.config/nvim/ycm_extra_conf.py' -"set completeopt=menu +set completeopt=menu let base16colorspace=256 colorscheme base16-colors " damn base16's grey linenr background highlight LineNr ctermfg=08 ctermbg=NONE -autocmd VimEnter * call after_object#enable('=', ':', '-', '#', ' ') - let g:hardtime_default_on=1 let g:hardtime_ignore_quickfix=1 let g:hardtime_maxcount=2 @@ -131,9 +127,6 @@ let g:haskell_enable_arrowsyntax=1 let g:haskell_enable_pattern_synonyms=1 let g:haskell_enable_typeroles=1 let g:haskell_enable_static_pointers=1 - -let g:editcommand_no_mappings=1 -tmap EditCommand " Plugged }}} " vim: foldmethod=marker