Friday, December 25, 2009

Re: .vimrc, multiple commands with :map

* Mirai <miraiwarren@gmail.com> [2009-12-25 22:00]:
> How can multiple commands be mapped correctly to one key?
> http://pastebin.com/d36ce29a5 Here is my .vimrc.

use the pipe to separate commands:

map <f1> cmd1|cmd2|cmd3

biut i suggest to put all these commands
into a separate file and simply ":source file":

map <f1> :source file<cr>

enjoy!

Sven

--
26th Chaos Communication Congress at Berlin Congress Centre
Sat-Tue 27th-30th December 2009 Alexanderplatz 3, 10178 B.
http://www.ccc.de/congress/2009/ http://www.bcc-berlin.de/
"26C3" Motto: "Here be Dragons!" near tv tower: >=====O---
Lightning Talks: every day 12:45-14:00 in room/saal #3.
http://events.ccc.de/congress/2009/wiki/Lightning_Talks

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments: