summaryrefslogtreecommitdiffstats
path: root/vim/vimrc
blob: c18062d41a0aeafd6926c2cdf4e6b6054cf096d2 (plain)
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
syntax on
colorscheme Mustang_Vim_Colorscheme_by_hcalves
filetype plugin indent on

set t_Co=88      " 88 colors
set ls=0
set number       " enable linenumbers
set noerrorbells " bell sucks
set autoindent
set tabstop=4
set textwidth=80
set shiftwidth=4
set shiftround
set modeline     " enable modelines
set nobackup     " get rid of backupfiles
set nohlsearch   " stop hilight all matches
"set foldenable
"set listchars=tab:»·
"set list         " enable tab chars


" NERDtree stuff
let g:NERDTreeQuitOnOpen = 1
let g:NERDChristmasTree = 1
let g:NERDTreeStatusline = 1
let g:NERDTreeWinPos = 2

nmap <F1> :echo<CR>
imap <F1> <C-o>:echo<CR>
map <F1> :execute 'NERDTreeToggle'<CR>

" auto headers
autocmd bufnewfile *.py so ~/etc/vim/header_python
autocmd bufnewfile *.html so ~/etc/vim/header_html
autocmd bufnewfile,bufread *.tpl set filetype=html