The <leader>
key has been replaced with , from the original docs. The readme file this was pull from lives here:
Motion Command | Description |
---|---|
,, s <char> |
Search for char |
,, f <char> |
Find character forwards |
,, F <char> |
Find character backwards |
,, t <char> |
Til character forwards |
,, T <char> |
Til character backwards |
,, w | Start of word forwards |
,, b | Start of word backwards |
,, l | matches beginning & ending of word, camelCase, after _ and after # forwards |
,, h | matches beginning & ending of word, camelCase, after _ and after # backwards |
,, e | End of word forwards |
,, ge | End of word backwards |
,, j | Start of line forwards |
,, k | Start of line backwards |
,, / <char>... return |
Search n-character |
,,, bdt | Til character |
,,, bdw | Start of word |
,,, bde | End of word |
,,, bdjk | Start of line |
,,, j | JumpToAnywhere motion; default behavior matches beginning & ending of word, camelCase, after _ and after # |
Surround Command | Description |
---|---|
d s <existing char> |
Delete existing surround |
c s <existing char> <desired char> |
Change surround existing to desired |
y s <motion> <desired char> |
Surround something with something using motion (as in "you surround") |
S <desired char> |
Surround when in visual modes (surrounds full selection) |
Based on vim-indent-object, it allows for treating blocks of code at the current indentation level as text objects. Useful in languages that don't use braces around statements (e.g. Python).
Provided there is a new line between the opening and closing braces / tag, it can be considered an agnostic cib
/ci{
/ci[
/cit
.
Command | Description |
---|---|
<operator> ii |
This indentation level |
<operator> ai |
This indentation level and the line above (think if statements in Python) |
<operator> aI |
This indentation level, the line above, and the line after (think if statements in C/C++/Java/etc) |