简体   繁体   中英

how move buffer vim the position 4 to 2

I want know how to move a buffer in the position 4 to position 2.

How can do it?

Buffer:

缓冲

Buffer list:

缓冲区列表

  1. Once a buffer is added to the buffer list its index can not be changed.
  2. Once an index has been used it is unusable for other buffers.
  3. It is impossible to specify the index at which you want to add a buffer to the buffer list.
  4. It is impossible to swap two buffers.
  5. It is impossible to nudge the buffers in the buffer list.

So no, you can not.

I think you can use the arglist instead of bufflist, the arglist is a subset of bufflist. There is a vimcast about it.

Basically you can creat a file with the correct order of your files and do:

vim `cat list-of-files`

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM