Mercurial > dotfiles
diff 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 |
line wrap: on
line diff
--- 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 <F7> :VimcrosoftBuildActiveProject<cr> + nnoremap <F8> :VimcrosoftBuildSln<cr> +endif + " }}} " Folding {{{