NERDTree Load Particular Directory Automatically

前端 未结 3 1298
栀梦
栀梦 2021-02-20 10:53

I\'m using gvim in windows.By default nerdtree loads C:\\ drive as default.I like to change it to E:\\ drive.How to achieve this?

Whenever I try to start NERDTree using

3条回答
  •  伪装坚强ぢ
    2021-02-20 11:18

    I have the following code in my vimrc file

    cd ~/documents
    map  :NERDTreeToggle
    " open Nerd Tree in folder of file in active buffer
    map nt :NERDTree %:p:h
    

    The cd command is not NerdTree specific. It just changes the working directory when Vim starts to something which for me is sensible.

提交回复
热议问题