How do you set a fixed height for a window?
:resize 10
Use :resize 10 or :res 10 to set the window height to 10 lines.
233 results for "10@a"
:resize 10
Use :resize 10 or :res 10 to set the window height to 10 lines.
:10,20w newfile.txt
Use :10,20w newfile.
:10,20d
Specify a line range before a command.
:10,15t 25
Use :t (copy) with a range and destination.
:10,15m 25
Use :m (move) with a range and destination.
:lua vim.api.nvim_open_win(0, true, {relative='editor', width=80, height=20, row=5, col=10})
Neovim's floating windows hover above the main layout, creating popup-like UI elements.
:set timeoutlen=300 ttimeoutlen=10
If key mappings feel laggy, many users reduce timeoutlen and stop there.
config #config #mappings #terminal #performance #insert-mode
set pumblend=10
Neovim supports pseudo-transparency for the completion popup menu via pumblend and for floating windows via winblend.
:set pumblend=10
Neovim's 'pumblend' option controls the pseudo-transparency of the insert-mode completion popup menu (and other floating windows).
:for i in range(1,10) | execute "normal @q" | endfor
Using a Vimscript :for loop with execute "normal @q" lets you run a macro with a dynamically computed iteration count and interleave other Ex commands between i
:set scroll=10
The scroll option determines how many lines (scroll up) and (scroll down) move the viewport.
10@a
The 10@a command replays the macro recorded in register a exactly 10 times.
:'<,'>sort n
By default, :sort in Vim uses lexicographic (alphabetical) ordering, so "10" sorts before "2" because "1" sort n — sort selected lines by the leading number,
:set pumheight=10
By default, Vim's completion popup menu (the PUM — Pop-Up Menu) can expand to fill the entire screen if there are many candidates.
:10,20t30
The :t command (short for :copy) duplicates lines from one location to another without touching any registers.
command-line #editing #ex-commands #lines #productivity #ranges
vim.system()
vim.
vim.diagnostic.jump()
Neovim 0.
grn, gra, grr, gri
Starting with Neovim 0.
:{range}command
Every Ex command in Vim can be preceded by a range that specifies which lines it should operate on.
command-line #command-line #ex-commands #ranges #editing #productivity
qaI <Esc>jq
Record a macro that inserts two spaces at the beginning of the line and moves down.