Emacs: move to a certain character, forwards and backwards

Forward incremental search is C-s, and reverse incremental search is C-r.

Responding to comment:

To delete from the current position backwards to a specific character, you can use

C-<space> to mark the current position, then C-r <char> <RET> to locate the search character, and C-w to delete between current position and mark.

To get more help on doing things in emacs, you should look at the tutorial. Typing C-h t will open the tutorial in a new buffer.


jump-char was designed specifically for this task.

To delete, use zap-to-char or activate the mark by pressing C-spc before jumping, then C-w.

Tags:

Emacs