summaryrefslogtreecommitdiffstats
path: root/vim/vimrc
blob: 8ef06b5606cd01fa428c3faf6f96953896c348ca (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
36
37
38
39
syntax on
filetype plugin indent on
set t_Co=256
colorscheme BusyBee
set tw=0
set sw=4
set ts=4
set ls=0
set number
set noerrorbells
set autoindent
set tabstop=4
set textwidth=80
set shiftwidth=4
set shiftround
set modeline
set nobackup
set nohlsearch
set colorcolumn=80
highlight ColorColumn ctermbg=darkred guibg=darkred
set foldenable
set listchars=tab:»·

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

inoremap ( ()<Esc>i
inoremap [ []<Esc>i
inoremap { {}<Esc>i
inoremap < <><Esc>i
inoremap " ""<Esc>i

"noremap s h
"noremap n k
"noremap r j
"noremap t l

map <F1> :NERDTreeToggle<CR>