I've just migrated from vim and one thinkg I miss is the motions like vi(
or vf<char>
. Is there a way to do something similar in Emacs? Perhaps it is possible to get isearch to select from here to the match?
views:
59answers:
1
+1
A:
control-space sets the mark. region from Mark to cursor position is selected.
http://www.gnu.org/software/emacs/manual/html_node/emacs/Setting-Mark.html
aaa
2010-09-20 07:18:37
to continue this theme ctrl-r performs an incremental search backwords and ctrl-s performs an incremental search forwards. In both cases, it expands the selected region appropriately.
aaronasterling
2010-09-20 07:22:38
@MDC it would also be good to look through emacs wiki website, http://www.emacswiki.org/
aaa
2010-09-20 07:29:09
@aaacarp I do spend a lot of time there. There's just so much!
MDCore
2010-09-20 08:04:42
The mark is implicit when you use C-s or C-r, so C-s <char> marks the region from point to first occurence of <char>. Example: C-s foo RET C-w kills everything from point to (and including) the string 'foo'.
pawel
2010-09-22 13:55:18