dotfiles/fish.configlink/functions/edit.fish

7 lines
193 B
Fish
Raw Normal View History

2021-04-07 12:38:43 +00:00
function edit --description "Open a file in Vim"
set vimfile (fzf)
2021-05-04 13:47:58 +00:00
and set vimfile (echo $vimfile | tr -d '\r')
and commandline -r "vim $vimfile"
and commandline -f execute
2021-04-07 12:38:43 +00:00
end