Mercurial > dotfiles
changeset 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 | e368c8ae2a4b |
children | 07f1c6925823 |
files | vim/vimrc |
diffstat | 1 files changed, 15 insertions(+), 0 deletions(-) [+] |
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 {{{