How do I move all lines matching a pattern to the top of the file?
When working with large files, you sometimes need to reorganize content by pulling all lines matching a certain pattern to the top.
category:
command-line
tags:
#global
#move
#ex-commands
#editing
#command-line
How do I move a line or selection up or down in Vim?
The :move command relocates lines to a specific position without using delete and paste.
category:
editing
tags:
#editing
#move
#lines
#rearrange
How do you move a range of lines to another location?
Use :m (move) with a range and destination.
category:
command-line
tags:
#command-line
#move
#lines
How do you move the current window to the far right?
Press L (uppercase) to move the current window to the far right using the full height.
category:
buffers-windows
tags:
#windows
#move
#right
How do you move the current window to the very top?
Press K (uppercase) to move the current window to the top of the screen using the full width.
category:
buffers-windows
tags:
#windows
#move
#top
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 rearrange tab order in Vim?
Use :tabmove N to move the current tab after tab N.
category:
buffers-windows
tags:
#tabs
#move
#reorder