Vimcasts
41–43 of 43 posts
Re: Vimcasts
#42Earlier quoted context omitted.
Ah, my mistake. I meant registers, not buffers. :help registers As to your "I'm curious" question, I use both. Mostly arglist, and I resort to buffers when the arglist has gone squirrely (editing an additional file after starting with a number of files, e.g.). For example, edit a small number of files (vi *). :files will show you the list of files. Repeating :n will take you through each file. :e newfile to create a…
I've had that problem, here's what I do: :arge will do the same as :e, but also add it to the arglist. You can prefix with a number to insert it at a particular position, especially :0arge and :99arge for first and last respectively. It only adds one at a time; several can be added with :arga (including recursive wildcards such as /*.java) :argd % will delete the current file (which % expands to) from the arglist. BT…
**/*.java
And the mapping is: :map :n " next file, with control-n
:map :N " prev file, with control-pRe: Vimcasts
#43Earlier quoted context omitted.
Come to the Dark Side. We have buffers.
I just watched the video entitled "Working with Buffers" so I don't quite get your reference
That reminded me of this quote from Star Wars Episode VI: "You don't know the power of the Dark Side."
Which reminded me of the bumper sticker or T shirt: "Come to the Dark Side. We have cookies."
Which led to my comment: "Come to the Dark Side. We have buffers."
Buffers isn't important, except as something Vim has that can substitute for cookies.