3
votes
2answers
51 views

vim command that will do :buff or :e if the file is not already in the buffer?

basically my workflow is as follows I have a bunch of windows open using splits in a terminal in regular vim. Sometimes I have a file open sometimes I don't I usually switch between :buf and :tag to ...
1
vote
1answer
22 views

Vim: Open multiple files in a specified configuration from command line

I use a set of tabs and splits in my Vim window for my workflow. My setup looks something like this: 1st tab with a vertical split showing two buffers. 2nd tab in the following split: ...
0
votes
2answers
75 views

Is it possible to undo a :bdelete in Vim?

I've gotten used to Ctrl-Shift-T in Firefox to undo the closing of a tab, is it possible to get similar functionality in Vim? Googling didn't point me towards anything useful for this.
0
votes
0answers
33 views

Greplace.vim not loading buffers

I'm attempting to use Greplace for project wide find and replace but am having trouble in the final steps. I start with: :Gsearch mypattern * Which successfully opens a buffer that lists all the ...
1
vote
2answers
50 views

Vim opens previously opened buffers

When I start gvim.exe, it starts with the usual vim start window. But there are previous buffers hidden in background. How I can disable this behavior?
2
votes
1answer
119 views

Vim - How do I detect that the buffer is loaded in the quickfix window?

Various plugins that I use load their own results into a buffer in the quickfix window. For example, ack.vim loads it's search results there. I would like to turn off various things like spell ...
1
vote
1answer
533 views

Vim - save and close buffer in one command

I have a bunch of text files in a directory and I know I'll need to edit each one indiviudaly. I start at the commend line with vim *.txt which opens the files as seperate buffers in vim and ...
1
vote
3answers
186 views

Open new vim buffers in new windows?

I like vim, but I don't like its buffers. Is there any way to launch a separate gvim whenever you would normally open a file in a new buffer? I could probably alias :edit to some other launch command, ...
0
votes
1answer
82 views

vim: how do I view my history of yanks and deletions?

:buffers displays a list of window buffers, but suppose I dd'd a few lines (this puts them in buffers 1-9) and yanked "[a-z]yy a few others. That's up to 35 buffers I couldn't possibly keep in my ...
2
votes
1answer
525 views

vim close all buffers but one

How can I close all buffers but one in vim? I'm looking for an :only command, but for buffers. I've had trouble finding this using :help and :helpgrep, does anyone know if this exists? I know you ...
2
votes
1answer
332 views

Is it possible to reset the sequence of indices that vim uses for file buffers?

As I open up new files inside vim, the buffer index seems to skip over arbitrary indices. I switch between buffers using b<buffer-index>, so it helps to have sequential indices for sanity/OCD ...
1
vote
3answers
483 views

vim: number of total buffers

in vim, with :buffers I get the number of all buffers the same with :ls , but how I can get the total number of buffers ?
0
votes
2answers
528 views

Enabling Alt+Tab buffer switching like Windows or Firefox in Vim

How do I set up a buffer switch like Alt-Tab on Windows:? It cycles through a list sorted by last access first? So if I pressed Alt+Tab, I'd get the last accessed buffer. If I pressed it again, I ...
4
votes
3answers
789 views

Cygwin prevent clearing of scrollback buffers

When running Cygwin in the default cmd.exe window or similar terminal emulators such as Console I've noticed that after quitting programs that replace the entire screen (such as Vim and man), only the ...
3
votes
2answers
358 views

Make vim yankings global via a shared text file

In a nutshell, I want the following: y(ank) actually writes the yanked text to a line in a text file, maybe in your .vim directory that line is prefixed with the name of the register, so "qyy yields ...
1
vote
2answers
587 views

Vim: How to create autocomplete/chooser from entries in buffer?

Found out today that if you press Ctrl-Opt-Cmd-V in Textmate, it produces a cute little "chooser" dialogue in-place that allows you to page through your recent clipboard entries. It looks very similar ...
0
votes
2answers
205 views

Vim. Restore an unlisted buffer

Is there any way to restore an unlisted buffer in Vim and send it back to the list of buffers? For example: :ls! 1# "one.txt" 2% "two.txt" 3u "three.txt" Can I send the third buffer back to ...
4
votes
5answers
2k views

Sharing Vim Yank Register

Is it possible to run multiple instances of Vim which share their yank registers? I'd like to avoid having to yank to the system clipboard with "+y or opening my files in split windows within the same ...
6
votes
2answers
2k views

How do you increase or decrease the height or width of a vim buffer in a way so that when you hold down the key combo, the size constantly changes?

How do you increase or decrease the height or width of a vim buffer in a way so that when you hold down the key combo, the buffer size constantly changes? I know CTRL-W < works but it moves it one ...
7
votes
4answers
2k views

VIM - leaves .swp files after crash

I use MacVim (snapshot 51) to edit a the Python/HTML/etc files in moderately sized project. Every few months my system locks up or crashes, and Vim leaves a plethora of .*.swp files around. When I go ...
8
votes
1answer
10k views

Configure VIM for copy and paste keyboard shortcuts from system buffer in Ubuntu?

How do I configure VIM for using Ctrl-c to copy and Ctrl-v to paste from system buffer in Ubuntu?