forked from astrails/dotvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathafter.vim
More file actions
113 lines (99 loc) · 3.16 KB
/
after.vim
File metadata and controls
113 lines (99 loc) · 3.16 KB
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
" This file is loaded from after/plugin/after.vim
" which means it loads AFTER the rest of the plugins
source ~/.vim/bindings.vim
source ~/.vim/plugins-override.vim
set t_Co=256
let g:CSApprox_attr_map = { 'bold' : 'bold', 'italic' : '', 'sp' : '' }
set nu
map <Leader>\ <Plug>RubyTestRun
set tags+=gems.tags
set tags+=~/ruby_tags
set tags+=stdlib.tags
set updatetime=4000
set wildmenu
set wildmode=list:full
"set clipboard=unnamedplus
set clipboard=unnamed
set grepprg=ag
set synmaxcol=400
let g:DisableAutoPHPFolding = 1
let g:gitgutter_on_bufenter = 1
let g:gitgutter_all_on_focusgained = 1
let g:gitgutter_sign_column_always = 1
let g:gundo_auto_preview = 0
let g:nerd_tree_tabs_open_on_gui_startup = 0
colorscheme darcula
hi SignColumn ctermbg=236 guibg=#333
if has("gui_running")
set guioptions-=mrL
else
endif
map <Up> <C-W>-
map <Down> <C-W>+
map <Right> <C-w>>
map <Left> <C-w><
inoremap <expr> <C-j> ((pumvisible())?("\<C-n>"):("j"))
inoremap <expr> <C-k> ((pumvisible())?("\<C-p>"):("k"))
let g:neocomplcache_enable_fuzzy_completion = 1
autocmd FileType php setlocal makeprg=zca\ %<.php
"autocmd FileType php NeoComplCacheEnable
autocmd FileType php setlocal errorformat=%f(line\ %l):\ %m
set dictionary+=~/.vim/php-funclist.txt
let g:startify_show_files_number = 30
let g:startify_unlisted_buffer = 0
set expandtab
set ts=2 " number of spaces in a tab
set sw=2 " number of spaces for indent
let g:syntastic_php_checkers=['php']
map <C-1> :bp<cr>
map <C-2> :bn<cr>
nnoremap <Leader>fu :CtrlPFunky<Cr>
let g:haddock_browser='/usr/bin/firefox-nightly'
au Bufenter *.hs compiler ghc
"let g:neocomplete#enable_at_startup = 1
" Use smartcase.
"let g:neocomplete#enable_smart_case = 1
"let g:necoghc_enable_detailed_browse = 1
"setlocal omnifunc=necoghc#omnifunc
"let g:SuperTabDefaultCompletionType = "<C-X><C-O>"
let g:ctrlp_clear_cache_on_exit = 0
let g:ctrlp_max_files = 0
let g:ctrlp_cache_dir = $HOME.'/.cache/ctrlp'
"let g:ctrlp_user_command=['ack-grep `pwd` -f']
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files']
let g:ycm_key_invoke_completion = '<C-p>'
" Rcodetools
let g:RCT_toggle_binding="<C-X><C-t>" " use ^X^T to go test <=> implementation
"let g:RCT_ri_cmd = "ri -T "
"let g:rct_completion_use_fri = 1
map <silent> <C-c><C-c> !xmpfilter -a<cr>
nmap <silent> <F10> V<F10>
imap <silent> <F10> <ESC><F10>a
map <silent> <S-F10> !xmpfilter -u<cr>
nmap <silent> <S-F10> V<S-F10>
imap <silent> <S-F10> <ESC><S-F10>a
" Annotate the full buffer
" I actually prefer ggVG to %; it's a sort of poor man's visual bell
nmap <silent> <F11> mzggVG!xmpfilter -a<cr>'z
imap <silent> <F11> <ESC><F11>
" assertions
nmap <silent> <S-F11> mzggVG!xmpfilter -u<cr>'z
imap <silent> <S-F11> <ESC><S-F11>a
" Add # => markers
vmap <silent> <F12> !xmpfilter -m<cr>
nmap <silent> <F12> V<F12>
imap <silent> <F12> <ESC><F12>a
" Remove # => markers
vmap <silent> <S-F12> ms:call RemoveRubyEval()<CR>
nmap <silent> <S-F12> V<S-F12>
imap <silent> <S-F12> <ESC><S-F12>a
function! RemoveRubyEval() range
let begv = a:firstline
let endv = a:lastline
normal Hmt
set lz
execute ":" . begv . "," . endv . 's/\s*# \(=>\|!!\).*$//e'
normal 'tzt`s
set nolz
redraw
endfunction