From: Gabriel Dunne Date: Sat, 12 Dec 2020 05:49:47 +0000 (-0800) Subject: Adding .vimrc X-Git-Url: https://git.quilime.com/?a=commitdiff_plain;h=f9227e20a71c429081fcead2eaa52310c2163c94;p=cfg.git Adding .vimrc --- diff --git a/.vimrc b/.vimrc new file mode 100644 index 0000000..b400113 --- /dev/null +++ b/.vimrc @@ -0,0 +1,63 @@ +filetype plugin indent on + +" syntax highlighting +syntax on +set encoding=utf-8 +" don't beep +set noerrorbells +" visual bell +"set visualbell +"setup default tab/shift/expand +set tabstop=4 shiftwidth=4 expandtab +" Highlight current line +"set cursorline +" hightlight search and incremental seach +set hlsearch incsearch +" global replace by default +set gdefault +" not wrap lines +set nowrap +" show line numbers +set nu +" enable mouse in all modes +set mouse=a +" show cursor position +set ruler +" Show the filename in the window titlebar +set title +" Show the (partial) command as it’s being typed +set showcmd +" Show “invisible” characters +" set lcs=tab:▸\ ,trail:·,eol:¬,nbsp:_ +" set list + +" draw vertical column at 80 +" set colorcolumn=80 +" show hidden files in nerdtree + +" use ctrl +jkhl ti navigate panes +map j +map k +map h +map l + +" Centralize backups, swapfiles and undo history +set backupdir=~/.vim/backups +set directory=~/.vim/swaps +if exists("&undodir") + set undodir=~/.vim/undo +endif + + +" netrw +let g:netrw_banner = 0 +let g:netrw_liststyle = 3 +let g:netrw_browse_split = 4 +let g:netrw_altv = 1 +let g:netrw_winsize = 25 +map :Vex +" auto open netrw +"augroup ProjectDrawer +" autocmd! +" autocmd VimEnter * :Vexplore +"augroup END