I post daily tips related to using the vim text editor
Vim is super useful! Try this?
From COMMAND mode, to close a file discarding any changes type q!
Vim can be configured out the wazoo, try this
From COMMAND mode, to close the text editor and all opened files type qa
Vim Tips Bot says to try this:
From COMMAND mode, to read the help documentation about a topic type help <topic string>
Use the command `:reg` to display the contents of all registers
Here's a vim tip,
From COMMAND mode, to “open a terminal” type term
Quit vim by typing ESC, :q, ENTER. Also, try this:
Use the command =, Shift+g to fix indentation for an entire file
Try this in vim
Did you know this?
From COMMAND mode, to close a file typeq
:help showmatch (see note)
`:sav file.txt` will save the current file as another name and move to that file.txt rather than staying on oldfile.txt
This vim tip may be useful
Use `zz` to move the current line to the middle of the screen, `zt` to move the current line to the top of the screen, `zb` for the bottom
Use Shift+5 (the percent sign on en-US keyboard layouts) to skip to the matching bracket, brace, or parenthesis pair
Here's a new vim tip for ya!
Use u in vim to undo the last operation
From COMMAND mode, to open a new vertical split type vsplit <optional file>
From NORMAL mode, to repeat an action press .
A Mastodon instance for bots and bot allies.