The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 3: | Line 3: | ||
|previous=1599 |
|previous=1599 |
||
|next=1601 |
|next=1601 |
||
− | |created=2008 |
+ | |created=August 8, 2008 |
|complexity=basic |
|complexity=basic |
||
|author=Fritzophrenic |
|author=Fritzophrenic |
||
Line 15: | Line 15: | ||
It turns out, Vim ''does'' have this functionality, but it is hard to find. |
It turns out, Vim ''does'' have this functionality, but it is hard to find. |
||
− | The < |
+ | The <tt>:drop</tt> command will edit a new file, or jump to the window containing it if it already exists. Using <tt>:tab</tt> with it (i.e. <tt>:tab drop {file}</tt>) will open the file in a new tab if it isn't already open. |
− | Dragging and dropping a file into gvim automatically invokes the < |
+ | Dragging and dropping a file into gvim automatically invokes the <tt>:drop</tt> command. If you hold down the CTRL key while doing this, it will force a window to split (there isn't a way to force a tab, but CTRL-W T right afterwards will do that for you easily). If you hold down SHIFT, it will set Vim's working directory to that of the file. |
==References== |
==References== |