Created
September 7, 2017 14:55
-
-
Save Juszczak/c8bdfa5e6d31553aef647d9878610662 to your computer and use it in GitHub Desktop.
Returns number of buffers in Vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! GetBuffersNumber() | |
return len(filter(range(1, bufnr('$')), 'buflisted(v:val)')) | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment