summaryrefslogblamecommitdiffstats
path: root/vimrc
blob: 8a91e6ed2090d5f8bd68810b29d159c08fd6a6e5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                     





                  

                




                 


                       


                          
                                    





                                  

                                                



                                   

                             
so ~/.vim/plugins.vim

filetype on
syntax on
colorscheme desert
set number
filetype indent on
set nowrap
set tabstop=2
set shiftwidth=2
set expandtab
set smartindent
set autoindent
set guioptions-=T

" highlight cursor line
set cursorline

" highlight search matches
set hlsearch

" show matching parenthesis/brackets
set showmatch

" remove whitespace on write
autocmd BufWritePre * :%s/\s\+$//e

" press esc to cancel search
noremap <silent> <Esc> :nohlsearch<Bar>:echo<CR>

" Arrow keys move visually up/down.
noremap <up> gk
noremap <down> gj

" toggle nerdtree with ctrl-o
map <C-o> :NERDTreeToggle<CR>