summaryrefslogtreecommitdiffstats
path: root/vimrc
blob: 79b6e55b907ebca05b1a6db031d9ceda75bc49a9 (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
filetype on
syntax on
colorscheme desert
set number
filetype indent on
set nowrap
set tabstop=4
set shiftwidth=4
set expandtab
set smartindent
set autoindent
set guioptions-=T

" highlight search matches
set hlsearch

" show matching parenthesis
set showmatch

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

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