From 87a368234ddd0f00b45aed97fdb19e110bd30cc0 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 10 Jan 2020 00:53:06 +0300 Subject: init.vim cleanup --- .config/nvim/init.vim | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) (limited to '.config') diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 1fc1cb6..575c331 100755 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -14,10 +14,10 @@ Plug 'sheerun/vim-polyglot' Plug 'dense-analysis/ale' " manages tag files Plug 'ludovicchabant/vim-gutentags' -" run your tests -" Plug 'janko/vim-test' " TODO benched for now but should be useful later " open a floating terminal Plug 'voldikss/vim-floaterm' +" run tests (todo: write tests) +Plug 'janko/vim-test' " snippets to expand Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets' @@ -51,9 +51,6 @@ Plug 'lervag/vimtex' " text alignment Plug 'godlygeek/tabular' -" color code highlight -" Plug 'chrisbra/Colorizer' " TODO benched for now, can't remember the last -" time this was useful " move selections up and down Plug 'matze/vim-move' " search/select/edit sandwiched textobjects @@ -65,8 +62,6 @@ Plug 'michaeljsmith/vim-indent-object' " reopen files at your last edit position Plug 'farmergreg/vim-lastplace' -" toggle, display and navigate marks -" Plug 'kshenoy/vim-signature' TODO benched for now, never used " git diff in the sign column Plug 'airblade/vim-gitgutter' " jump to location by 2 characters @@ -151,11 +146,14 @@ set scrolloff=4 " Keep n lines above/below cursor set number " line numbers set foldmethod=marker " folding stuffs set title " set terminal title -set showmatch " jump to the matching bracket briefly, REMOVE AFTER TESTING set linebreak " wrap using 'breakat' character set splitbelow " new split panes will split to below and right set splitright -set cursorline +set cursorline " highlight the current line +set relativenumber " current line actual number, rest are relative + +set showmatch " jump to the matching bracket briefly +set hidden " move freely between buffers set thesaurus+=~/.local/share/thesaurus.txt @@ -209,6 +207,8 @@ nmap t :TestVisit nnoremap :tabnew " Edit vimrc \ev nnoremap ev :tabnew:e ~/.config/nvim/init.vim +" jump to buffer +nnoremap b :ls:b " Up and down are more logical with g.. nnoremap k gk @@ -226,20 +226,15 @@ nnoremap l nnoremap :noh " Space will toggle folds! nnoremap za -" Search mappings: These will make it so that going to the next one in a -" search will center on the line it's found in. -" map N Nzz -" map n nzz " checkmarks on vimwiki nmap v VimwikiToggleListItem +" sneak using grave, s is for sandwich nmap ` Sneak_s nmap ` Sneak_S nnoremap ' ` -nmap i :IndentGuidesToggle - " separate cut and delete nnoremap x d xnoremap x d @@ -367,10 +362,6 @@ let g:vimtex_quickfix_mode = 0 let g:polyglot_disabled = ['latex', 'tex', 'ledger'] " }}} -" {{{ rainbow -let g:rainbow_active = 0 -" }}} - " {{{ Gutentags let g:gutentags_add_default_project_roots = 0 let g:gutentags_project_root = ['Makefile', '.git'] -- cgit v1.2.3-70-g09d2