0
votes
2answers
54 views

Open multiple vim tabs and windows simultaneously from command line

I've got four files a b c d and would like to open them all in vim such that I have two tabs each vertically splitted into two windows; files a and b in the first tab and c and d in the second tab. ...
1
vote
2answers
949 views

How to setup vim to edit both Makefile and normal code files?

I am using Mac OSX 10.7.5, the contents of .vimrc is as follow: set tabstop=4 set shiftwidth=4 set softtabstop=4 set expandtab set shiftround set smarttab set autoindent set copyindent ...
0
votes
1answer
82 views

Save vim tabs without saving vim environment / Reload vim environment

My vim environment occasionally becomes corrupted because of plugin/user errors (e.g. :bdelete in the NERDCommander window), and I'd like to "reload vim". :mksession allows vim to "save" tabs for ...
5
votes
1answer
163 views

Vim: close all tabs to the right

I was wondering if there is a way of closing all tabs to the right of the current tab. ie -----|active|-----|-----|------| and after, say: :tabcright -----|active Thanks! Pedro
1
vote
1answer
482 views

Vim: Close and return to last tab, repeat

I find myself in this situation very often: Open gVim with NERDTree from current working directory. Open a file from NERDTree using <S-T> so it grabs a new tab. :tabprevious to return to ...
9
votes
3answers
5k views

In vim, how can I quickly switch between tabs?

In gnome-terminal, I can just press Alt + (1, 2, 3, etc.) to switch to specific tabs. I can also use Ctrl + (PgUp / PgDn) to cycle through tabs (admittedly less convenient, but it can be remapped). ...
3
votes
1answer
488 views

vim : open many tabs for many files

in vim, I can one file en a new tab with : :tabnew file If I have many files, example: util.h and util.cpp. how I can open the files in new tabs ? similar to :tabnew util.*
0
votes
3answers
184 views

In Vim, is there a way to TAB multiple adjacent lines at a time?

I've noticed that dragging your mouse to highlight, say, 5 lines in a row and then pressing the TAB button does not do it for you... Is there a way to TAB in bulk, or is just something that is usually ...
0
votes
1answer
1k views

Why is the default tab size 8 spaces? Where does this come from and why is it that big? [closed]

When I push tab in many applications like vim, OpenOffice etc., the tab size is equivalent to 8 spaces/characters. This is the default for many applications. When the default terminal size is 80 ...
3
votes
4answers
2k views

Vim: Show the index of tabs in the tabline

Lets say I opened file1.txt, file2.txt, file3a.txt and file3b.txt such that the tabline (the thing on the top) looks like this: file1.txt file2.txt 2 file3a.txt (Note how file3b.txt. is missing ...
1
vote
2answers
330 views

How to make vim stop making hard tab characters

I press "Tab, Tab, Tab, Left, Delete" to get the required indentation. After saving the file I see "^I ". If I press "Space" 11 times instead I see " ". How to make vim stop introducing ...
3
votes
2answers
666 views

Vim plugin presenting a list of open tabs

I've looked around and couldn't seem to find what I need. Basically, when I have many open tabs, it becomes difficult to realize what file is open in a specific tab. Is there a plugin that would ...
23
votes
1answer
7k views

How to get vim to open multiple files into tabs at once

Is it possible to get vim to open multiple files into tabs, similar to the way the args <path> command will open multiple files into buffers? Doing something like :tabe ./* results in the error ...
2
votes
1answer
368 views

Vim: When folding code allow tabs to remain

In vim I would like to change the folding behavior. Suppose I fold this block: === fileName === == summary == I think that this defines the class to use for the ...
1
vote
2answers
334 views

Vim convert tabs to spaces for one folder

I'm working on a project with a friend soon. Given that he cares about these things more than me, I let him choose the indentation. Him being a Ruby fan, he chose two spaces. My usual is to use tabs. ...
15
votes
4answers
6k views

How do I edit an existing buffer in a new tab in vim?

Suppose I have started vim like this: vim foo bar Now I decide that I want each of those files in its own tab. Is there a way to do that without exiting vim and adding the -p option to my command ...