Skip to content

Instantly share code, notes, and snippets.

@rickarubio
Created March 27, 2015 03:52
Show Gist options
  • Select an option

  • Save rickarubio/43d5dab75ee84011f2f6 to your computer and use it in GitHub Desktop.

Select an option

Save rickarubio/43d5dab75ee84011f2f6 to your computer and use it in GitHub Desktop.

Revisions

  1. rickarubio created this gist Mar 27, 2015.
    7 changes: 7 additions & 0 deletions vimtips.vim
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    " Add this to your .vimrc

    if isdirectory(argv(0))
    bd
    autocmd vimenter * exe "cd" argv(0)
    autocmd VimEnter * NERDTree
    endif