Browse code
Regular updates . . .
Ed L authored on 17/10/2015 16:26:28
Showing 6 changed files
Showing 6 changed files
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,344 @@ |
1 |
+" This goes here in case a filetype overrides it |
|
2 |
+ |
|
3 |
+"NeoBundle Scripts----------------------------- |
|
4 |
+if has('vim_starting') |
|
5 |
+ set nocompatible " Be iMproved |
|
6 |
+ |
|
7 |
+ " Required: |
|
8 |
+ set runtimepath+=$HOME/.vim/bundle/neobundle.vim/ |
|
9 |
+endif |
|
10 |
+ |
|
11 |
+" Required: |
|
12 |
+call neobundle#begin(expand("$HOME/.vim/bundle")) |
|
13 |
+ |
|
14 |
+" Let NeoBundle manage NeoBundle |
|
15 |
+" Required: |
|
16 |
+NeoBundleFetch 'Shougo/neobundle.vim' |
|
17 |
+ |
|
18 |
+" My Bundles here: |
|
19 |
+NeoBundle 'altercation/vim-colors-solarized' |
|
20 |
+NeoBundle 'bitc/vim-hdevtools' |
|
21 |
+NeoBundle 'Blackrush/vim-gocode' |
|
22 |
+NeoBundle 'bling/vim-airline' |
|
23 |
+NeoBundle 'burnettk/vim-angular' |
|
24 |
+NeoBundle 'christoomey/vim-tmux-navigator' |
|
25 |
+NeoBundle 'curist/vim-angular-template' |
|
26 |
+NeoBundle 'eagletmt/ghcmod-vim' |
|
27 |
+NeoBundle 'eagletmt/neco-ghc' |
|
28 |
+"NeoBundle 'enomsg/vim-haskellConcealPlus' |
|
29 |
+NeoBundle 'exu/pgsql.vim' |
|
30 |
+NeoBundle 'godlygeek/tabular' |
|
31 |
+NeoBundle 'groenewege/vim-less' |
|
32 |
+NeoBundle 'guns/vim-clojure-static' |
|
33 |
+NeoBundle 'ivanov/vim-ipython' |
|
34 |
+NeoBundle 'jmcantrell/vim-virtualenv' |
|
35 |
+NeoBundle 'kien/rainbow_parentheses.vim' |
|
36 |
+NeoBundle 'kovisoft/slimv' |
|
37 |
+"NeoBundle 'lukerandall/haskellmode-vim' |
|
38 |
+NeoBundle 'matthewsimo/angular-vim-snippets' |
|
39 |
+NeoBundle 'msanders/snipmate.vim' |
|
40 |
+NeoBundle 'othree/javascript-libraries-syntax.vim' |
|
41 |
+NeoBundle 'pangloss/vim-javascript' |
|
42 |
+NeoBundle 'raichoo/haskell-vim' |
|
43 |
+NeoBundle 'scrooloose/nerdcommenter' |
|
44 |
+NeoBundle 'scrooloose/syntastic' |
|
45 |
+NeoBundle 'Shougo/unite-outline' |
|
46 |
+NeoBundle 'Shougo/unite.vim' |
|
47 |
+NeoBundle 'Shougo/vimfiler.vim' |
|
48 |
+NeoBundle 'Shougo/vimproc' |
|
49 |
+NeoBundle 'Shougo/vimshell.vim' |
|
50 |
+NeoBundle 'sjl/gundo.vim' |
|
51 |
+NeoBundle 'sjl/vitality.vim' |
|
52 |
+NeoBundle 'sophacles/vim-bundle-mako' |
|
53 |
+NeoBundle 'terryma/vim-multiple-cursors' |
|
54 |
+NeoBundle 'tpope/vim-fireplace' |
|
55 |
+NeoBundle 'tpope/vim-fugitive' |
|
56 |
+NeoBundle 'tpope/vim-repeat' |
|
57 |
+NeoBundle 'tpope/vim-surround' |
|
58 |
+"NeoBundle 'Twinside/vim-haskellFold' |
|
59 |
+NeoBundle 'Twinside/vim-hoogle' |
|
60 |
+NeoBundle 'vim-pandoc/vim-pandoc' |
|
61 |
+NeoBundle 'vim-scripts/dbext.vim' |
|
62 |
+NeoBundle 'vim-scripts/pydoc.vim' |
|
63 |
+NeoBundle 'vim-scripts/VimClojure' |
|
64 |
+NeoBundle 'vim-voom/VOoM' |
|
65 |
+NeoBundle 'ytsunetsune/unite-outline-euslisp' |
|
66 |
+NeoBundle 'mattn/emmet-vim.git' |
|
67 |
+ |
|
68 |
+" Required: |
|
69 |
+call neobundle#end() |
|
70 |
+ |
|
71 |
+" Required: |
|
72 |
+filetype plugin indent on |
|
73 |
+ |
|
74 |
+" If there are uninstalled bundles found on startup, |
|
75 |
+" this will conveniently prompt you to install them. |
|
76 |
+NeoBundleCheck |
|
77 |
+"End NeoBundle Scripts------------------------- |
|
78 |
+set mouse= |
|
79 |
+set nohlsearch |
|
80 |
+let counter = 0 |
|
81 |
+let g:syntastic_auto_loc_list=1 |
|
82 |
+let g:sql_type_default = 'pgsql' |
|
83 |
+let g:airline_theme="murmur" |
|
84 |
+let g:haddock_browser_callformat = "%s %s" |
|
85 |
+let g:haddock_browser = "open" |
|
86 |
+let g:lisp_rainbow=1 |
|
87 |
+let g:pandoc_no_empty_implicits=1 |
|
88 |
+let g:pandoc_use_hard_wraps = 1 |
|
89 |
+let g:pandoc#modules#enabled = ["formatting", "folding", "completion", "metadata","menu"] |
|
90 |
+let g:pandoc#modules#disabled = ["command", "bibliographies"] |
|
91 |
+let g:pandoc_formatting_settings = "h" |
|
92 |
+let g:pandoc#filetypes#handled = ["markdown", "rst", "textile"] |
|
93 |
+let g:slimv_disable_clojure=1 |
|
94 |
+let g:snips_author="Edward Langley" |
|
95 |
+let g:solarized_termtrans=1 |
|
96 |
+let g:syntastic_python_checkers = ['python'] |
|
97 |
+let g:Tex_CompileRule_pdf = 'xelatex -interaction=nonstopmode $*' |
|
98 |
+let g:tex_flavor='xelatex' |
|
99 |
+let g:unite_force_overwrite_statusline = 0 |
|
100 |
+let g:vimclojure#HighlightBuiltins = 1 |
|
101 |
+let g:vimclojure#HighlightBuiltins = 1 |
|
102 |
+let g:vimclojure#ParenRainbow = 1 |
|
103 |
+let g:vimclojure#ParenRainbow = 1 |
|
104 |
+let g:virtualenv_directory = "$HOME/python_envs" |
|
105 |
+let maplocalleader=',' |
|
106 |
+let $PAGER='' |
|
107 |
+let python_highlight_all = 1 |
|
108 |
+let python_no_tab_space_error=1 |
|
109 |
+let python_space_errors=1 |
|
110 |
+let vimclojure#WantNailgun = 1 |
|
111 |
+ |
|
112 |
+ |
|
113 |
+" IMPORTANT: grep will sometimes skip displaying the file name if you |
|
114 |
+" search in a singe file. This will confuse Latex-Suite. Set your grep |
|
115 |
+" program to always generate a file-name. |
|
116 |
+ |
|
117 |
+" OPTIONAL: This enables automatic indentation as you type. |
|
118 |
+filetype indent on |
|
119 |
+ |
|
120 |
+" OPTIONAL: Starting with Vim 7, the filetype of empty .tex files defaults to |
|
121 |
+" 'plaintex' instead of 'tex', which results in vim-latex not being loaded. |
|
122 |
+" The following changes the default filetype back to 'tex': |
|
123 |
+let g:tex_flavor='latex' |
|
124 |
+ |
|
125 |
+" Configuration file for vim |
|
126 |
+ |
|
127 |
+" Normally we use vim-extensions. If you want true vi-compatibility |
|
128 |
+" remove change the following statements |
|
129 |
+ |
|
130 |
+" Don't write backup file if vim is being called by "crontab -e" |
|
131 |
+au BufWrite /private/tmp/crontab.* set nowritebackup |
|
132 |
+" Don't write backup file if vim is being called by "chpass" |
|
133 |
+au BufWrite /private/etc/pw.* set nowritebackup |
|
134 |
+ |
|
135 |
+"Enable support for Color xterm |
|
136 |
+:if has("terminfo") |
|
137 |
+: set t_Co=8 |
|
138 |
+: set t_Sf=[3%p1%dm |
|
139 |
+: set t_Sb=[4%p1%dm |
|
140 |
+:else |
|
141 |
+: set t_Co=8 |
|
142 |
+: set t_Sf=[3%dm |
|
143 |
+: set t_Sb=[4%dm |
|
144 |
+:endif |
|
145 |
+ |
|
146 |
+set omnifunc=syntaxcomplete#Complete |
|
147 |
+set ignorecase |
|
148 |
+set smartcase |
|
149 |
+set autoindent |
|
150 |
+set nu |
|
151 |
+set expandtab |
|
152 |
+set tabstop=3 softtabstop=2 |
|
153 |
+set smarttab |
|
154 |
+set shiftwidth=2 |
|
155 |
+set incsearch |
|
156 |
+set scrolloff=4 |
|
157 |
+set wildmode=longest,list |
|
158 |
+set autoread |
|
159 |
+set background=dark |
|
160 |
+set pastetoggle=<F12> |
|
161 |
+set undodir=~/.vim/undodir |
|
162 |
+set undofile |
|
163 |
+set undolevels=10000 |
|
164 |
+set undoreload=100000 |
|
165 |
+set foldlevel=9 |
|
166 |
+set hidden |
|
167 |
+set laststatus=2 |
|
168 |
+set splitbelow |
|
169 |
+set splitright |
|
170 |
+set grepprg=grep\ -nH\ $* |
|
171 |
+set modelines=1 " CVE-2007-2438 |
|
172 |
+set backspace=2 " more powerful backspacing |
|
173 |
+ |
|
174 |
+syntax enable |
|
175 |
+colorscheme solarized |
|
176 |
+ |
|
177 |
+if &term =~ "xterm\\|rxvt" |
|
178 |
+ " use an orange cursor in insert mode |
|
179 |
+ let &t_SI = "\<Esc>]12;blue\x7" |
|
180 |
+ " use a red cursor otherwise |
|
181 |
+ let &t_EI = "\<Esc>]12;yellow\x7" |
|
182 |
+ silent !echo -ne "\033]12;yellow\007" |
|
183 |
+ " reset cursor when vim exits |
|
184 |
+ autocmd VimLeave * silent !echo -ne "\033]112\007" |
|
185 |
+ " use \003]12;gray\007 for gnome-terminal |
|
186 |
+endif |
|
187 |
+ |
|
188 |
+"SmartIndent for Python |
|
189 |
+"autocmd BufEnter *.hs compiler ghc |
|
190 |
+au FocusLost * :wa |
|
191 |
+ |
|
192 |
+function Checkft() |
|
193 |
+ if &filetype=="" |
|
194 |
+ filetype detect |
|
195 |
+ endif |
|
196 |
+endfunction |
|
197 |
+ |
|
198 |
+autocmd! BufNewFile * silent! 0r ~/.vim/skel/tmpl.%:e |
|
199 |
+autocmd BufRead *.mako set ft=mako |
|
200 |
+autocmd BufRead *.md set dictionary+=/usr/share/dict/words |
|
201 |
+autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif |
|
202 |
+autocmd BufRead *.tac set ft=python |
|
203 |
+autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class |
|
204 |
+autocmd BufWritePre *.py normal m`:%s/\s\+$//e `` |
|
205 |
+autocmd bufwritepost * call Checkft() |
|
206 |
+autocmd FileType markdown set linebreak tw=110 noexpandtab nosmartindent autoindent |
|
207 |
+autocmd FileType pandoc set linebreak tw=110 noexpandtab nosmartindent autoindent |
|
208 |
+autocmd FileType pantondoc set linebreak tw=110 noexpandtab nosmartindent autoindent |
|
209 |
+"autocmd FileType python map K \pW |
|
210 |
+autocmd FileType python set complete+=k~/.vim/syntax/python.vim "isk+=.,( |
|
211 |
+autocmd FileType haskell set omnifunc=necoghc#omnifunc |
|
212 |
+autocmd FileType lisp set omnifunc=SlimvOmniComplete |
|
213 |
+" when we reload, tell vim to restore the cursor to the saved position |
|
214 |
+ |
|
215 |
+"Diable the anti-python smart indent of # |
|
216 |
+inoremap # X# |
|
217 |
+ |
|
218 |
+"Turn Syntax Highlighting on by default, and assume the xterm background is black |
|
219 |
+imap <C-g> :Unite outline -buffer-name=outline -resume -start-insert |
|
220 |
+imap <F7> :Unite outline -buffer-name=outline -resume -start-insert |
|
221 |
+imap <F8> o :,!pbpaste |
|
222 |
+imap <F9> o :,!pbpaste |
|
223 |
+inoremap <expr> <C-L> ListItem() |
|
224 |
+inoremap <expr> <C-R> ListReset() |
|
225 |
+inoremap <F2> :set nonumber! foldcolumn=0<CR> |
|
226 |
+inoremap <F3> :!spot_control pr<CR> |
|
227 |
+inoremap <F4> :!spot_control p<CR><CR> |
|
228 |
+inoremap <F5> :!spot_control n<CR> |
|
229 |
+inoremap <Return> <Return><C-g>u |
|
230 |
+"inoremap <Space> <Space><C-g>u |
|
231 |
+"inoremap <Tab> <Tab><C-g>u |
|
232 |
+ |
|
233 |
+map <BS> dh |
|
234 |
+map <C-g> :Unite outline -buffer-name=outline -resume -start-insert |
|
235 |
+map CS :sil! :%s/\s\+$//g<CR>``:%s/^\(\t\+\)\( \+\(\t*\)\)\+/\1\3/gc<CR>`` |
|
236 |
+map <F7> :Unite outline -buffer-name=files -resume -start-insert |
|
237 |
+map <F8> o :,!pbpaste |
|
238 |
+map <F9> o :,!pbpaste |
|
239 |
+map <leader>f :Unite file -buffer-name=files -resume<CR>i |
|
240 |
+map <leader>q :Unite buffer -buffer-name=buffers -resume<CR>i |
|
241 |
+map W wb"_dwP |
|
242 |
+map ZX :wq<cr> |
|
243 |
+map ZZ :w<CR> |
|
244 |
+ |
|
245 |
+nmap <Leader>ci <Plug>VCSCommit |
|
246 |
+nnoremap <C-H> <C-W><C-H> |
|
247 |
+nnoremap <C-J> <C-W><C-J> |
|
248 |
+nnoremap <C-K> <C-W><C-K> |
|
249 |
+nnoremap <C-L> <C-W><C-L> |
|
250 |
+nnoremap <F2> :set nonumber!<CR>:set foldcolumn=0<CR> |
|
251 |
+ |
|
252 |
+"python << EOF |
|
253 |
+"import os |
|
254 |
+"import sys |
|
255 |
+"import vim |
|
256 |
+"for p in sys.path: |
|
257 |
+" if os.path.isdir(p): |
|
258 |
+" vim.command(r"set path+=%s" % (p.replace(" ", r"\ "))) |
|
259 |
+"EOF |
|
260 |
+ |
|
261 |
+ |
|
262 |
+func ListItem() |
|
263 |
+ let g:counter += 1 |
|
264 |
+ return g:counter |
|
265 |
+endfunc |
|
266 |
+ |
|
267 |
+func ListReset() |
|
268 |
+ let g:counter = 0 |
|
269 |
+ return '' |
|
270 |
+endfunc |
|
271 |
+ |
|
272 |
+set diffopt=vertical,filler,iwhite,foldcolumn:0 |
|
273 |
+ |
|
274 |
+highlight PmenuSel ctermfg=LightGray ctermbg=DarkRed |
|
275 |
+ |
|
276 |
+if filereadable(".vim.custom") |
|
277 |
+ so .vim.custom |
|
278 |
+endif |
|
279 |
+ |
|
280 |
+let g:syntastic_javascript_checkers = ['jshint'] |
|
281 |
+call unite#custom#source('file,file/new,buffer,file_rec','matchers','matcher_fuzzy') |
|
282 |
+ |
|
283 |
+autocmd FileType unite call s:unite_my_settings() |
|
284 |
+function! s:unite_my_settings() |
|
285 |
+ " Overwrite settings. |
|
286 |
+ let b:SuperTabDisabled=1 |
|
287 |
+ imap <buffer><expr> <C-v> unite#do_action('vsplit') |
|
288 |
+ imap <buffer><expr> <C-s> unite#do_action('split') |
|
289 |
+ imap <buffer> <Tab> <Plug>(unite_complete) |
|
290 |
+ imap <buffer> <C-j> <Plug>(unite_select_next_line) |
|
291 |
+ imap <buffer> <Down> <Plug>(unite_select_next_line) |
|
292 |
+ imap <buffer> <C-k> <Plug>(unite_select_previous_line) |
|
293 |
+ imap <buffer> <Up> <Plug>(unite_select_previous_line) |
|
294 |
+ |
|
295 |
+ " exit with esc |
|
296 |
+ nmap <buffer> <ESC> <Plug>(unite_exit) |
|
297 |
+ |
|
298 |
+ " exit with ctrl-c |
|
299 |
+ imap <buffer> <c-c> <Plug>(unite_exit) |
|
300 |
+ nmap <buffer> <c-c> <Plug>(unite_exit) |
|
301 |
+endfunction |
|
302 |
+ |
|
303 |
+if executable('ag') |
|
304 |
+ " let g:unite_source_file_async_command = |
|
305 |
+ " \ 'ag --follow --nocolor --nogroup --hidden -g ""' |
|
306 |
+ " https://github.com/ggreer/the_silver_searcher |
|
307 |
+ " Use ag in unite grep source. |
|
308 |
+ " let g:unite_source_rec_async_command = 'ag --follow --nocolor --nogroup --hidden ' . |
|
309 |
+ " \ '--ignore ''.hg'' --ignore ''.svn'' --ignore ''.git'' --ignore ''.bzr'' ' . |
|
310 |
+ " \ '--ignore ''**/*.pyc'' -g ""' |
|
311 |
+ let g:unite_source_grep_command = 'ag' |
|
312 |
+ let g:unite_source_grep_default_opts = |
|
313 |
+ \ '--line-numbers --nocolor --nogroup --hidden --ignore ' . |
|
314 |
+ \ '''.hg'' --ignore ''.svn'' --ignore ''.git'' --ignore ''.bzr'' ' . |
|
315 |
+ \ '--ignore ''**/*.pyc''' |
|
316 |
+ let g:unite_source_grep_recursive_opt = '' |
|
317 |
+elseif executable('ack-grep') |
|
318 |
+ let g:unite_source_grep_command = 'ack-grep' |
|
319 |
+ " Match whole word only. This might/might not be a good idea |
|
320 |
+ let g:unite_source_grep_default_opts = '--no-heading --no-color -a -H' |
|
321 |
+ "let g:unite_source_grep_default_opts = '--no-heading --no-color -a -w' |
|
322 |
+ let g:unite_source_grep_default_opts = '--exclude ''\.(git|svn|hg|bzr)''' |
|
323 |
+ let g:unite_source_grep_recursive_opt = '' |
|
324 |
+elseif executable('ack') |
|
325 |
+ let g:unite_source_grep_command = 'ack' |
|
326 |
+ let g:unite_source_grep_default_opts = '--no-heading --no-color -a -w' |
|
327 |
+ let g:unite_source_grep_default_opts = '--exclude ''\.(git|svn|hg|bzr)''' |
|
328 |
+ let g:unite_source_grep_recursive_opt = '' |
|
329 |
+endif |
|
330 |
+ |
|
331 |
+nnoremap [unite] <Nop> |
|
332 |
+nmap <space> [unite] |
|
333 |
+nmap [unite]s :<C-u>Unite -auto-preview grep:.<C-m> |
|
334 |
+nmap [unite]o :<C-u>Unite outline -start-insert<C-m> |
|
335 |
+nmap [unite]f :<C-u>Unite file_rec/async -start-insert<C-m> |
|
336 |
+nmap [unite]F :<C-u>Unite file -start-insert<C-m> |
|
337 |
+nmap [unite]g :<C-u>Unite file_rec/git -start-insert<C-m> |
|
338 |
+nmap [unite]j :<C-u>Unite buffer -start-insert<C-m> |
|
339 |
+ |
|
340 |
+" Reload |
|
341 |
+map <silent> tu :call GHC_BrowseAll()<CR> |
|
342 |
+" Type Lookup |
|
343 |
+map <silent> tw :call GHC_ShowType(1)<CR> |
|
344 |
+autocmd BufRead,BufNewFile *.css,*.scss,*.less setlocal foldmethod=marker foldmarker={,} |
... | ... |
@@ -1,36 +1,4 @@ |
1 |
-let counter = 0 |
|
2 |
-let g:syntastic_auto_loc_list=1 |
|
3 |
-let g:sql_type_default = 'pgsql' |
|
4 |
-let g:airline_theme="murmur" |
|
5 |
-let g:haddock_browser_callformat = "%s %s" |
|
6 |
-let g:haddock_browser = "open" |
|
7 |
-let g:lisp_rainbow=1 |
|
8 |
-let g:pandoc_no_empty_implicits=1 |
|
9 |
-let g:pandoc_use_hard_wraps = 1 |
|
10 |
-let g:pandoc#modules#enabled = ["formatting", "folding", "completion", "metadata","menu"] |
|
11 |
-let g:pandoc#modules#disabled = ["command", "bibliographies"] |
|
12 |
-let g:pandoc_formatting_settings = "h" |
|
13 |
-let g:pandoc#filetypes#handled = ["markdown", "rst", "textile"] |
|
14 |
-let g:slimv_disable_clojure=1 |
|
15 |
-let g:snips_author="Edward Langley" |
|
16 |
-let g:solarized_termtrans=1 |
|
17 |
-let g:syntastic_python_checkers = ['python'] |
|
18 |
-let g:Tex_CompileRule_pdf = 'xelatex -interaction=nonstopmode $*' |
|
19 |
-let g:tex_flavor='xelatex' |
|
20 |
-let g:unite_force_overwrite_statusline = 0 |
|
21 |
-let g:vimclojure#HighlightBuiltins = 1 |
|
22 |
-let g:vimclojure#HighlightBuiltins = 1 |
|
23 |
-let g:vimclojure#ParenRainbow = 1 |
|
24 |
-let g:vimclojure#ParenRainbow = 1 |
|
25 |
-let g:virtualenv_directory = "$HOME/python_envs" |
|
26 |
-let maplocalleader=',' |
|
27 |
-let $PAGER='' |
|
28 |
-let python_highlight_all = 1 |
|
29 |
-let python_no_tab_space_error=1 |
|
30 |
-let python_space_errors=1 |
|
31 |
-let vimclojure#WantNailgun = 1 |
|
32 |
- |
|
33 |
-" This goes here in case a filetype overrides it |
|
1 |
+http://clean.cs.ru.nl" This goes here in case a filetype overrides it |
|
34 | 2 |
|
35 | 3 |
"NeoBundle Scripts----------------------------- |
36 | 4 |
if has('vim_starting') |
... | ... |
@@ -108,6 +76,39 @@ filetype plugin indent on |
108 | 76 |
NeoBundleCheck |
109 | 77 |
"End NeoBundle Scripts------------------------- |
110 | 78 |
|
79 |
+let counter = 0 |
|
80 |
+let g:syntastic_auto_loc_list=1 |
|
81 |
+let g:sql_type_default = 'pgsql' |
|
82 |
+let g:airline_theme="murmur" |
|
83 |
+let g:haddock_browser_callformat = "%s %s" |
|
84 |
+let g:haddock_browser = "open" |
|
85 |
+let g:lisp_rainbow=1 |
|
86 |
+let g:pandoc_no_empty_implicits=1 |
|
87 |
+let g:pandoc_use_hard_wraps = 1 |
|
88 |
+let g:pandoc#modules#enabled = ["formatting", "folding", "completion", "metadata","menu"] |
|
89 |
+let g:pandoc#modules#disabled = ["command", "bibliographies"] |
|
90 |
+let g:pandoc_formatting_settings = "h" |
|
91 |
+let g:pandoc#filetypes#handled = ["markdown", "rst", "textile"] |
|
92 |
+let g:slimv_disable_clojure=1 |
|
93 |
+let g:snips_author="Edward Langley" |
|
94 |
+let g:solarized_termtrans=1 |
|
95 |
+let g:syntastic_python_checkers = ['python'] |
|
96 |
+let g:Tex_CompileRule_pdf = 'xelatex -interaction=nonstopmode $*' |
|
97 |
+let g:tex_flavor='xelatex' |
|
98 |
+let g:unite_force_overwrite_statusline = 0 |
|
99 |
+let g:vimclojure#HighlightBuiltins = 1 |
|
100 |
+let g:vimclojure#HighlightBuiltins = 1 |
|
101 |
+let g:vimclojure#ParenRainbow = 1 |
|
102 |
+let g:vimclojure#ParenRainbow = 1 |
|
103 |
+let g:virtualenv_directory = "$HOME/python_envs" |
|
104 |
+let maplocalleader=',' |
|
105 |
+let $PAGER='' |
|
106 |
+let python_highlight_all = 1 |
|
107 |
+let python_no_tab_space_error=1 |
|
108 |
+let python_space_errors=1 |
|
109 |
+let vimclojure#WantNailgun = 1 |
|
110 |
+ |
|
111 |
+ |
|
111 | 112 |
" IMPORTANT: grep will sometimes skip displaying the file name if you |
112 | 113 |
" search in a singe file. This will confuse Latex-Suite. Set your grep |
113 | 114 |
" program to always generate a file-name. |
... | ... |
@@ -1,6 +1,7 @@ |
1 | 1 |
echo "begin zshrc" |
2 | 2 |
echo ".zshrc loaded for $USER on $TTY at `date`" | logger |
3 | 3 |
source $HOME/.localzshrc.sh |
4 |
+autoload -U colors && colors |
|
4 | 5 |
|
5 | 6 |
# Path to your oh-my-zsh configuration. |
6 | 7 |
export ZSH=$HOME/.oh-my-zsh |
... | ... |
@@ -52,12 +53,34 @@ fi |
52 | 53 |
|
53 | 54 |
$FORTUNE |
54 | 55 |
|
56 |
+function battery_charge() { |
|
57 |
+ python "$HOME/bin/batcharge.py" 2>/dev/null |
|
58 |
+} |
|
59 |
+ |
|
60 |
+autoload -Uz vcs_info |
|
61 |
+zstyle ':vcs_info:*' actionformats \ |
|
62 |
+ '%F{5}%f%s%F{5}%F{3}-%F{5}%F{2}%b%F{3}|%F{1}%a%F{5}%f' |
|
63 |
+zstyle ':vcs_info:*' formats \ |
|
64 |
+ '%F{5}%f%s%F{5}%F{3}-%F{5}%F{2}%b%F{5}%f' |
|
65 |
+zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r' |
|
66 |
+ |
|
67 |
+zstyle ':vcs_info:*' enable git cvs svn |
|
68 |
+ |
|
69 |
+vcs_info_wrapper() { |
|
70 |
+ vcs_info |
|
71 |
+ if [ -n "$vcs_info_msg_0_" ]; then |
|
72 |
+ echo "%{$fg[grey]%}${vcs_info_msg_0_}%{$reset_color%}$del" |
|
73 |
+ fi |
|
74 |
+} |
|
75 |
+ |
|
55 | 76 |
export PYTHONSTARTUP=$HOME/Library/Python/2.7/site-packages/sitecustomize.py |
56 |
-PS1="--- |
|
57 |
-(%?) %m:%n--%l %/ |
|
58 |
-%!:%# " |
|
59 |
-export PS1 |
|
60 |
-RPROMPT="[%T]" |
|
77 |
+setopt promptsubst |
|
78 |
+PROMPT='--- |
|
79 |
+(%?) %m:%n--%l ${PWD/$HOME/~} `vcs_info_wrapper` `battery_charge` |
|
80 |
+%!:%# ' |
|
81 |
+export PROMPT |
|
82 |
+RPROMPT='[%T]' |
|
83 |
+ |
|
61 | 84 |
export RPROMPT |
62 | 85 |
HOSTNAME=`hostname -f` |
63 | 86 |
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"' |
... | ... |
@@ -90,7 +113,7 @@ export HISTFILE=$HOME/.zshistory |
90 | 113 |
|
91 | 114 |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH" |
92 | 115 |
|
93 |
-export MANPATH="/opt/local/share/man:$MANPATH" |
|
116 |
+export MANPATH="/opt/local/share/man:/Applications/Xcode.app/Contents/Developer/usr/share/man:$MANPATH" |
|
94 | 117 |
|
95 | 118 |
#export PAGER="/bin/sh -c \"unset PAGER;col -b -x | \ |
96 | 119 |
#vim -R -c 'set ft=man nomod nolist' -c 'map q :q<CR>' \ |
... | ... |
@@ -573,3 +596,6 @@ done |
573 | 596 |
alias cn=current_news |
574 | 597 |
|
575 | 598 |
# vim: set filetype=sh: |
599 |
+ |
|
600 |
+#THIS MUST BE AT THE END OF THE FILE FOR GVM TO WORK!!! |
|
601 |
+[[ -s "/Users/edwlan/.gvm/bin/gvm-init.sh" ]] && source "/Users/edwlan/.gvm/bin/gvm-init.sh" |