How do I keep concealed text hidden while navigating but automatically reveal it when my cursor enters insert mode?
:set concealcursor=nv
The 'concealcursor' option controls in which modes concealed text is revealed on the cursor line.
:set concealcursor=nv
The 'concealcursor' option controls in which modes concealed text is revealed on the cursor line.
:set display+=lastline,truncate
By default, when a line is too long to fit in the window, Vim fills the remaining rows with @ characters to indicate the line continues off-screen.
:set display=lastline
By default, when the last visible line of a window is too long to fit on screen, Vim shows @@@ in its place — hiding the content entirely.
set showbreak=↪\
When wrap is enabled, long lines visually wrap to the next screen row.
:set fillchars+=eob:
By default, Vim fills empty lines after the end of a buffer with ~ characters.
gj and gk
When wrap is enabled, long lines wrap across multiple screen lines.
:syntax match Conceal /pattern/ conceal
Vim's conceal feature lets you visually hide text that matches a pattern, or replace it with a single character.
set signcolumn=yes
Use set signcolumn=yes to always display the sign column (used by diagnostics, git markers).
set relativenumber
Use set relativenumber (or set rnu) to show line numbers relative to the cursor position.
set number
Use set number (or set nu) to display absolute line numbers in the left margin.
:set number!
The :set number! command toggles line numbers on or off.