-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
140 lines (105 loc) · 4.07 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
set nocompatible
" these two calls were slowing things waaaay down.
call pathogen#runtime_append_all_bundles()
call pathogen#helptags()
filetype plugin on
filetype indent on
" Set ctrlp to regexp mode by default
let g:ctrlp_regexp = 1
"set fileformats=unix,mac,dos
syntax enable
"set background=dark
colo dw_cyan
" colo xoria256
" colo brian
" colo default
let mapleader = ","
let g:mapleader = ","
map <leader>t :CommandTFlush<cr>\|:CommandT<cr>
map <leader>tg :CommandTFlush<cr>\|:CommandT %%<cr>
" vjde settings
"au BufNewFile,BufRead *.java set cfu=VjdeCompletionFun
"au BufNewFile,BufRead *.java let g:vjde_lib_path="/home/brian/android_try/android-api/android-src.jar"
"au BufNewFile,BufRead *.java let g:vjde_completion_key='<c-space>'
" ctags for actionscript language
"let tlist_actionscript_settings = 'actionscript;c:class;f:method;p:property;v:variable'
" ctags for ant
"let g:tlist_ant_settings = 'ant;p:Project;t:Target;r:Property'
let g:vimroom_background = "bg"
set autoindent
set expandtab
set smarttab
set softtabstop=4
set shiftwidth=4
set tabstop=4
set number
set ignorecase
set smartcase
set wildmenu
set wildmode=longest:full,full
set wildignore +=*-
au BufNewFile,BufRead *.scss set filetype=scss
au BufNewFile,BufRead *.jsp set filetype=xml
au BufNewFile,BufRead *.jspx set filetype=xml
au BufNewFile,BufRead *.mxml set filetype=mxml
au BufNewFile,BufRead *.rb set softtabstop=2 shiftwidth=2 tabstop=2 sw=2
au BufNewFile,BufRead *.pp set softtabstop=2 shiftwidth=2 tabstop=2 sw=2 filetype=ruby
au BufNewFile,BufRead 'VagrantFile' set ft=ruby
au BufNewFile,BufRead [vV]agrantfile set filetype=ruby softtabstop=2 shiftwidth=2 tabstop=2 sw=2
" vjde settings
au BufNewFile,BufRead *.java set cfu=VjdeCompletionFun
"au BufNewFile,BufRead *.java let g:vjde_lib_path="/home/brian/android_try/android-api/android-src.jar"
au BufNewFile,BufRead *.java let g:vjde_completion_key='<c-space>'
autocmd FileType actionscript set omnifunc=actionscriptcomplete#CompleteAS
autocmd FileType actionscript set dictionary=$HOME/.vim/dict/actionscript.dict
autocmd FileType scss setlocal commentstring=/*\ %s\ */
set foldmethod=indent
cmap :nt NERDTree
cmap :ntt NERDTreeToggle
cmap :ntm NERDTreeMirror
cmap :ntc NERDTreeClose
cmap :ntf NERDTreeFind
cmap :tt TlistToggle
cmap :ff FufFile
cmap :asc exec 'cfile '.fcsh#Compile(["mxmlc", "-debug=true", "-incremental=true", "-benchmark=false", "Main.as"])
"FuzzyFinder Options
"let g:fuf_autoPreview = 1
"let g:fuf_previewHeight = 25
" where is this?
"let g:fuf_abbrevMap = {
"\ "^ " : [ "**/", ],
"\ "^src:" : [
"\ "./src/**/**",
"\ ],
"\ }
" NERD TREE OPTIONS "
"let NERDTreeWinPos = "left"
let g:netrw_liststyle=3
let g:netrw_browse_split=2
let g:netrw_altv=1
"This will show 'text' before the branches. If not set ' Git ' (with a trailing
"left space) will be displayed.
"let g:git_branch_status_text="text"
"The message when there is no Git repository on the current dir
"let g:git_branch_status_nogit=""
"Taglist options
"let Tlist_Use_Right_Window = 1
"let Tlist_Display_Tag_Scope = 1
"let Tlist_Show_One_File = 1
"set statusline=
"set statusline+=%{fugitive#statusline()}\
"set statusline+=%f\ "filename
"set statusline+=%y\ "filetype
"set statusline+=%*\ "switch back to normal statusline highlight
"set statusline+=[%c,%l]\ %P "column and line number
"set makeprg=ant
"set efm=\ %#[mxmlc]\ %f\(%l\):\ col:\ %c\ %m
"set efm=\ %#[javac]\ %#%f:%l:%c:%*\\d:%*\\d:\ %t%[%^:]%#:%m,\%A\ %#[javac]\ %f:%l:\ %m,%-Z\ %#[javac]\ %p^,%-C%.%#
"set makeprg=rake debug
"set efm=\ %#[ERROR]\ %f\(%l\):\ col:\ %c\ %m
map <F2> :exec 'cfile '.fcsh#Compile(["mxmlc", "-load-config+=build.xml", "-debug=true", "-incremental=true", "-benchmark=false"])
map <F3> :exec 'cfile '.fcsh#Compile(["mxmlc", "-debug=true", "-incremental=true", "-benchmark=false", "Main.as"])
" experimental: run after gui has been started
" report breakage in this case, please
" au GUIEnter * call Activate()
"map <F2> :exec 'cfile '.fcsh#Compile(["mxmlc", "-load-config+=build-vim.xml", "-debug=true", "-incremental=true", "-benchmark=false"])