Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ Now you can use the `yc` operator on any motion or text object, such as `yc)`
to capitalize from the cursor to the beginning of the next sentence, or `ycap`
to capitalize every word in the paragraph.

### Buffer-local mappings

When you want a mapping to apply only to the current buffer, prepend `<buffer>`
to the left hand side of the mapping.

:MapExpress <buffer>cd '/* ' . v:val . ' */'

### NOTE

At the time of loading your `.vimrc` file, the commands `:MapExpress` and
Expand Down
6 changes: 6 additions & 0 deletions doc/express.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ COMMANDS *express-commands*
{op} as the left hand side of the mapping.
See |:substitute| for help on substitutions.

*express-<buffer>*
When you want a mapping to apply only to the current buffer, prepend <buffer>
to the left hand side of the mapping.

:MapExpress <buffer>cd '/* ' . v:val . ' */'

MAPPINGS *express-mappings*

*g=*
Expand Down