-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
72 lines (65 loc) · 2.34 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
63
64
65
66
67
68
69
70
71
72
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'tpope/vim-surround'
Plugin 'tpope/vim-fireplace'
Plugin 'guns/vim-sexp'
Plugin 'tpope/vim-sexp-mappings-for-regular-people'
Plugin 'guns/vim-clojure-static'
Plugin 'kien/rainbow_parentheses.vim'
Plugin 'tpope/vim-dispatch'
Plugin 'kana/vim-textobj-user'
Plugin 'sgur/vim-textobj-parameter'
Plugin 'reedes/vim-textobj-quote'
Plugin 'pangloss/vim-javascript'
Plugin '2072/PHP-Indenting-for-VIm'
Plugin '2072/vim-syntax-for-PHP'
Plugin 'gtags.vim'
Plugin 'mustache/vim-mustache-handlebars'
Plugin 'joonty/vdebug.git'
Plugin 'kien/ctrlp.vim'
call vundle#end()
filetype plugin indent on
syntax on
set expandtab
set nowrap
" the default
set shiftwidth=4 tabstop=4 softtabstop=4
" exceptions to the above general rule
autocmd FileType html setlocal shiftwidth=2 tabstop=2 softtabstop=2
autocmd FileType php setlocal shiftwidth=2 tabstop=2 softtabstop=2
autocmd FileType php autocmd BufWritePre <buffer> :%s/\s\+$//e
autocmd FileType html.mustache setlocal shiftwidth=2 tabstop=2 softtabstop=2
autocmd FileType css setlocal shiftwidth=2 tabstop=2 softtabstop=2
autocmd FileType markdown setlocal shiftwidth=2 tabstop=2 softtabstop=2
autocmd FileType javascript setlocal shiftwidth=2 tabstop=2 softtabstop=2
autocmd FileType make setlocal noexpandtab
" related to vim-textobj-quote
" can be easily enabled for other types of things
autocmd FileType markdown call textobj#quote#init()
" extremely common shift-misspellings I make, automatically corrected
cmap Tabe tabe
let g:vdebug_options= {
\ "port" : 9001,
\ "path_maps" : {"/wayfair/data/codebase/php/" : "/home/matt/codebase/php/"},
\
\ "server" : 'localhost',
\ "timeout" : 20,
\ "on_close" : 'detach',
\ "break_on_open" : 1,
\ "ide_key" : '',
\ "debug_window_level" : 0,
\ "debug_file_level" : 0,
\ "debug_file" : "",
\ "watch_window_style" : 'expanded',
\ "marker_default" : '⬦',
\ "marker_closed_tree" : '▸',
\ "marker_open_tree" : '▾'
\}
autocmd FileType php let b:dispatch = './codescent.zsh %'
" Doesn't work, currently
" autocmd FileType php setlocal errorformat+=%f:%l:%c:\ %t%*[a-zA-Z]\ -\ %m
autocmd FileType javascript let b:dispatch = 'grunt sniff --file=%'
let g:ctrlp_custom_ignore = 'node_modules'