/
vimrc
60 lines (53 loc) · 1.38 KB
/
vimrc
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
filetype off
filetype plugin indent on
set cinoptions=:0,(0,u0,W1s
set modelines=5
set formatoptions+=r
nmap <D-e> :NERDTree<CR>
nmap <D-E> :NERDTree
"load pathogen
call pathogen#infect()
"coffee
"au BufWritePost *.coffee silent CoffeeMake! -b | cwindow | redraw!
au BufNewFile,BufReadPost *.coffee setl sw=4 ts=4 expandtab
"window
let mapleader = ","
nmap <Leader>s :new<CR>
nmap <Leader>v :vne<CR>
nmap <Leader>o <C-w>o
nmap <Leader>c <C-w>c
nmap <Leader>j <C-w>j
nmap <Leader>k <C-w>k
nmap <Leader>h <C-w>h
nmap <Leader>l <C-w>l
nmap <Leader>t <C-w>t
nmap <Leader>p <C-w>p
nmap <Leader>x <C-w>x
"color override
hi Comment guifg=#aa4444 gui=italic
hi CursorColumn guibg=#292929 guifg=#ffffff ctermbg=233 ctermfg=230
"basic setup
set hidden
set ignorecase
set showmatch
"Command-t
nnoremap <silent> <Leader>t :CommandT<CR>
nnoremap <silent> <Leader>T :CommandTBuffer<CR>
set nobackup
set nocompatible
set cursorcolumn
syntax on
"color override
hi Comment guifg=#aa4444 gui=italic
hi CursorColumn guibg=#292929 guifg=#ffffff ctermbg=233 ctermfg=230
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
"remote editing
let g:netrw_http_cmd="wget"
let g:netrw_http_xcmd="-q -O"
"taglist
let Tlist_Use_Right_Window = 1
let g:Tlist_Ctags_Cmd = "/usr/local/bin/ctags"
let Tlist_Compact_Format = 1
nnoremap <silent> <Leader>i :TlistOpen<CR>
nnoremap <silent> <Leader>o :TlistToggle<CR>