From 1623d505e2f7c29cd0f0cd19a1cf2f177107b3f3 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 3 May 2020 15:27:15 +0200 Subject: Added some awesome features --- .config/nvim/init.vim | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to '.config/nvim/init.vim') diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index aff6e98..66bda9a 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -35,7 +35,7 @@ Plug 'w0rp/ale' Plug 'majutsushi/tagbar' Plug 'peterhoeg/vim-qml' Plug 'dermusikman/sonicpi.vim' -Plug 'ananagame/vimsence' +" Plug 'ananagame/vimsence' " Menus Plug 'scrooloose/nerdtree' @@ -86,7 +86,8 @@ set visualbell t_vb= set nowritebackup set ruler set scroll=4 -set sessionoptions-=options +set viewoptions=folds,cursor +set sessionoptions=folds set shiftround set shiftwidth=8 set shortmess+=A @@ -110,7 +111,7 @@ nmap j gj nmap k gk nmap w :w nmap q :q -nmap :BD +nmap :BD nmap :bn nmap :bp nmap S :nohlsearch @@ -126,6 +127,8 @@ autocmd VimResized * :wincmd = " Autosave let g:auto_save=0 let g:auto_save_silent=1 +autocmd BufWinLeave,BufLeave,BufWritePost ?* nested silent! mkview! +autocmd BufWinEnter ?* silent! loadview " Tagbar nmap T :TagbarToggle @@ -138,9 +141,14 @@ nmap j j nmap k k nmap l l +" Terminal +nmap t :term +tnoremap :bd! +autocmd TermOpen * startinsert + " FZF nmap ; :Files -nmap t :Buffers +nmap B :Buffers nmap c :Colors nmap s :Rg! let $FZF_DEFAULT_COMMAND = 'rg --files --follow -g "!{.git,node_modules}/*" 2>/dev/null' -- cgit v1.2.3