1
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

NERDTreeの設定

Posted at

自分がしているNERDTreeの設定を書いておきます。
必要最低限で十分便利

環境

  • OS: Mac
  • プラグインマネージャー:dein.vim

前提

NERDTreeがインストールされていること

出来ること

  • viでファイルを指定したら、NERDTreeを非表示それ以外は表示とする
  • :NERDTreeじゃなく、「Control+e」でツリーを表示させる

方法

.vimrcに以下を追記

autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
let g:NERDTreeShowHidden=1
nnoremap <silent><C-e> :NERDTreeToggle<CR>
1
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?