How do you maximize the current window's width?
Press to maximize the current window's width.
category:
buffers-windows
tags:
#windows
#maximize
#width
How do you move between windows in Vim?
Use followed by a direction key: h (left), j (down), k (up), l (right) to move focus between split windows.
category:
buffers-windows
tags:
#windows
#navigate
#direction
How do you move the current window to the bottom?
Press J (uppercase) to move the current window to the bottom using the full width.
category:
buffers-windows
tags:
#windows
#move
#bottom
How do you maximize the current window's height?
Press _ to maximize the current window's height.
category:
buffers-windows
tags:
#windows
#maximize
#height
How do you rearrange tab order in Vim?
Use :tabmove N to move the current tab after tab N.
category:
buffers-windows
tags:
#tabs
#move
#reorder
How do you open a new tab in Vim?
Use :tabnew to open a new empty tab, or :tabnew filename to open a file in a new tab.
category:
buffers-windows
tags:
#tabs
#new
#open
How do you unload a buffer while keeping it in the list?
Use :bunload or :bun to unload the current buffer from memory while keeping it in the buffer list.
category:
buffers-windows
tags:
#buffers
#unload
#memory
How do you close the current tab in Vim?
Use :tabclose or :tabc to close the current tab.
category:
buffers-windows
tags:
#tabs
#close
#tabclose
How do you run a command in every tab?
Use :tabdo to execute a command in every tab page.
category:
buffers-windows
tags:
#tabs
#tabdo
#command
How do you open a buffer in a new horizontal split?
Use :sb (sbuffer) followed by the buffer number to open that buffer in a new horizontal split.
category:
buffers-windows
tags:
#buffers
#split
#horizontal
How do you open a buffer in a vertical split?
Use :vert sb 3 to open buffer 3 in a vertical split.
category:
buffers-windows
tags:
#buffers
#split
#vertical
How do you cycle between next and previous buffers?
Use :bn (bnext) to go to the next buffer and :bp (bprevious) to go to the previous one.
category:
buffers-windows
tags:
#buffers
#cycle
#next-previous
How do you run a command across all open buffers?
Use :bufdo to execute a command in every buffer.
category:
buffers-windows
tags:
#buffers
#bufdo
#command
How do you switch to a buffer by partial name?
Use :b with a partial filename.
category:
buffers-windows
tags:
#buffers
#switch
#name
How do you switch to a buffer by its number?
Use :b followed by the buffer number.
category:
buffers-windows
tags:
#buffers
#switch
#number
How do you delete all hidden buffers in Vim?
:call DeleteHiddenBuffers()
Define a function or use a plugin.
category:
buffers-windows
tags:
#buffers
#delete
#hidden
How do you delete a specific buffer by its number?
Use :bd (bdelete) followed by the buffer number.
category:
buffers-windows
tags:
#buffers
#delete
#number
How do you yank the same text to multiple registers?
Yank the line twice into different registers.
category:
registers
tags:
#registers
#multiple
#yank
How do you yank a single word into a named register?
Use "a to specify register a, then yiw to yank the inner word.
category:
registers
tags:
#registers
#yank
#word
How do you yank lines between two marks into a register?
Set marks with ma and mb, then yank the range between them into register a using "a:'a,'by.
category:
registers
tags:
#registers
#marks
#yank