# HG changeset patch # User Ludovic Chabant # Date 1568843932 25200 # Node ID 265442d4def8e16f6dd22a19f31e8e28c6b6f873 # Parent e368c8ae2a4b3c731e22d70a7b10c39244c4244b Improve FZF config on Vim, add Vimcrosoft mappings. diff -r e368c8ae2a4b -r 265442d4def8 vim/vimrc --- a/vim/vimrc Wed Sep 18 14:58:18 2019 -0700 +++ b/vim/vimrc Wed Sep 18 14:58:52 2019 -0700 @@ -301,12 +301,21 @@ call ludo#error("Can't find FZF at: ".s:local_fzfplugin) endif +" Customized keyboard shotcuts. let g:fzf_action = { \'ctrl-t': 'tab split', \'ctrl-v': 'vsplit', \'ctrl-x': 'split', \} +" Make fzf remember stuff. +let g:fzf_history_dir = ludo#localpath('fzf-history') + +" Use fd for listing files if it's available on the system. +if executable('fd') + let $FZF_DEFAULT_COMMAND = 'fd --type f' +endif + " }}} " Gutentags {{{ @@ -792,6 +801,12 @@ let g:Lf_StlSeparator = { 'left': '', 'right': '' } endif +" Vimcrosoft mappings. +if s:HasPlugin('vimcrosoft') + nnoremap :VimcrosoftBuildActiveProject + nnoremap :VimcrosoftBuildSln +endif + " }}} " Folding {{{