Archive for September, 2010
Make Vim Remember The Cursor’s Last Position After Exiting
So you edit a file in vim, you exit vim, and after a while you want to edit the file again. Many times it’s nice to have the cursor placed in the same position you left it. Here’s how to make this happen:
1. Add this to your ~/.vimrc file (or to /etc/vim/vimrc to enable to the feature system-wide):
if has(“autocmd”)au BufReadPost * if line(“‘\”") > 1 && line(“‘\”") <= line(“$”) | exe “normal! g`\”" | endifendif
touch ~/.viminfo
Make Google Even Smarter With Google Subscribed Links
Just noticed this feature today in my Google Preferences page (I don’t visit this page regularly so I can’t tell how new this feature is).
This feature allows you to subscribe to different kinds of sources to lookup your query in, in addition to the “regular” search.
You can enable it in your Google Preferences. And you can manage your subscription in the Subscribed Links page.
About Me
Tags
Categories
- Algorithms
- Bash
- BlackBerry
- Collaboration
- Command Line
- Cool Tricks
- Easter Eggs
- Ebooks
- Firefox
- Hardware
- Humor
- iPhone
- Linux
- Linux Development
- Linux Kernel
- Networks
- Open Knowledge
- Other
- Productivity
- Programming
- Regular Expressions
- Science
- Security
- Shell Scripts
- Short Posts
- Social Networks
- Thoughts
- Tools
- Vim
- Web Development
- Websites
Popular Posts
Archives
- September 2010 (2)
- August 2010 (2)
- July 2010 (5)
- June 2010 (1)
- May 2010 (1)
- April 2010 (3)
- March 2010 (1)
- January 2010 (1)
- December 2009 (2)
- September 2009 (13)
- July 2009 (1)
- June 2009 (6)
- May 2009 (4)
- March 2009 (18)
- February 2009 (10)
- January 2009 (10)
- December 2008 (7)
- November 2008 (8)
- October 2008 (1)
- August 2008 (1)
- July 2008 (1)
- June 2008 (1)
