Skip to content

File Statistics

The File Statistics dialog counts the lines, words, characters, and bytes of the whole open file.

Press Ctrl + I, select the file size at the right end of the status bar, or select More actions (…) → File statistics. It works in every view.

The dialog shows Computing… while Vaste reads the file, then the results and Computed in followed by the time it took.

The dialog shows these counts:

Count What it counts
Lines The lines of the file, the same number as in the status bar
Words Runs of characters separated by whitespace, so user=alice took 340 ms is four words
Characters Every character, including spaces, tabs, and line breaks
Chars (no spaces) Every character that is not whitespace: spaces, tabs, line breaks, and other Unicode whitespace are left out
Bytes The size of the file, shown in units of 1,024 and as an exact number, for example 1.2 MB (1,234,567)

Vaste counts characters after decoding the file with its encoding, the one shown in the status bar. In a UTF-8 file, é is one character and two bytes. If the encoding is wrong, the character and word counts are wrong too. See Encodings and line endings.

Bytes includes a byte order mark at the start of the file. Characters does not count it. For a compressed file, Bytes is the size of the decompressed copy.

Vaste reads the whole file each time you open the dialog, so on a large file the counts can take a while. It does not keep the results. If Vaste is still indexing or reloading the file, the count starts when that finishes. The dialog has no progress bar and no cancel button. Closing the dialog hides it but does not stop the count.