
VIM CLOSE ALL WINDOWS EXCEPT CURRENT KEYGEN

but I have no idea to interpolate to string when I use like this :1,bufnr("$")bd. So then, '%' range rely on a number of current file lines? 6 years, 9 months ago I found built-in function bufnr("$") that returns last buffer number. For example, to delete all the buffers, you can use the command ":1,9999bd" /cgi-bin/#8.8 6 years, 9 months ago I just checked out the document. Instead of using '%' as the range, you should specify numbers for the range.

Could you guess anything? 6 years, 9 months ago (from ) In the ":%bd" command, the '%' range will be replaced with the starting and ending line numbers in the current buffer. but sometimes % can't work as all selector. 6 years, 9 months ago It mostly works fine. 7 years, 1 month ago I made the following mapping which accounts for deleting the NERDTree buffer: nnoremap bd :%bd | NERDTree 6 years, 10 months ago I used this for a long time, but now I get E16: Invalid range because some of the buffers in the range don't actually exist. 7 years, 1 month ago This doesn't close the NERDTree buffer. I recomment using the BufOnly.vim plugin as mentioned by. 7 years, 5 months ago I faced some problems using this command when NERDTree is enabled. 7 years, 8 months ago :%bd is actually "all" instead 1-1000.

:) 8 years ago It will close nerdtree buffer as well. 10 years ago I fount this link 8 years ago Perfect, short and simple! :) 8 years ago Still useful, as people may well Googling for the wrong term, and will find this. 3 years, 2 months ago Related Topics vim Comments 10 years ago This closes windows, not buffers.
