curtismchale/WPTT-Vim-Config — pull request #26 by salcode (2014-05-03 01:46:03+00:00)
Title: add helper mappings for a number of features

Includes some helper mappings I find useful. Feel free to reject this PR but as long as I was adding them to my fork, I thought I'd also offer them upstream.

Shortcuts
------------------

### ESC
`jk` is mapped to ESC in visual mode

### Tab Settings
set number of characters and treatment (spaces or \t)
`ts4` " i.e. (t)ab as (s)paces, 4 spaces
`ts2` " i.e. (t)ab as (s)paces, 2 space
`tt4` " i.e. (t)ab as (t)ab character, display size 4
`tt2` " i.e. (t)ab as (t)ab character, display size 4

### Modify .vimrc and .gvimrc on the fly
`ev` edit .vimrc file
`sv` source .vimrc file (i.e. apply settings in that file)

`eg` edit .gvimrc file
`sg` source .gvimrc file (i.e. apply settings in that file)

### PHP error logging
`el` the current expression on a line and error log it with comment
**$str** becomes
**error_log( '$str = ' . print_r( $str, true ) );**

### Remove Whitespace
`w` clean all trailing whitespace