How do I set current-directory in Vim to different Volumes, ex. USB drive, in macOS? -
i still new(er) user vim. switch between systems , rely on usb drive assist me. in linux can set default programs vim, can't in mac.
the solution i've found
:set path+=**
as cross-platform utility w/
:find
to me files opened in vim. however, since current-directory set current user, have difficulty using full potential.
i have tried "cd" in ~/.vimrc w/ various following scripts
$ cd ~/volume/volumes/usb $ cd ~/volumes/usb
, etc., no luck. i'm still trying vim in vanilla thru "~/.vimrc" file , not looking plugins or gui-interface. there "cd" can place in macos , linux "~/.vimrc" files set secondary-drive current-directory?
(apologies if answered, not find anywhere.)
the volumes
directory not in $home
. it's in /
have use right path:
cd /volumes/usb
this scheme specific mac os x, though: if want same behavior on linux have find out how distribution/de it.
anyway, should consider using vim , command-line how supposed used:
$ cd /volumes/usb $ vim somefile
Comments
Post a Comment