vim-express icon indicating copy to clipboard operation
vim-express copied to clipboard

Document buffer-local mappings

Open olmokramer opened this issue 6 years ago • 0 comments

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.

olmokramer avatar Mar 03 '19 21:03 olmokramer