From 2704384c10aa5897914beea55fd31a82d78dbd2b Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sat, 30 May 2015 18:20:37 +0100 Subject: minor changes --- nvimrc | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'nvimrc') diff --git a/nvimrc b/nvimrc index f4f8a5a..81447ee 100644 --- a/nvimrc +++ b/nvimrc @@ -1,4 +1,4 @@ -"" Plugins +" Plugins call plug#begin('~/.nvim/plugged') Plug 'airblade/vim-gitgutter', { 'on' : 'GitGutterToggle' } Plug 'altercation/vim-colors-solarized' @@ -13,18 +13,19 @@ Plug 'gregsexton/gitv', { 'on' : 'Gitv' } Plug 'honza/vim-snippets' Plug 'jamessan/vim-gnupg', { 'for' : 'asc' } Plug 'junegunn/fzf', { 'on' : 'FZF' } -Plug 'junegunn/seoul256.vim' Plug 'junegunn/goyo.vim', { 'on' : 'Goyo' } Plug 'junegunn/limelight.vim', { 'on' : 'Limelight' } -Plug 'junegunn/vim-pseudocl' +Plug 'junegunn/seoul256.vim' +Plug 'junegunn/vim-easy-align' Plug 'junegunn/vim-oblique' Plug 'junegunn/vim-peekaboo' +Plug 'junegunn/vim-pseudocl' Plug 'kien/ctrlp.vim' Plug 'LaTeX-Box-Team/latex-box', { 'for' : 'tex' } Plug 'majutsushi/tagbar' Plug 'mileszs/ack.vim' Plug 'rdnetto/YCM-Generator', { 'branch' : 'stable' } -Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } +Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } Plug 'scrooloose/syntastic' Plug 'SirVer/ultisnips' Plug 'sjl/Gundo.vim', { 'on' : 'GundoToggle' } @@ -113,8 +114,9 @@ let NERDTreeIgnore=['\.pdf$', '\~$','\.toc$', let g:ycm_key_list_select_completion = ['', ''] let g:ycm_key_list_previous_completion = ['', ''] -let g:ycm_auto_trigger = 1 +let g:ycm_add_preview_to_completeopt = 0 let g:ycm_confirm_extra_conf = 1 +let g:ycm_auto_trigger = 1 "" Vim options @@ -139,6 +141,7 @@ set undodir=/home/urbain/.nvim/vimundo/ " Layout window set nonumber +set diffopt=filler,vertical set listchars=tab:▸\ ,eol:¬,trail:- set fillchars=fold:\ ,vert:\ , set showbreak=--▸\ , @@ -200,6 +203,7 @@ nnoremap ps :PlugStatus " Toggles nnoremap cop :set paste! nnoremap tg :GitGutterToggle +nnoremap tl :Limelight!! nnoremap tn :NERDTreeToggle nnoremap tt :TagbarToggle nnoremap tu :GundoToggle @@ -227,6 +231,7 @@ nnoremap 3 nnoremap 3 nnoremap o nnoremap O +nnoremap >f :FZF ~ " Git nnoremap gs :Gstatus @@ -254,12 +259,14 @@ vnoremap , : " Neovim specific tnoremap :ZoomWinTabOut +tnoremap :CtrlPMRUFiles nnoremap :ZoomWinTabIn:b termi inoremap :b termi "" Restore cursor position -augroup autocommands +augroup nvimrc au! + autocmd BufWritePost *vimrc source % autocmd BufWritePost *.cpp Neomake! autocmd BufReadPost * \ if line("'\"") > 1 && line("'\"") <= line("$") | -- cgit v1.2.3