gf split hack breaks visual mode (was: regarding using gf command)

2011-04-11 Thread Adam Monsen
Christian Brabandt wrote: I usually use visual mode together with gf. Ah, nice! I hadn't thought of trying that. I usually use this hack in my .vimrc to make gf always use a new window: map gf :split cfileCR But this breaks the handy use of {Visual}[count]gf. Anyone know why, and/or how to

Re: gf split hack breaks visual mode (was: regarding using gf command)

2011-04-11 Thread Ben Fritz
On Apr 11, 11:26 am, Adam Monsen hair...@gmail.com wrote: Christian Brabandt wrote: I usually use visual mode together with gf. Ah, nice! I hadn't thought of trying that. I usually use this hack in my .vimrc to make gf always use a new window:   map gf :split cfileCR But this breaks

Re: gf split hack breaks visual mode

2011-04-11 Thread Adam Monsen
Ben Fritz wrote: Maybe use CTRL-W_f instead? I'm not sure whether it will work in a mapping but it probably will. Aha, found a fix. Here's a pseudo-diff: -map gf :split cfileCR +nmap gf :split cfileCR -- You received this message from the vim_use maillist. Do not top-post! Type your reply