Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I don't find drilling down into subdirectories via plain old <code>:e</code> to be that cumbersome given a decent configuration for tab-completion.</p> <p>Look into the <code>'wildmenu'</code> option to have Vim show a list of completions (filenames) in the modeline above the commandline. You can change the <code>'wildmode'</code> option to further configure the kind of tab-completion Vim will do. </p> <p>Personally I use <code>:set wildmode=full</code>.</p> <p>My workflow is like this:</p> <ol> <li><code>:cd</code> into the toplevel directory of my project.</li> <li><p>To open file <code>foo/bar/baz</code>:</p> <ul> <li><p>Simplest scenario: type <code>:e f&lt;tab&gt;b&lt;tab&gt;b&lt;tab&gt;&lt;enter&gt;</code>.</p></li> <li><p>If there are more than one file starting with <code>b</code> in one of those directories you might have to do a <code>&lt;left&gt;</code> or <code>&lt;right&gt;</code> or another <code>&lt;tab&gt;</code> on the keyboard to jump between them (or type a few more letters to disambiguate).</p></li> <li><p>Worst-case scenario there are files and directories that share a name and you need to drill down into the directory. In this case tab-complete the directory name and then type <code>*&lt;tab&gt;</code> to drill down.</p></li> </ul></li> <li>Open 2 or 3 windows and open files in all of them as needed.</li> <li>Once a file is open in a buffer, don't kill the buffer. Leave it open in the background when you open new files. Just <code>:e</code> a new file in the same window.</li> <li>Then, use <code>:b &lt;tab&gt;</code> to cycle through buffers that are already open in the background. If you type <code>:b foo&lt;tab&gt;</code> it will match only against currently-open files that match <code>foo</code>.</li> </ol> <p>I also use these mappings to make it easier to open new windows and to jump between them because it's something I do so often.</p> <pre><code>" Window movements; I do this often enough to warrant using up M-arrows on this" nnoremap &lt;M-Right&gt; &lt;C-W&gt;&lt;Right&gt; nnoremap &lt;M-Left&gt; &lt;C-W&gt;&lt;Left&gt; nnoremap &lt;M-Up&gt; &lt;C-W&gt;&lt;Up&gt; nnoremap &lt;M-Down&gt; &lt;C-W&gt;&lt;Down&gt; " Open window below instead of above" nnoremap &lt;C-W&gt;N :let sb=&amp;sb&lt;BAR&gt;set sb&lt;BAR&gt;new&lt;BAR&gt;let &amp;sb=sb&lt;CR&gt; " Vertical equivalent of C-w-n and C-w-N" nnoremap &lt;C-w&gt;v :vnew&lt;CR&gt; nnoremap &lt;C-w&gt;V :let spr=&amp;spr&lt;BAR&gt;set nospr&lt;BAR&gt;vnew&lt;BAR&gt;let &amp;spr=spr&lt;CR&gt; " I open new windows to warrant using up C-M-arrows on this" nmap &lt;C-M-Up&gt; &lt;C-w&gt;n nmap &lt;C-M-Down&gt; &lt;C-w&gt;N nmap &lt;C-M-Right&gt; &lt;C-w&gt;v nmap &lt;C-M-Left&gt; &lt;C-w&gt;V </code></pre> <p>It takes me a matter of seconds to open Vim, set up some windows and open a few files in them. Personally I have never found any of the third-party file-browsing scripts to be very useful.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload