-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathplugin_config.vim
80 lines (59 loc) · 2.26 KB
/
plugin_config.vim
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
" RubyAndRails:
" Highlight ruby operators
let ruby_operators = 1
" Turn off rails bits of statusbar
let g:rails_statusline=0
" Screen IMPL
let g:ScreenImpl = 'Tmux'
set tags=./.tags;,./tags
" GitGutter:
let g:gitgutter_escape_grep = 1
let g:gitgutter_realtime = 0
" Airline:
let g:airline_powerline_fonts = 1
let g:airline#extensions#whitespace#enabled = 0
" Enable airline tabline
let g:airline#extensions#tabline#enabled = 0
" Unite:
let g:unite_winheight = 10
let g:unite_enable_start_insert = 1
let g:unite_enable_short_source_names = 1
let g:unite_source_history_yank_enable = 1
" To track long mru history.
let g:unite_source_file_mru_long_limit = 3000
let g:unite_source_directory_mru_long_limit = 3000
let g:unite_source_session_enable_auto_save = 1
" Default to the fuzzy matcher
call unite#filters#matcher_default#use(['matcher_fuzzy'])
call unite#filters#sorter_default#use(['sorter_rank'])
call unite#set_profile('files', 'ignorecase', 1)
call unite#set_profile('buffer', 'ignorecase', 1)
call unite#set_profile('tag', 'ignorecase', 1)
" sort file results by length
" call unite#custom_source('file_rec/async', 'sorters', 'sorter_length')
" call unite#custom_source('file_rec/async', 'ignore_pattern', '/\.(jpg|svg|gif|png)$/')
" Use ag for search
if executable('ag')
let g:unite_source_rec_async_command = 'ag --nocolor -l .'
let g:unite_source_grep_command = 'ag'
let g:unite_source_grep_default_opts = '--nogroup --nocolor --column'
let g:unite_source_grep_recursive_opt = ''
endif
" Custom mappings for the unite buffer
autocmd FileType unite call s:unite_settings()
function! s:unite_settings()
nmap <buffer> <ESC> <Plug>(unite_exit)
" Enable navigation with control-j and control-k in insert mode
imap <buffer> <C-j> <Plug>(unite_select_next_line)
imap <buffer> <C-k> <Plug>(unite_select_previous_line)
endfunction
" Neocompletioncache:
let g:neocomplcache_enable_at_startup = 1
let g:neocomplcache_enable_camel_case_completion = 1
let g:neocomplcache_enable_smart_case = 1
let g:neocomplcache_enable_underbar_completion = 1
let g:neocomplcache_enable_auto_delimiter = 1
let g:neocomplcache_max_list = 15
let g:neocomplcache_force_overwrite_completefunc = 1
" <TAB>: completion.
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"