vimrc - Directory suggestions on Vim status line

10
2013-11
  • platypus

    Recently I came across the following in a video about Vim: typing Tab in the command line in vim makes the status line show you suggestions on the possible directories matching the letters you typed so far (see attached). Does anyone know which Vim plugin or setting lets you do this?

  • Answers
  • Heptite

    The option you want is:

    :set wildmenu
    

    You will need to add the command to your vimrc to make it permanent. See:

    :help 'wildmenu'
    

  • Related Question

    vimrc - VIM: Disable Swap
  • Nerdling

    How does one disable swap files for VIM via .vimrc?


  • Related Answers
  • ennuikiller
    set nobackup
    set nowritebackup
    set noswapfile
    
  • John T

    Throw this into your .vimrc:

    set noswapfile
    
  • Kevin Panko

    I would not disable swap files completely because they are used for recovery if vim crashes.

    Instead, put them into a temp folder so that they are not scattered all over:

    if has("win32")
       set directory=c:\\tmp,c:\\temp
    elseif has("unix")
       set directory=/tmp
    endif
    
  • Kevin M

    start vim with the "-n" argument:

    vim -n <file>