From 6e619e99fe77a7f23fb1d4f3fcce219a6c8424cb Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Thu, 10 Jul 2014 10:29:57 +0600 Subject: Update vimrc. Add mapping to tabularize by under cursor char. --- files/.vimrc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'files/.vimrc') diff --git a/files/.vimrc b/files/.vimrc index e36c2fd..6abe205 100644 --- a/files/.vimrc +++ b/files/.vimrc @@ -346,7 +346,18 @@ command! ScratchToggle call ScratchToggle() nnoremap :ScratchToggle " }}} -" Load custom local config{{{1 +" Tabular {{{ + +function! TabularizeUnderCursos() + let ch = getline(".")[col(".") - 1] + call Tabularize('/\V' . ch) +endfunction +nnoremap T :call TabularizeUnderCursos() + +" }}} +" }}} +" Load custom local config {{{ + let s:local_vimrc=$MYVIMRC . ".local" if filereadable(s:local_vimrc) silent! execute ':source ' . s:local_vimrc -- cgit v1.2.3