Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
let g:netrw_keepdir=0NERDTreeでできることはありますか?
let g:netrw_keepdir=0
ディレクトリを変更すると、そこに新しいファイルを作成したいと思います。
では、これを現在のディレクトリとして設定するにはどうすればよいですか?
NERDTree で入力したディレクトリを にしますcwdか?
cwd
もしそうなら、NERDTree のドキュメント ( :help nerdtree) を見て、その内容を確認してくださいNERDTreeChDirMode。
:help nerdtree
NERDTreeChDirMode
この動作をデフォルトにしたい場合 (ファイルを開く/作成する方法に関係なく)、次の行を .vimrc に追加すると、作業ディレクトリがアクティブなバッファーを含むディレクトリに変更されます。
set autochdir