Advertisement
voyeg3r

vif

Dec 26th, 2021
1,534
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.22 KB | None | 0 0
  1. # source:https://stackoverflow.com/a/65375231/2571881
  2. # fzf + vim/nvim
  3. function vif() {
  4.     local fname
  5.     local current_dir=$PWD
  6.     cd ~/.dotfiles
  7.     fname=$(fzf) || return
  8.     vim "$fname"
  9.     cd $current_dir
  10. }
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement