Re: bdelete all buffers with same pattern extension
- epanda wrote:
> I would like to bdelete buffers that I don't use anymore and itI suppose you could do something like
> happens that they all are *.csv
> Can I bdelete *.csv ?
:sil bufdo if expand('%')[-4]=='.txt' | bdel | endif
:sil bufdo if expand('%')=~'\.txt$' | bdel | endif
The latter gives you a little more flexibility in handling the
file-names -- you can ignore case with "\c", or wipe multiple
file-types using the "\|" notation of a regexp.
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php