I can open one file in a new tab with:  :tabnew file   Let's say I have many files, for example: util.h and util.cpp.  How I can open those files all in separate, new tabs?     I'm looking for something similar to  :tabnew util.*
124010
Is it possible to get vim to open multiple files into tabs, similar to the way the args &lt;path&gt; command will open multiple files into buffers?  Doing something like :tabe ./* results in the error "E77: Too many file names", even though the number of files is less than the value set in the tabpagemax property.  (I believe the vim -p &lt;files&gt; option will open in tabs, but I'm hoping to find a way to do it when vim is already open.)
74527
Sorry to start a subjective question, but want to understand "own.sty" file.  Other than all \usepackage{} what sort of other commands can be added to the makeyourown.sty file.  Can you include \let command, and \newcommands in it.   What sort of precaution / structure newbies should follow.
99300
So, no matter what I seem to do, I cannot seem to avoid having Dev C++ spew out numerous Multiple Definition errors as a result of me including the same header file in multiple source code files in the same project.  I'd strongly prefer to avoid having to dump all my source code into one file and only include the header once, as that's going to make my file very long and difficult to manage.  Essentially, this is what's going on:  #ifndef _myheader_h #define _myheader_h  typedef struct MYSTRUCT{ int blah; int blah2; } MYSTRUCT;  MYSTRUCT Job_Grunt; MYSTRUCT *Grunt = &amp;Job_Grunt; MYSTRUCT Job_Uruk; MYSTRUCT *Uruk = &amp;Job_Grunt;  int Other_data[100];  void load_jobs();  #endif   Example Cpp File (They pretty much all look something like this):  #include "myheader.h"  void load_jobs(){  Grunt-&gt;blah = 1; Grunt-&gt;blah2 = 14;  Uruk-&gt;blah = 2; Uruk-&gt;blah2 = 15;  return; }   Bear in mind that I have about 5 cpp files that include this one header, each one dealing with a different type of struct found in the header file.  In this example there was only the one struct containing a couple of members, when there are about 4-6 different structs with many more members in the actual header file.  All the files I've included it in follow the same formula as you see in this example here.  Now I understand that the header guard only stops each individual cpp file from including the header file more than once.  What would seem to be happening is that when the compiler reads the include at the start of each cpp, it defines the header file all over again, which is causing it to spit out lines and lines of:  Multiple Definition of Uruk, first defined here   Multiple Definition of Job_Uruk, first defined here   Multiple Definition of Grunt, first defined here   Multiple Definition of Job_Grunt, first defined here   Multiple Definition of Other_data, first defined here   I'll see a set of this for just about every cpp file in the project which includes the header.  I've tried moving the definitions of the struct and the struct variables to the cpp files, but then the other cpp files cannot see them or work with them, which is very important as I need all files in the project to be able to work with these structs.  But the single most confusing part about this problem requires a little more explanation:  The way I'm setting up these multiple files in this project is identical to the book I'm working with, All In One Game Programming by John S. Harbour.  I ran into the exact same problems when I created the files for example projects in the book which called for one header included by multiple cpps in the same project.  I could type them out, word for word from the book, and I do mean word for word... and I'd get the series of MD errors for every cpp in the project.    If I loaded the example project from the CD included with the book, it would compile and run without a problem, allthough the files themselves, as well as the project options, were by all appearances identical to the ones I had created.  If I created my own project file, and simply added the source and header files for the example project from the CD, this, too, would also compile and run, though I can find no difference between those and mine.  So then, I tried making my own project file, then creating the blank source and header files and adding them to it, and then filling them by copying and pasting their contents from the files on the CD they were meant to correspond to(the same ones that had worked). And sure enough, I'd get the same thing...lines and lines of MD error messages.  I'm absolutely baffled.  I've repeated all these methods multiple times, and am certain I'm not mistyping or miscopying the code.  There just seems to be something about the premade files themselves; some configuration setting or something else I'm missing entirely...that will cause them to compile correctly while the files I make myself won't.
98875
I want to be able to open files like my operating system does from console.  e.g. a .pdf file should be opened with evince or whatever the default application to open pdfs is. All the other things should work too; images -> eog, text files -> gedit and so on.   I hope that there is a solution for this, it would be really practical.
70334
When I'm opening a new file in Vim and I use tab completion, it completes the whole file name instead of doing the partial match like Bash does. Is there an option to make this file name tab completion work more like Bash?
68832
Usually I need much pages to be open at one time. So there is a Windows task panel. When I open multiple Google Chrome windows by Ctrl+N they appear in some order at the Windows task panel. Also in each windows I can create multiple tabs with pages (Ctrl+T).  I would like to create certain order of Google chrome Windows in the task panel. Say first is window with multiple tabs of my email accounts (gmail, yahoo mail etc). Second is window with tabs of google drive pages (different spreadsheets and docs files pages).  But sometime (I don't know why and how) the order changes itsef. Say window with emails tabs goes down... And then to create initial order I need to close all the windows and reopen them.  Could you please help with following: 1. Why order changes? 2. How can I change the order without closing and reopening all the windows? 3. If I create set of startup pages in the Google Chrome settings all of them open in the separate tabs but within one window. May I create a setting to open them in certain order of windows on each startup of Google Chrome?
40500
Coming from Mac OS X, you can type:  $ open yourfilehere.txt   and your file will open just as if you had opened it from Finder.  On Windows, one can type:  &gt; start yourfilehere.txt   and it will open just as if you had opened it from Explorer.  On Ubuntu, I'd like to be able to open files in the same manner in GNOME. What's the command?
73111
In my macro file, I have certain theorem environments defined, for example.  \newtheorem{theorem}{Theorem} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{corollary}[theorem]{Corollary}  \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition}   Again, these lines are in my macros.sty file of shortcuts.  In the past, I have changed the numbering of theorem, etc... by using \numberwithin. I have recently learned that I can instead edit the \newtheorem line. For example, if I want results numbered according to section I can use  \newtheorem{theorem}{Theorem}[section]   My question now is about future situations when I have two documents, which both use the same macros.sty file, but in one document I want to number results by section and in the other document I want to number results by something else, say chapter.  How can I accomplish this without creating two different .sty files?   EDIT: I think I should add that I am looking for a way to do this without going back to \numberwithin. The reason for this is because \numberwithin doesn't seem to work well with the thmtools package.
91265
As a developer I work with a lot of source code files etc. and I need to copy these around, rename, etc. I'm sure any developer knows the drill.  Windows Explorer is really "helpful" in suggesting different Views for different folders. Apparently one source code folder is an image folder, another apparently needs large icons etc. This appears to be getting worse with every new Windows release. It used to be possible to set a View on a root folder and Windows would pretty much respect that, but Vista keeps guessing (wrong) no matter what I do.  I like many of the other improvements that MS made to Windows Explorer over the years, but this persistent attempt and failure to guess how I want my files listed make it counterproductive and really spoils it all.  So I gave up on Windows Explorer and now use Salamander instead. But the problem comes up again every time I use someone else's computer, and whenever a program uses the standard file open/save dialogs.  Please - does anyone know of a way to tell Windows Explorer to always use Detail View - and keep doing it?  Thanks in advance
123993
If I am in a specific path in a Terminal window, how can I open that same window in a new Finder window?   Note: This is the opposite of .
82398
Suppose I have a directory structure like this:   $ [~/practice] ls a/ b/ c/ d/   Now I want to create a directory tmp1 in all sub directories of practice and I do this:   $ [~/practice] mkdir */tmp1 mkdir: cannot create directory `*/tmp1': No such file or directory   Then I try the -p switch and I endup with a directory named * with a sub directory tmp1   $ [~/practice] mkdir -p */tmp1  $ [~/practice] ls */ a/ b/ c/ d/   I know the use of -p switch is to create multiple nonexistent directories. I just thought it might help.  How do I create tmp1 in all subdirectories at once?   If this can be done, how do I extend it to create \tmp1, \tmp2, \tmp3 in \a, \b and \c at once?  Edit: I missed mentioning that the directories don't have to be simple and in order, like a, b, c etc., and the directory to be created is not necessarily like tmp1, tmp2.    $ [~/practice] ls dog/ cat/ rat/   In them, I would like to have something like   $ [~/practice] ls * dog: red/ blue/  cat: red/ blue/  rat: red/ blue/
45226
Is there any easy way to open the document library files in a new window or popup depending on the file types?  e.g. PDF - In Adobe reader (currently opens in IE)  Image file (currently opens in IE)
74851
I was wondering if there's an easy way in C++ to read a number of file names from a folder containing many files. They are all bitmaps if anyone is wondering.  I don't know much about windows programming so I was hoping it can be done using simple C++ methods.
85018
A section on a website has a list of links to PDF files (containing end user content).  When a user clicks on one of these links should it open in a new tab on the browser? Or should it open in the current tab/window?    I notice that when you click on external links on Twitter or Facebook they open in a new tab, but I am unsure about best practices for internal links to PDF documents.
17028
Is there a substitute in emacs for the vi "gf" command? meaning try to open the file which is under the cursor right now if a real file name is in fact there.  Thanks
81218
I am trying to do a new environment or command (i tried both) where i can put in the name, description and code of a Method in c++ and it gives me a new section with the MethodName, the code listed and the description below. But i am not able to use the listings environment in a new command or new environment.. Consider my MWE   \documentclass[a4paper,11pt]{article} \usepackage{listings}  \newcommand{\method}[3] { \section{#1}\label{#1} \begin{lstlisting} #2 \end{lstlisting} #3 }   \begin{document}  \method{MethodName}{Method Void MethodName()}{Description of the Method blablabla}  \end{document}   How can I fix this?   I would prefer to do it using a macro since I don't need an ending.
49779
I would like to start each section on a new page. Is adding the following to my preamble this the preferred method, or a hack?  \let\stdsection\section \renewcommand\section{\newpage\stdsection}