In Vim, when I have a line that can not be entirely shown on screen, the line appears as an at symbol "@" all the way down to the bottom of the screen. For example, if I have a file as such:
1 Hello World 2 Really long sentence that doesn't fit on one line.
And I am at the beginning of the document, with a screen height of 3 lines, Vim shows the following:
1 Hello World @ @
I would rather have Vim show the following:
1 Hello World 2 Really long sentence that doesn't fit on
Is this possible?
Make the vi/vim text editor show or hide line numbers Press ESC key. At the : prompt type the following command to run on line numbers: set number. To turn off line numbering, type the following command at the : prompt set nonumber.
If we are in the vim editor, then simply do this, “Press the ENTER key, write the Line number, and press Shift+ g”: Again the output is the same.
Add set display+=lastline
to your ~/.vimrc
From :help 'display'
:
lastline When included, as much as possible of the last line in a window will be displayed. When not included, a last line that doesn't fit is replaced with "@" lines.
:set display=lastline
will make it look like this:
2 Really long sentence that doesn't fit @@@
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With