[xmodmap] caps lock now disabled
[vimrc] inserting tabs or keywords now works how I want it to

If at the beginning of a line, or if all of the text up to the character
before the current character is whitespace, then we want to add a tab.  This
is what I expect this function to do and now it does it :-)