> But this don't scales well IMO if you like to cycle through, let > say, 3 buffers ...
A nice way to jump between 3 buffers is to set uppercase marks. Go to each file in turn and set the marks: mA, mB, mC. Then 'A or 'B or 'C to jump between the files instantly. Of course you can set marks for as many files as you like and you can use any uppercase letter or a digit in the mark. Something mnemonic would be helpful. (Lowercase marks don't jump between files.) :help marks Dean On Oct 29, 3:31 pm, "Anton Sharonov" <[EMAIL PROTECTED]> wrote: > > But I'm mostly looking for a way to switch back and forth > > between two files quickly, > > Standard way for doing this: <CTRL-^> (as Erik Falor > already pointed out). > > :help CTRL-^ > > But this don't scales well IMO if you like to cycle through, let > say, 3 buffers... BTW, for 3+ buffers it is worth to have a look > on this: > > http://www.vim.org/scripts/script.php?script_id=2346 > > Andy Wokula has written small and interesting plugin, which works > in the following way: you press <SPACE> and you see in the status > line the name of alternativebuffer. If you press <ENTER> - you > jump to it. If you don't like this, you press <SPACE> again and > you see the name of the nextbuffer. It works like simulation of > <CTRL-TAB> Visual Studio behaviour. > > Anton. > > 2008/10/29, Kevin <[EMAIL PROTECTED]>: > > > > > I'm actually using NERDtree and I like it a lot. But I'm mostly > > looking for a way to switch back and forth between two files quickly, > > a class file and it's test file. > > > On Oct 29, 7:06 am, fritzophrenic <[EMAIL PROTECTED]> wrote: > >> On Oct 28, 3:42 pm, Kevin <[EMAIL PROTECTED]> wrote: > > >> > I'm looking for a tip forswitchingback and forth between buffers > >> > quickly, similar to a ctrl-tab in a visual studio environment. > > >> > Thanks, > >> > Kevin > > >> If you're using tab pages in Vim, the equivalent command would be gt > >> or gT to cycle forward and backward throught the open tab pages. gt > >> can also take a count to go to a specific tab page, e.g. 5gt will go > >> to the 5th tab page from left to right. > > --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
