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.
Windows で gvim を使用しています。デフォルトでは、nerdtree は C:\ ドライブをデフォルトとしてロードします。これを E:\ ドライブに変更したいと思います。
:NERDTree コマンドを使用して NERDTree を開始しようとすると、常にこのエラーが発生します。E492: Not an editor command: NERDTree
E492: Not an editor command: NERDTree
vimrcファイルに次のコードがあります
vimrc
cd ~/documents map <F2> :NERDTreeToggle<CR> " open Nerd Tree in folder of file in active buffer map <Leader>nt :NERDTree %:p:h<CR>
このcdコマンドは NerdTree 固有ではありません。Vimが起動したときに作業ディレクトリを変更するだけで、私にとっては賢明です。
cd