Re: CTRL+gf new tab position
Dave Land wrote: [...] Oddly enough, this mapping also takes over plain old control-g, which is fine for me. [...] There's nothing odd to that: in cooked input mode (as used by Vim), Ctrl-G and Ctrl-g both (by design) map to the BEL character, 0x07. This applies to any Ctrl+letter combination: in ASCII (not EBCDIC), Ctrl+letter = (letter AND 0x17) where letter is in the range [a-zA-Z]. Best regards, Tony. -- From the moment I picked your book up until I put it down I was convulsed with laughter. Some day I intend reading it. -- Groucho Marx, from The Book of Insults
CTRL+gf new tab position
Hi, I often use CTRL-gf to open the word under cursor in a new tab page. This opens a new tab for the file at tab pos 0. Is it possible to control at which position CTRL-gf opens the new tab? I tried it with an autocommand on event TabEnter but that also triggers when I change into a already present tab. Any suggestions? regards Ralf
Re: CTRL+gf new tab position
Ralf, I use shift-control-g to open the file under the cursor in a new tab, placing the new tab at the end of the tablist thusly: map silent C-S-G C-Wgf:tabm 999CR Oddly enough, this mapping also takes over plain old control-g, which is fine for me. When I'm editing JSP files that have lots of includes, it helps me be SO much more productive than my poor work-mates scrolling and scrolling through 100s of similarly-named files with Dreamweaver or whatever. Dave On Apr 10, 2007, at 6:05 AM, Ralf Schmitt wrote: Hi, I often use CTRL-gf to open the word under cursor in a new tab page. This opens a new tab for the file at tab pos 0. Is it possible to control at which position CTRL-gf opens the new tab? I tried it with an autocommand on event TabEnter but that also triggers when I change into a already present tab. Any suggestions? regards Ralf