How To Change Cursor-position-based Window Scrolling In VIM

Author: , September 30th, 2011

To force VIM to keep the cursor vertically centered in the window while the text scrolls, place this directive in your ~/.vimrc file: 1 set so=999 set so=999 To disable it, comment the line out with a double-quote or remove it completely: 1 "set so=999 “set so=999

How To Get The Current Path, HREF, and Title Using jQuery

Author: , June 5th, 2011

Various Ways to Obtain Various Information: 1 2 3 4 5 jQuery(document).ready(function() {      var Path = window.location.pathname;      var HREF = jQuery(location).attr(’href’);      var Title = jQuery(this).attr(’title’); }); jQuery(document).ready(function() { var Path = window.location.pathname; var HREF = jQuery(location).attr(‘href’); var Title = jQuery(this).attr(‘title’); });