A.J.Mechelynck wrote:
IMHO it is important that function keys (with the exception of F1 = :help) should by default _not_ have preset functions in Vim, in order that they be safely available for whatever mappings any user would want to assign to them, without competing with existing functions. There aren't so many keys that users can safely use as the {lhs} of a mapping with no fear that it will collide with an existing function.

For the record, I don't want function keys to be mapped by default. I am
suggesting that there should be a really simple (preferably built-in) way to
invoke a sample set of mappings for a C programmer.

For example, I could then send someone an email telling them to download
Vim and enter command ":set template=cprogram" (or whatever). I could
then advise the new user (a C programmer, not a dummy) that they can do
(whatever) to grep stuff, and (whatever) to use ctags. You would then have
one more converted Vim user!

As a final comment, I would recommend that any such template should
include mappings:
- Clear search highlights and the message line.
- Search for highlighted text.

John

Reply via email to