comparison vim/vimrc @ 474:265442d4def8

Improve FZF config on Vim, add Vimcrosoft mappings.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 18 Sep 2019 14:58:52 -0700
parents 07ee0d517d92
children e79244688396
comparison
equal deleted inserted replaced
473:e368c8ae2a4b 474:265442d4def8
299 execute 'source' s:local_fzfplugin 299 execute 'source' s:local_fzfplugin
300 else 300 else
301 call ludo#error("Can't find FZF at: ".s:local_fzfplugin) 301 call ludo#error("Can't find FZF at: ".s:local_fzfplugin)
302 endif 302 endif
303 303
304 " Customized keyboard shotcuts.
304 let g:fzf_action = { 305 let g:fzf_action = {
305 \'ctrl-t': 'tab split', 306 \'ctrl-t': 'tab split',
306 \'ctrl-v': 'vsplit', 307 \'ctrl-v': 'vsplit',
307 \'ctrl-x': 'split', 308 \'ctrl-x': 'split',
308 \} 309 \}
310
311 " Make fzf remember stuff.
312 let g:fzf_history_dir = ludo#localpath('fzf-history')
313
314 " Use fd for listing files if it's available on the system.
315 if executable('fd')
316 let $FZF_DEFAULT_COMMAND = 'fd --type f'
317 endif
309 318
310 " }}} 319 " }}}
311 320
312 " Gutentags {{{ 321 " Gutentags {{{
313 322
790 nnoremap <silent> <Leader>fh :LeaderfHelp<cr> 799 nnoremap <silent> <Leader>fh :LeaderfHelp<cr>
791 800
792 let g:Lf_StlSeparator = { 'left': '', 'right': '' } 801 let g:Lf_StlSeparator = { 'left': '', 'right': '' }
793 endif 802 endif
794 803
804 " Vimcrosoft mappings.
805 if s:HasPlugin('vimcrosoft')
806 nnoremap <F7> :VimcrosoftBuildActiveProject<cr>
807 nnoremap <F8> :VimcrosoftBuildSln<cr>
808 endif
809
795 " }}} 810 " }}}
796 811
797 " Folding {{{ 812 " Folding {{{
798 813
799 " Start with one level of open. 814 " Start with one level of open.