I use emacs for the majority of my editing, however I use vim to edit config files. Most distributions will have a global vimrc that sets up vim to remember the last place it was in a file, and put you back there when you reopen that file. I find this to be a preferred behavior since I tend to make incremental changes to a config file and want to open it to the same section over and over again. Ubuntu for some reason has this section commented out in /etc/vim/vimrc:
if has("autocmd")
au BufReadPost * if line("'\"") > 0 && line("'\"") < = line("$")
\| exe "normal g'\"" | endif
endif
So I just snip that out of there and put it in my ~/vimrc. Happy configuring!
-
Archives
- January 2012
- December 2011
- November 2011
- October 2011
- June 2011
- May 2011
- March 2011
- January 2011
- October 2010
- September 2010
- July 2010
- June 2010
- May 2010
- February 2010
- January 2010
- December 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
-
Meta
I used emacs to create my ~/.vimrc, just for kicks. Watch for line wrap in the above code block!