diff --git a/vim/.vimrc b/vim/.vimrc new file mode 100644 index 0000000..911ad80 --- /dev/null +++ b/vim/.vimrc @@ -0,0 +1,45 @@ +syntax on +set smarttab ts=2 sw=2 +set softtabstop=2 +set expandtab +set autoindent + +set backspace=indent,eol,start + +set t_Co=16 + +"use semicolon as colon for commands +nmap ; : + +filetype plugin on +filetype indent on +set ofu=syntaxcomplete#Complete# + +au FileType python setlocal tabstop=4 expandtab shiftwidth=4 softtabstop=4 + +" typing idate inserts the current date +iab idate =strftime("%Y-%m-%d") + +set lazyredraw " redraw only when req'd +set wildmenu " visual auto-complete +set showmatch +"set cursorline + +" Search down into subfolders +" Provides tab-completion for all file-related tasks +set path+=** + +" netrw config +let g:netrw_banner=0 " disable annoying banner +let g:netrw_browse_split=0 " open in prior window +let g:netrw_altv=1 " open splits to the right +let g:netrw_liststyle=3 " tree view +let g:netrw_list_hide=netrw_gitignore#Hide() +let g:netrw_list_hide.=',\(^\|\s\s\)\zs\.\S\+' + +" NOW WE CAN: +" - :edit a folder to open a file browser +" - /v/t to open in an h-split/v-split/tab +" - check |netrw-browse-maps| for more mappings + +