Home » Odeon Blogs » Calvin, Weaver »

Auto Change Directory in MacVim

Auto Change Directory in MacVim

MacVim

It's been quite a while since I messed with code.

Meeting new people, working on new product concepts, promoting our new software services, managing our kick-*ss development team and re-calibrating my work-life balance have killed off any little time I have left to mess around with code.

Dusting off my under-used MacVim today, I got into some trouble using vim file browser.  Whenever I open another file in the same directory as the current file I am editing, I get sent back to my default "work" directory.

Guess I did not port over this line from my Windows and Linux Vim instances:

  1. set autochdir

Added it into my MacVim's .vimrc file, run:

  1. :source ~/.vimrc

And ta da... my MacVim now remembers which file I last opened and I do not get sent to the pwd (parent) directory when attempting to open a file in the same directory.


Category: MacVim


Tagged as: vim

Discussion

  1. Miltar on Feb 04, 2012 - 11:20 said:

    Hi, i Like this macvim color scheme...Can I get it?...Where?...I will come back...thanks!




Leave a Comment :

(required)


(required)




(required)




(required)






Leave a Comment


Page generated in: 0.15s