- Where Developers Learn, Share, & Build Careers


I am using VIM 7.3.

With this plugin, when you type : MRU is seeing a new window with the files you used recently, this is good, but I Want something more specific than that:

Let's say I'm working with just one window. I open the file a first time, then file b, then file c.

Now when I am in File C, I want to go back to file and then I want to go back to file a keystroke with a back button on browser history and I want to move forward to move it, to file back from file A and to finally file back C, like I'm playing with a browser history.

How can I do this?

The file A, B, and C are called "buffer" in the VIM language. The ability to jump directly from buffer to buffer what you want, or the ability to select the buffer you want to jump from.

It's easy to jump from one buffer to another, with the : b command or its cousin:

 : b Filename & Lt; CR & gt; Jump directly into buffer by name: b fil  In more than one match, if "otherwise the filename is otherwise: b  then & lt; tab & gt;" & lt; Tab & gt; -Select from the Negative menu: 2b "Go to buffer number 2: bfirst & lt; CR & gt; (or: BF)" self-descriptive: explosion and lieutenant; CR & gt; (Or: BL) "self-descriptive: bnext & lt; CR & gt; (or: BN)" self-descriptive: spear and lieutenant CR & gt; It is also easy to select buffer from the list (or: bp) "self-descriptive   

list: : ls> lc> CR & gt; a numbered of buffers The list shows and waits for one command at that point, to go to the selected buffer: : b gt; & lt; CR & gt; or : Type & lt; numbers & gt; b & lt; cr & gt; To speed up the whole process, you can add the following mapping to your ~ / .vimrc : < / P>

  nnoremap & lt; leader & gt; b: ls & lt; c & gt ;: b & lt; am Raksha & gt;   

is also at your disposal (the rest of the page is also filled with interesting information).

I use, which is not listed, when I Can not do up and mapping.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -