New answers tagged

0

Just one thing caught my eye looking at this: the SCP path used when launching vim doesn't match paths shown in the netrw docs. For instance under :h netrw-url... scp://[user@]host/path And as :h netrw-path explains a little later Paths to files are generally user-directory relative for most protocols. Examples: vim scp://user@host/somefile vim scp://user@...


1

I'm not sure if it's a bug, but I did email the author. Solution 1 (set working directory) If you have set (the default was 1) let g:netrw_keepdir = 0 Which changes your working directory as your browse, it surprisingly works. Another option is to do cd or lcd on the netrw buffer window to change the working directory to the current file's path. And do an :...


1

There are multiple ways to solve your problem. However, you just need to have an open mind because often the solution is changing your workflow. I think the reason people have a hard time moving to vim is that most try to fit the workflow from their current editor/IDE and try to recreate it in vim. However, the beauty of vim is it's very programmable, you ...


0

There's a way to delete non-empty directories with netrw in vim 8+ or nvim? You could do :!rm -rf directory That warning means, you have files still in that directory. So if a file in that directory you want to delete is on the current buffer, you could do this. :!rm -rf %:h Which deletes the directory of the current file. %:h expands to the directory of ...


Top 50 recent answers are included