NERDTree and buffer handling

I installed a VIM and NERDTree based IDE for programming using FreePascal. In general, it works fine, but I cannot find how to tell NERDTree about changing its default behavior regarding VIM buffers.

Currently, every time I open a file in NERDTree, it creates a new buffer. If the file is already open in another buffer, it would be nice to have a shortcut to just switch to the previous buffer, instead of creating a new one for the same file. This can be especially useful for programmers who need to move between files.

Any clues?

+3
source share
1 answer

, .vimrc( _vimrc:-(), , .

, Vim faq :

 au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") |
                     \ exe "normal g'\"" | endif   
+2

Source: https://habr.com/ru/post/1729220/


All Articles