fzf-vim: don't open Vim if no file is selected
This commit is contained in:
@@ -38,6 +38,7 @@ hbd ~/.habitctl
|
||||
ib ~/linux-config/dot_config/i3blocks/scripts
|
||||
ra ~/linux-config/dot_config/ranger
|
||||
rd ~/Documents/red-discord-bot
|
||||
rdt ~/coding/red-discord-bot
|
||||
sr ~/linux-config/scripts
|
||||
snp ~/.vim/plugged/vim-snippets/UltiSnips
|
||||
sw ~/.local/share/nvim/swap/
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
function fzf-vim
|
||||
fzf | xargs $EDITOR
|
||||
set file (fzf)
|
||||
if test ! -z "$file"
|
||||
$EDITOR $file
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user