ussjrg
Last Updated: February 25, 2016
·
1.372K
· endel
Profile 2015 2

VIM: Get buffer byte size

It's useful when you need to check your buffer size before saving it into the disk.

function! s:BufferByteSize()
  echo printf("%s %s", line2byte(line('$') + 1), "bytes")
endfunction
command! Bytes call s:BufferByteSize()
Say Thanks
Respond