tags:

views:

59

answers:

1

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?

+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
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
@MDC it would also be good to look through emacs wiki website, http://www.emacswiki.org/
aaa
@aaacarp I do spend a lot of time there. There's just so much!
MDCore
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