Skip to content

Conversation

olmokramer
Copy link

It took me a while until I realized that it is possible to achieve buffer-local mappings with MapExpress and MapSubpress, by prepending the lhs of the mapping with <buffer>, e.g. MapExpress <buffer>cd '/* ' . v:val . ' */'. I tried it with a space between the <buffer> and the lhs, but that did not work. Since some of the mappings only really make sense in certain filetypes I thought it would be nice if this little fact were documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant