fyi _ is a built-in motion; that plugin defines a couple others: il and al, which are specifically characterwise (vs. _ can be either that or linewise)
gq is a linewise operation anyway, so gq_, gqil, and gqal all have the same effect
11 karma · joined June 21, 2011
gq is a linewise operation anyway, so gq_, gqil, and gqal all have the same effect
In iTerm2, toggle "Triple-click selects full wrapped lines" in the Pointer tab in Preferences.
^R is more powerful, though; it matches at any point in previous commands, not just at the beginning.
> The lack of this functionality actually really kills my ability to use any other shell.
You can achieve that behavior in readline (which is used by bash, python shell, etc.) by changing the up/down arrows from previous-history/next-history to history-search-backward/history-search-forward. In ~/.inputrc:
"\e[A": history-search-backward
"\e[B": history-search-forward
Note that you can still use ^P/^N for previous-history/next-history (or you can remap "\C-p"/"\C-n" as well). shopt -s histverify histreedit