tomtom / tlib_vim

Some utility functions for VIM
http://www.vim.org/scripts/script.php?script_id=1863
GNU General Public License v3.0
173 stars 43 forks source link

Fix scratch list #16

Closed bruno- closed 11 years ago

bruno- commented 11 years ago

Hi, I'm using vim-snipmate that in turn 'leans' on this library. Specifically tlib#input#List function is used (and maybe others).

Anyway - I noticed tlib scratch buffer does not behave nicely. After it is used:

This pull request addresses the above with:

I learned about these from netrw plugin error message buffer which is very similar to scratch buffer.

Let me know what you think about the updates?

tomtom commented 11 years ago

I made the change to the value of bufhidden user configurable (see g:tlib_scratch_hidden). The default behaviour is still "hide", though. The rationale is that those buffers usually are reused frequently.

bruno- commented 11 years ago

I just checked and the main things: alternate buffer and jump list work on. Thank you!