Friday 12 October 2018

vim - nerdtree and current directory


How can I achieve this situation?



  1. Open vim in my home folder.

  2. Navigate somewhere with NERDTree

  3. Run the :!ls command and see the contents of the directory in that NERDTree is displaying



Answer



Try :help NERDTreeChDirMode. Setting it to 2 will do what you want.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...