From 6e15ee0798d53f4dc3029f14fbc36994433b8944 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 10 Apr 2019 10:52:23 +0300 Subject: Weekly vimrc update - colored brackets are back - vimtex bug is fixed - ledger file adjustments --- .config/nvim/init.vim | 35 +++++++++-------------------------- 1 file changed, 9 insertions(+), 26 deletions(-) (limited to '.config/nvim') diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 5d415ce..f3ce6d5 100755 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -12,6 +12,8 @@ Plug 'ludovicchabant/vim-gutentags' Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets' "autopair plugin Plug 'tmsvg/pear-tree' +"colored brackets +Plug 'luochen1990/rainbow' " Plugin outside ~/.vim/plugged with post-update hook Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } @@ -88,7 +90,6 @@ call plug#end() " required "}}} "{{{Auto Commands - " Automatically cd into the directory that the file is in autocmd BufEnter * silent! lcd %:p:h @@ -97,11 +98,9 @@ autocmd BufRead,BufWrite * if ! &bin | silent! %s/\s\+$//ge | endif " Close vim if the only window left open is NERDTree autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif - "}}} "{{{Misc Settings - let g:ycm_global_ycm_extra_conf = '~/.ycm_extra_conf.py' " Tab stuff @@ -120,7 +119,6 @@ set scrolloff=4 " Keep n lines above/below cursor set mouse=c set number " line numbers set foldmethod=marker " folding stuffs -set nohidden " when i close a tab, remove the buffer set title " set terminal title set showmatch " jump to the matching bracket briefly, REMOVE AFTER TESTING set linebreak " wrap using 'breakat' character @@ -135,11 +133,9 @@ set smartcase " https://stackoverflow.com/a/3445040/ " switch case labels set cinoptions=l1 - " }}} "{{{Look and Feel - set termguicolors "highlight NormalNC guibg='Black' @@ -149,7 +145,6 @@ let g:nord_italic_comments = 1 let g:nord_cursor_line_number_background = 1 colorscheme nord - " }}} "{{{ Functions @@ -186,7 +181,6 @@ endfunction "}}} "{{{ Mappings - " Open Url on this line with the browser \w map w :call Browser () " Open the TagBar Plugin @@ -233,39 +227,29 @@ nnoremap t "=strftime("%F")P "}}} "{{{Tagbar - let g:tagbar_autofocus = 1 let g:tagbar_compact = 1 let g:tagbar_sort = 0 let g:tagbar_width = 25 - "}}} "{{{ Airline - -let g:airline_powerline_fonts = 1 " fira code +let g:airline_powerline_fonts = 1 let g:airline#extensions#tabline#formatter = 'unique_tail' let g:airline#extensions#ycm#enabled = 1 - "}}} "{{{ NERDTree - let g:NERDTreeWinSize=25 - "}}} "{{{ Ale - let g:ale_sign_error = '✗' let g:ale_sign_warning = '⚑' - "}}} "{{{ YouCompleteMe - -"let g:ycm_autoclose_preview_window_after_completion = 1 let g:ycm_always_populate_location_list = 1 let g:ycm_error_symbol = '✗' let g:ycm_warning_symbol = '⚑' @@ -294,11 +278,11 @@ let g:ycm_filetype_specific_completion_to_disable = { "}}} "{{{ Ledger - let g:ledger_extra_options = '--pedantic --explicit --check-payees' au FileType ledger noremap { ?^\d au FileType ledger noremap } /^\d - +let g:ledger_maxwidth = 48 +let g:ledger_fillstring = ' ~' "}}} "{{{ UltiSnips/YouCompleteMe @@ -318,7 +302,6 @@ let g:UltiSnipsListSnippets = "" "}}} "{{{ vim-startify - function! StartifyEntryFormat() return 'WebDevIconsGetFileTypeSymbol(absolute_path) ." ". entry_path' endfunction @@ -331,8 +314,6 @@ else let entry_format .= '. entry_path' endif - - let g:ascii = [ \' | ', \'\ \ \ / -_) | _| _ \ ` \ -_)', @@ -351,7 +332,7 @@ let g:vimwiki_list = [{'path': '/home/yigit/Dropbox/personal_wiki', \ 'css_name': 'tufte.css', \ 'auto_export': 1}] let g:vimwiki_global_ext = 0 -map b VimwikiToggleListItem +map c VimwikiToggleListItem "}}} "{{{ yanks/registers and clips @@ -388,6 +369,8 @@ nnoremap X D " {{{ vimtex let g:vimtex_view_method = 'zathura' -let g:vimtex_syntax_enabled = 0 +" }}} +" {{{ rainbow +let g:rainbow_active = 1 " }}} -- cgit v1.2.3-70-g09d2