46 lines
1.0 KiB
VimL
46 lines
1.0 KiB
VimL
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 <c-r>=strftime("%Y-%m-%d")<cr>
|
|
|
|
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
|
|
" - <CR>/v/t to open in an h-split/v-split/tab
|
|
" - check |netrw-browse-maps| for more mappings
|
|
|
|
|