Files
org_roam/20250420012258-emacs_stuff_evil.org
2026-03-08 13:04:05 +00:00

36 lines
1001 B
Org Mode
Executable File

:PROPERTIES:
:ID: 45CC3AF5-5E20-4B03-A36C-8D4BDD5CBB13
:END:
#+title: emacs-stuff-evil
#+filetags: :emacs:guide:
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_string>/<replace_string>/g
thats a more generic one