3 ms·
That didn't work for me with nvi or vim, it just says, "/usr is a directory". Does it require an extension? (I'm assuming your 'vi' is a symlink to 'vim', which
by silentbicycle 17y ago
That didn't work for me with nvi or vim, it just says, "/usr is a directory". Does it require an extension? (I'm assuming your 'vi' is a symlink to 'vim', which is not always the case.)
Similarly, Emacs has dired, and in some extensions you can edit the file metadata in place and hit save to rename files, chmod, etc.
- fexl 17y agoRight, I'm talking about vim. On Ubuntu, by default, my "vi" is vim. I'm surprised it didn't work for you using vim explicitly. It works for me using versions 7.1.138 and 7.2.245, from fresh installs, by default, with no fancy configuration or add-ons. When I run vim on /usr, it shows me a directory listing which I can browse and edit. I can create, delete, and rename directories and files right there.
- silentbicycle 17y agoI probably just don't have the relevant plugins installed. I installed vim on this computer for some reason or another, but I usually use Emacs or nvi.
- sapphirecat 17y agoThe behavior seems to be part of vim's netrw plugin. Aside from the obvious `:help netrw` you may find `:help standard-plugin-list` interesting. (netrw has always been enabled-by-default for me, but I've spent most of my time on desktop-oriented Linux distros.)