How do I scroll through wrapped long lines smoothly without skipping screen rows?
:set smoothscroll
The smoothscroll option makes scroll commands respect screen rows rather than buffer lines when wrap is enabled.
:set smoothscroll
The smoothscroll option makes scroll commands respect screen rows rather than buffer lines when wrap is enabled.
:set nostartofline
By default, many Vim movement commands — gg, G, Ctrl-d, Ctrl-u, Ctrl-f, Ctrl-b, and others — snap the cursor to the first non-blank character of the destina
:set foldcolumn=1
Setting foldcolumn to a non-zero value adds a narrow column on the left side of each window that visually represents the fold structure of your file.
:let g:netrw_liststyle=3
Vim ships with a built-in file browser called netrw, opened with :Explore (or :Ex).
:set nrformats+=bin
Vim's and commands increment and decrement numbers under the cursor, but by default they only handle decimal and hexadecimal.
autocmd BufWinLeave * mkview
By default, Vim forgets your folds, cursor position, and scroll state every time you close a file.
:set number relativenumber
Enabling both number and relativenumber simultaneously activates hybrid line numbering: the current line displays its true absolute line number while every othe
:set winfixwidth
Setting winfixwidth on a window tells Vim not to adjust its width when other windows are created, closed, or resized with =.
:lua require('ufo').openAllFolds()
nvim-ufo is a Neovim plugin that replaces the built-in fold system with one powered by LSP (textDocument/foldingRange) or treesitter.
:set cursorlineopt=number
When cursorline is enabled, Vim highlights the entire line the cursor is on.
:set regexpengine=1
Vim ships with two regex engines and lets you control which one is used.
:set debug=msg
When troubleshooting mappings or scripts that use :silent!, errors disappear without a trace.
:set scrolljump=5
When scrolloff is 0 and the cursor moves just past the screen boundary, Vim scrolls by exactly one line, which can feel abrupt during rapid navigation.
vim.highlight.on_yank()
After yanking text in Vim it can be hard to tell exactly what was captured, especially with larger motions or text objects.
:set cursorcolumn
:set cursorcolumn (or the short form set cuc) highlights the entire vertical column where the cursor sits, painting a visible strip from top to bottom of the wi
:set gdefault
By default, :s/old/new/ only replaces the first occurrence of a pattern on each line.
:set formatoptions+=a
Vim's formatoptions setting controls how automatic text formatting works.
:set nofixendofline
By default, Vim enforces POSIX compliance by appending a final newline to any file that lacks one.
set showbreak=↪\
When wrap is enabled, long lines visually wrap to the next screen row.
:set nojoinspaces
By default, Vim follows an old typesetting convention and inserts two spaces after a period, exclamation mark, or question mark when joining lines with J.