Vim tip of the day: Displaying the current Vim environment
You can display the current Vim environment (settings, options, commands, maps, etc) using the...
Details:
https://t.co/REjyHtbbHN
Vim Text Object Selection: Select text objects easily with 'a' or 'i' followed by a delimiter (e.g., 'aw' for a word, 'ap' for a paragraph). Precise text manipulation!
Vim Vertical Selection: Make vertical selections using 'Ctrl-v'. Then, edit in block mode with 'I' or 'A'. Perfect for adding comments or altering data in colunms.
Vim Auto-Commands: Set actions on specific events with ':au'. For instance, auto-save on buffer change with ':au BufWritePre * :w'. Automate your Vim workflow!
Vim Visual Line Mode: Select whole lines effortlessly with 'V' in Normal mode. Once selected, apply commands like ':s/search/replace/' or change case with '~'.
Vim Split Windows: Work on multiple files simultaneously! Use ':split' or ':vsp' to divide the editor horizontally or vertically. Navigate with 'CTRL-w' followed by 'hjkl' keys.
Vim Dictionary Autocomplete: In Insert mode, use 'Ctrl-x Ctrl-k' to trigger dictionary-based word completion. Perfect for typing complex words or checking spelling!
Vim Visual Line Mode: Select whole lines effortlessly with 'V' in Normal mode. Once selected, apply commands like ':s/search/replace/' or change case with '~'.
Vim Quick Save: :w saves your file in Vim. But did you know? In Normal mode, pressing 'ZZ' (Shift + zz) does the same, and 'ZQ' (Shift + zq) quits without saving. I bet you didn't know that, at least I didn't.
Vim Auto-Indent: Format your code with 'gg=G'. It auto-indents the entire file based on your current indentation settings. Maintain consistent code structure effortlessly!
Vim Split Windows: Work on multiple files simultaneously! Use ':split' or ':vsp' to divide the editor horizontally or vertically. Navigate with 'CTRL-w' followed by 'hjkl' keys.
Vim Buffer Management: Easily switch between files in vim! Use ':ls' to list all buffers and ':bN' (where N is the buffer number) to switch. Manage multiple files at once.
Vim Jump Commands: Navigation with vim is easy! Use ']' to jump in, 'CTRL-o' to jump back to previous locations and 'CTRL-i' to go forward. This is the way to explore large codebases.
Vim Dictionary Autocomplete: In Insert mode, use 'Ctrl-x Ctrl-k' to trigger dictionary-based word completion. Perfect for typing complex words or checking spelling!
Vim Instant File Search: Find files instantly with ':find filename'. Use with ':set path+=**' to search recursively in directories. Swiftly navigate projects!
Vim Command Repeat: The '.' command in Vim repeats the last change. So, after a replace or deletion, just move to a new spot and hit '.' to redo the action. You may not need a macro ;)
Vim Vertical Selection: Make vertical selections using 'Ctrl-v'. Then, edit in block mode with 'I' or 'A'. Perfect for adding comments or altering data in colunms.