Monday 5 December 2011

.vimrc

set autoindent
set cindent
set shiftwidth=4
set tabstop=4
set expandtab

" turn off auto indent in order to past code
set pastetoggle=<F2>

" syntax highlighting
colorscheme desert

' enable syntax highlighting in bash vi mode [http://stackoverflow.com/questions/7115324/syntax-highlighting-in-bash-vi-input-mode]
if expand('%:t') =~?'bash-fc-\d\+'
    setfiletype sh
endif

" allow backspacing over everything in insert mode
set backspace=indent,eol,start
" hides buffers instead of closing them (allows opening a new file without writing unsaved changes to current file)
set hidden
" highlight search terms
set hlsearch    
" show search matches as you type
set incsearch

" don't create temporary files
set nobackup
set noswapfile

" remap ';' to ':' - increases the speed of most commands
nnoremap ; :

" clear highlighted search terms by pressing ,/
nmap <silent> ,/ :nohlsearch<CR>

" netrw file explorer - show tree view directory listing style
let g:netrw_liststyle=3

No comments:

Post a Comment