This commit is contained in:
40
Technical/Emacs/Evil Mode.md
Normal file
40
Technical/Emacs/Evil Mode.md
Normal file
@@ -0,0 +1,40 @@
|
||||
C-u Cc . - timestamp
|
||||
|
||||
# Keybindings for moving:
|
||||
|
||||
## Search
|
||||
|
||||
To search use
|
||||
Then if you want to get the hits, hit enter, then you can use 'n' for next and 'N' for previous hits.
|
||||
|
||||
## moving
|
||||
|
||||
- To move forward use 'e' and 'E'
|
||||
- To move forward use 'b' and 'B'
|
||||
|
||||
(for beginning and end)
|
||||
you can also use '{' and '}' for paragraph movement
|
||||
|
||||
- To move to the next line use: 'j'
|
||||
- To move to the previous line use: 'k'
|
||||
|
||||
## replacement
|
||||
|
||||
that is a sample text
|
||||
|
||||
- Use 'r' To replace a single letter
|
||||
- Use 'R' To enter replace mode and use ESC to exit it
|
||||
|
||||
To do a replace all:
|
||||
|
||||
- :%s//replacement/g
|
||||
|
||||
thats if the '/' has stored the last search, the /g is for all. if you dont use it, itll just replace the first one in each line. you can also use /gc which will prompt for confirmation.
|
||||
|
||||
- :'\<,'\>s//bar/g
|
||||
|
||||
thats if you are in visual mode
|
||||
|
||||
- :s/\<search<sub>string</sub>\>/\<replace<sub>string</sub>\>/g
|
||||
|
||||
thats a more generic one
|
||||
Reference in New Issue
Block a user