mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-10 04:02:55 +00:00
7 lines
193 B
Fish
7 lines
193 B
Fish
function edit --description "Open a file in Vim"
|
|
set vimfile (fzf)
|
|
and set vimfile (echo $vimfile | tr -d '\r')
|
|
and commandline -r "vim $vimfile"
|
|
and commandline -f execute
|
|
end
|