On Tue 31-Oct-06 9:47pm -0600, Meino Christian Cramer wrote: > I want to load a file into a tab when starting vim from the console > (termulator under X) with that file given on the commandline.
You always get a tab. If there's only one tab, the little tabs don't show (unless 'stal' is set to 2. If you want to load several files into separate tabs: vim -p file1 file2 ... If you want 4 tabs but only want to specify one file: vim -p4 file See :help -p :help 'stal' > Another thing (not included in the subject :O))) > When starting vim as above but without an argument and loading > a file into vim with > > :e tab sp <filename> > > then, I always get a tab called [No Name] and the second one is the > tab of the file I want to edit. Hmm, I get one file named "tab sp filename". If you want to load file into its own tab: :tabedit file > Is there a way to avoid the "No Name" buffer...it make the option > "showtabline" a little superflous (only my two cents...), because > there is alway an additional buffer ("No Name") even when loading > only one file into a tab... I don't follow. If I wanted to load one file and see the tab, I would start with: vim --cmd "set stal=2" filename No "No Name" stuff. -- Best regards, Bill