From 0c69219de100c2e8d0a389321686f21519894997 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Thu, 5 May 2016 18:06:12 +0100 Subject: Set relativenumber in netrw --- vim/.vimrc | 56 ++++++++++++++++++++++++++++++-------------------------- 1 file changed, 30 insertions(+), 26 deletions(-) (limited to 'vim/.vimrc') diff --git a/vim/.vimrc b/vim/.vimrc index 6517c3a..e8a424f 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -116,42 +116,37 @@ nnoremap gm :Neomake! "" Plugin configurations +" Airline +let g:airline_left_sep='' +let g:airline_right_sep='' +let g:airline_theme='base16' +let g:airline#extensions#whitespace#checks = [ 'indent', 'trailing', 'mixed-indent-file' ] +let g:airline#extensions#tabline#enabled = 1 +let g:airline#extensions#tabline#tab_nr_type = 1 +let g:airline#extensions#tabline#formatter = 'unique_tail' +let g:airline#extensions#tabline#tab_min_count = 2 +let g:airline#extensions#tabline#show_buffers = 0 + " Deoplete let g:deoplete#enable_at_startup = 1 let g:deoplete#omni#input_patterns={} let g:deoplete#omni#input_patterns.ledger = ':\w*' let g:deoplete#omni#input_patterns.tex = ['cite.\w*', 'ref.\w*'] -" Python-mode -let g:pymode_rope=0 +" FZF.vim +let g:fzf_buffers_jump = 1 " NerdTree let g:NERDTreeHijackNetrw = 0 +" Python-mode +let g:pymode_rope=0 + " Tagbar let g:tagbar_width = 30 let g:tagbar_show_linenumbers = 1 let g:tagbar_autofocus = 1 -" Airline -let g:airline_left_sep='' -let g:airline_right_sep='' -let g:airline_theme='base16' -let g:airline#extensions#whitespace#checks = [ 'indent', 'trailing', 'mixed-indent-file' ] -let g:airline#extensions#tabline#enabled = 1 -let g:airline#extensions#tabline#tab_nr_type = 1 -let g:airline#extensions#tabline#formatter = 'unique_tail' -let g:airline#extensions#tabline#tab_min_count = 2 -let g:airline#extensions#tabline#show_buffers = 0 - -" Vimtex -let g:vimtex_fold_enabled=0 -let g:vimtex_view_method='zathura' -let g:vimtex_latexmk_continuous=1 -let g:vimtex_quickfix_mode=0 -let g:vimtex_latexmk_build_dir='build' -let g:vimtex_latexmk_progname='nvr' - " Syntastic let g:syntastic_cpp_compiler = "g++" let g:syntastic_cpp_compiler_options = "-std=c++11 -Wall -Wextra -Wpedantic" @@ -168,8 +163,13 @@ let g:UltiSnipsSnippetDirectories=['UltiSnips', 'mySnippets'] let g:UltiSnipsSnippetsDir="~/.vim/mySnippets" let g:UltiSnipsUsePythonVersion=3 -" FZF.vim -let g:fzf_buffers_jump = 1 +" Vimtex +let g:vimtex_fold_enabled=0 +let g:vimtex_view_method='zathura' +let g:vimtex_latexmk_continuous=1 +let g:vimtex_quickfix_mode=0 +let g:vimtex_latexmk_build_dir='build' +let g:vimtex_latexmk_progname='nvr' " YouCompleteMe let g:ycm_key_list_select_completion = ['', ''] @@ -184,6 +184,7 @@ endif "" Vim variables +let g:netrw_bufsettings='relativenumber' let g:tex_conceal= 'adgm' let g:tex_flavor='latex' @@ -243,6 +244,9 @@ endif "" Autocommands -au BufNewFile,Bufread /tmp/mutt-* setlocal tw=72 -au BufNewFile,BufRead *.edp comp freefem -au BufNewFile,BufRead *.geo setf gmsh +augroup vimrc + autocmd! + au BufNewFile,Bufread /tmp/mutt-* setlocal tw=72 + au BufNewFile,BufRead *.edp comp freefem + au BufNewFile,BufRead *.geo setf gmsh +augroup END -- cgit v1.2.3