diff --git a/README.markdown b/README.markdown index 843ebe2..dc160ee 100644 --- a/README.markdown +++ b/README.markdown @@ -159,7 +159,7 @@ autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTr ### How can I prevent other buffers replacing NERDTree in its window? ```vim -" If another buffer tries to replace NERDTree, put in the other window, and bring back NERDTree. +" If another buffer tries to replace NERDTree, put it in the other window, and bring back NERDTree. autocmd BufEnter * if bufname('#') =~ 'NERD_tree_\d\+' && bufname('%') !~ 'NERD_tree_\d\+' && winnr('$') > 1 | \ let buf=bufnr() | buffer# | execute "normal! \w" | execute 'buffer'.buf | endif ```