Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 2.02 KB

Notes.md

File metadata and controls

37 lines (31 loc) · 2.02 KB

LazyVim Configuration and General VIM Notes

Property Default Merging Rule
cmd The list of commands will be extended with your custom commands.
event The list of events will be extended with your custom events.
ft The list of filetypes will be extended with your custom filetypes.
keys The list of keymaps will be extended with your custom keymaps.
opts Your custom options (opts) will be merged with the default options.
dependencies The list of dependencies will be extended with your custom dependencies.
Any other property Will override the defaults.

For ft, event, keys, cmd and opts you can instead also specify a values function that can make changes to the default values, or return new values to be used instead.

References

Mode Identifier
Normal Mode n
Insert Mode i
Character-wise Visual Mode v
Line-wise Visual Mode V
Block-wise Visual Mode ^V (Ctrl-v)
Replace Mode R
Virtual Replace Mode Rv
Command-Line Mode c
Terminal Mode t
Operator-Pending Mode o
Select Mode s
Ex-Mode !

Tips and Tricks (Normal VIM friendly)

  • Yanking an entire file: :%y+
    • + is a register that is tied to the system clipboard.