diff --git a/config/.vimrc b/config/vimrc similarity index 75% rename from config/.vimrc rename to config/vimrc index 9854ba7..07745e1 100644 --- a/config/.vimrc +++ b/config/vimrc @@ -20,6 +20,8 @@ set title set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx syntax enable +colorscheme nord-light + " PLUGINS --------------------------------------------------------------- {{{ call plug#begin('~/.vim/plugged') @@ -34,6 +36,13 @@ call plug#end() if has("autocmd") au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif + + " https://stackoverflow.com/a/37558470/19044747 + augroup remember_folds + autocmd! + autocmd BufWinLeave * mkview + autocmd BufWinEnter * silent! loadview + augroup END endif " TALK ------------------------------------------------------------------ {{{ @@ -53,6 +62,11 @@ command! MakeTags !ctags -R . & " Move to ambigious using g^] " Move back using ^t +" File browsing +let g:netrw_browse_split=4 " open in the previous window +let g:netrw_altv=1 " split new windows to the right +let g:netrw_liststyle=3 " treeview + " Autocomplete " Also see https://vimhelp.org/options.txt.html#%27complete%27 " ^n next diff --git a/config/.zshrc b/config/zshrc similarity index 100% rename from config/.zshrc rename to config/zshrc