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-W>gf:tabm 999<CR>

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


Reply via email to