|
|
|
@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
This is a reference written by my as I'm using VIM
|
|
|
|
|
|
|
|
A good reference to check for more would be: [This](https://gist.github.com/tuxfight3r/0dca25825d9f2608714b)
|
|
|
|
|
|
|
|
|
|
|
|
# Vim Reference
|
|
|
|
# Vim Reference
|
|
|
|
|
|
|
|
|
|
|
|
This is intended as a brief reference for beginners.
|
|
|
|
This is intended as a brief reference for beginners.
|
|
|
|
@ -30,8 +33,8 @@ will put you into command mode
|
|
|
|
`:w` - Write to file
|
|
|
|
`:w` - Write to file
|
|
|
|
`:q` - Quit file
|
|
|
|
`:q` - Quit file
|
|
|
|
|
|
|
|
|
|
|
|
`Ctrl + ZZ` - Write and quit (`:wq`)
|
|
|
|
`ZZ` - Write and quit (`:wq`)
|
|
|
|
`Ctrl + ZQ` - Force quit (`:q!`)
|
|
|
|
`ZQ` - Force quit (`:q!`)
|
|
|
|
|
|
|
|
|
|
|
|
# Motions for Movement
|
|
|
|
# Motions for Movement
|
|
|
|
|
|
|
|
|
|
|
|
@ -138,6 +141,7 @@ Yet again, this command can make use of, and gets its power from motions!
|
|
|
|
`cw` - Change word
|
|
|
|
`cw` - Change word
|
|
|
|
`c$` - Change contents to the end of the line
|
|
|
|
`c$` - Change contents to the end of the line
|
|
|
|
`ci(` - Change inside ( { "
|
|
|
|
`ci(` - Change inside ( { "
|
|
|
|
|
|
|
|
`caw` - Change around word. Alternative to `b cw`
|
|
|
|
|
|
|
|
|
|
|
|
## Substitute
|
|
|
|
## Substitute
|
|
|
|
|
|
|
|
|
|
|
|
|