/
.vimrc
62 lines (49 loc) · 1.48 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
60
61
62
call pathogen#helptags()
call pathogen#runtime_append_all_bundles()
set nocompatible
syntax enable
filetype on
filetype plugin on
filetype plugin indent on
set showmatch
set ruler
set hlsearch
set number
" Default indentation
set tabstop=4
set autoindent
set shiftwidth=4
set expandtab
set shell=/bin/bash
"SECTION: NERDTree Customization
" \d will hide/show
" \b will enter :NERDTreeFromBookmark and then
" you can autocomplete the name of a bookmark
map <leader>d :execute 'NERDTreeToggle ' . getcwd()<CR>
map <leader>b :NERDTreeFromBookmark
let NERDTreeIgnore=['\.pyc$', 'CVS', '\~$']
" Colorscheme
colorscheme tombat
if has("gui_running")
colorscheme tombat
set go-=T
set guifont=M+_1mn:h14
endif
" Javascript
au BufNewFile,BufRead *.js set makeprg=fixjsstyle\ %
au BufNewFile,BufRead *.js set errorformat=%-P-----\ FILE\ \ :\ \ %f\ -----,Line\ %l\\,\ E:%n:\ %m,%-Q,%-GFound\ %s,%-GSome\ %s,%-Gfixjsstyle%s,%-Gscript\ can\ %s,%-G
autocmd BufRead,BufNewFile *.mss set syntax=css
augroup module
autocmd BufRead *.module set filetype=php comments=s1:/*,mb:*,ex:*/,://,:# formatoptions=lqrowcb
augroup END
augroup inc
autocmd BufRead *.inc set filetype=php comments=s1:/*,mb:*,ex:*/,://,:# formatoptions=lqrowcb
augroup END
augroup hbs
autocmd BufRead *.hbs set filetype=html
augroup END
set statusline=[%n]\ %<%.99f\ %h%w%m%r%y%{exists('g:loaded_fugitive')?fugitive#statusline():''}%=%-16(\ %l,%c-%v\ %)%P
" gist-vim
" mac
let g:gist_clip_command = 'pbcopy'
let g:gist_detect_filetype = 1