summaryrefslogtreecommitdiffstats
path: root/vimrc
blob: 94273563de12e26830ab90679cb7e4fd6c8604e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
so ~/.vim/plugins.vim

filetype on
syntax on
colorscheme substrata
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>