Netrw is file explorer plugin for vim and comes installed on Vim 7.0 and higher. If you are using the popular plugin nerdtree, some of the things in these next few videos may not work for you.
Typing vim and then a directory name opens the netrw file explorer. Typing vim . opens the the directory you are currently in with vims netrw file explorer.
Press :q to quit out of the Vim file explorer
The hidden files are shown by default because Vim is often used to update hidden configuration files.
The standard vim cursor movement and commands work in netrw k for up "j" for down and "\" for find.
Pressing "-" will also take you up a directory
Pressing enter when your cursor is on a directory name, takes you into that directory.
Pressing enter when your cursor is on a file will open that file with the Vim file editor.
Pressing enter when your cursor is on ../ will take you up a directory.
Quitting out of the Vim file editor will return you to a bash prompt (Not back to the netrw plugin) and in the directory where you entered Vim.
See the complete Vim playlist at:
https://www.youtube.com/watch?v=1lzXr-MztOU
See the complete Vim playlist in a single video at:
https://www.youtube.com/watch?v=3G6kAEvbv2A
Website link:
https://thefrugalcomputerguy.com/linux/seriespg.php?ser=10002
3 Comments