Wikia

Vim Tips Wiki

Changes: Fast buffer navigation by buffer numbers

Edit

Back to page

(Created page with "300px 300px If you ever become bored by using :b[N]<CR> to switch to the N-th buffer, try this: [N]C-^ in normal m...")
 
(Insert TipProposed template + manual clean)
 
Line 1: Line 1:
[[File:Placeholder|video|right|300px]] [[File:Placeholder|right|300px]]
+
{{TipProposed
If you ever become bored by using :b[N]<CR> to switch to the N-th buffer, try this: [N]C-^ in normal mode.
+
|id=0
  +
|previous=0
  +
|next=0
  +
|created=February 5, 2013
  +
|complexity=basic
  +
|author=
  +
|version=7.0
  +
|subpage=/2013
  +
|category1=
  +
|category2=
  +
}}
  +
If you ever become bored using <code>:b[N]<CR></code> to switch to the N-th buffer, try this <code>[N]C-^</code> in normal mode.
   
<C-^> cannot only switch to the previous buffer, but also to all the other buffers, if you prefix the command with the buffer number. For example, instead of using :b1<CR> to switch to the first buffer, you can use 1<C-^> and save a lot of effort and frustration :-)
+
Pressing Ctrl-^ with no count switches to the previous buffer. If count ''N'' is provided, it switches to buffer ''N''. For example, instead of using <code>:b1<CR></code> to switch to the first buffer, press <code>1</code> then Ctrl-^.
   
Happy Hacking!
+
==Comments==

Latest revision as of 10:39, January 31, 2014

Proposed tip Please edit this page to improve it, or add your comments below (do not use the discussion page).

Please use new tips to discuss whether this page should be a permanent tip, or whether it should be merged to an existing tip.
created February 5, 2013 · complexity basic · version 7.0

If you ever become bored using :b[N]<CR> to switch to the N-th buffer, try this [N]C-^ in normal mode.

Pressing Ctrl-^ with no count switches to the previous buffer. If count N is provided, it switches to buffer N. For example, instead of using :b1<CR> to switch to the first buffer, press 1 then Ctrl-^.

CommentsEdit

Around Wikia's network

Random Wiki