-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc.plugins
126 lines (107 loc) · 3.61 KB
/
.vimrc.plugins
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
" Ack
let g:ackprg = 'ag --nogroup --nocolor --column --smart-case'
" NerdTree
let g:NERDShutUp=1
let NERDTreeMinimalUI=1
let NERDTreeShowBookmarks=0
let NERDTreeIgnore=['\.py[cd]$', '\~$', '\.swo$', '\.swp$', '^\.git$', '^\.hg$', '^\.svn$', '\.bzr$']
let NERDTreeChDirMode=0
let NERDTreeQuitOnOpen=1
let NERDTreeMouseMode=2
let NERDTreeShowHidden=1
let NERDTreeKeepTreeInNewTab=1
let g:nerdtree_tabs_open_on_gui_startup=0
" MatchIt
let b:match_ignorecase = 1
" Ctags
set tags=./tags;/,~/.vimtags
" Make tags placed in .git/tags file available in all levels of a repository
let gitroot = substitute(system('git rev-parse --show-toplevel'), '[\n\r]', '', 'g')
if gitroot != ''
let &tags = &tags . ',' . gitroot . '/.git/tags'
endif
" CtrlP
let g:ctrlp_working_path_mode = 'ra'
let g:ctrlp_custom_ignore = {
\ 'dir': '\.git$\|\.hg$\|\.svn$',
\ 'file': '\.exe$\|\.so$\|\.dll$\|\.pyc$' }
if executable('ag')
let s:ctrlp_fallback = 'ag %s --nocolor -l -g ""'
else
let s:ctrlp_fallback = 'find %s -type f'
endif
let g:ctrlp_user_command = {
\ 'types': {
\ 1: ['.git', 'cd %s && git ls-files . --cached --exclude-standard --others'],
\ 2: ['.hg', 'hg --cwd %s locate -I .'],
\ },
\ 'fallback': s:ctrlp_fallback
\ }
" UndoTree
nnoremap <Leader>u :UndotreeToggle<CR>
let g:undotree_SetFocusWhenToggle=1
" Wildfire
let g:wildfire_fuel_map = "<Leader><ENTER>"
let g:wildfire_water_map = "<Leader><BS>"
let g:wildfire_objects = {
\ "*" : ["i'", 'i"', "i)", "i]", "i}", "ip"],
\ "html,xml" : ["at"],
\ }
" vim-airline
" let g:airline_theme = 'solarized'
let g:airline_left_sep='›' " Slightly fancier than '>'
let g:airline_right_sep='‹' " Slightly fancier than '<'
let g:airline_theme='solarized'
" vim-flow
let g:flow#enable = 0
" Syntastic (with fix for virtual env)
let g:syntastic_python_pylint_exec='~/bin/pylint.sh'
let g:syntastic_javascript_eslint_exec = 'eslint_d'
let g:syntastic_javascript_eslint_args = '--parser=babel-eslint'
let g:syntastic_always_populate_loc_list = 1
autocmd FileType python let b:syntastic_checkers = ['python', 'pylint']
autocmd BufNewFile,BufRead *.jsx let b:syntastic_checkers = ['eslint', 'flow']
autocmd BufNewFile,BufRead *.js let b:syntastic_checkers = ['eslint', 'flow']
autocmd BufNewFile,BufRead *.scala let b:syntastic_checkers = ['']
autocmd BufNewFile,BufRead *.java let b:syntastic_checkers = ['']
" python mode (disable bullshits)
let g:pymode_breakpoint = 0
let g:pymode_run = 0
let g:pymode_doc = 0
let g:pymode_folding = 0
let g:pymode_rope = 0
let g:pymode_trim_whitespaces = 0
let g:pymode_lint = 0
let g:pymode_indent = 0
let g:pymode_options = 0
let g:pymode_options_max_line_length = 99
autocmd FileType python setlocal indentexpr=pymode#indent#get_indent(v:lnum)
autocmd FileType python setlocal indentkeys=!^F,o,O,<:>,0),0],0},=elif,=except
" Easy Motion
let g:EasyMotion_smartcase = 1
let g:EasyMotion_enter_jump_first = 1
let g:EasyMotion_space_jump_first = 1
let g:EasyMotion_skipfoldedline = 0
" vimux
let g:VimuxOrientation = "h"
" Projectionist
let g:projectionist_heuristics = {
\ '*': {
\ '**/tests/*.js': {
\ 'alternate': ['{dirname}/{basename}.js', '{dirname}/{basename}.jsx'],
\ 'type': 'test'
\ },
\ '*.js': {
\ 'alternate': '{dirname}/tests/{basename}.js',
\ 'type': 'source'
\ },
\ '*.jsx': {
\ 'alternate': '{dirname}/tests/{basename}.js',
\ 'type': 'source'
\ },
\ '**/style.scss': {
\ 'alternate': '{dirname}/index.jsx',
\ 'type': 'style'
\ }
\ }
\ }