aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorAnton Bobov <abobov@gmail.com>2014-07-10 10:29:57 +0600
committerAnton Bobov <abobov@gmail.com>2014-07-10 15:42:19 +0600
commit6e619e99fe77a7f23fb1d4f3fcce219a6c8424cb (patch)
tree6363ce634bd79b1b4ae9593fc51886c32ed3edfc /files
parent7f7ebca673e1aa848b8c4af737fc72e6bf9a731d (diff)
Update vimrc.
Add mapping to tabularize by under cursor char.
Diffstat (limited to 'files')
-rw-r--r--files/.vimrc13
1 files changed, 12 insertions, 1 deletions
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 <silent> <Leader><Tab> :ScratchToggle<cr>
" }}}
-" Load custom local config{{{1
+" Tabular {{{
+
+function! TabularizeUnderCursos()
+ let ch = getline(".")[col(".") - 1]
+ call Tabularize('/\V' . ch)
+endfunction
+nnoremap <silent> <Leader>T :call TabularizeUnderCursos()<cr>
+
+" }}}
+" }}}
+" Load custom local config {{{
+
let s:local_vimrc=$MYVIMRC . ".local"
if filereadable(s:local_vimrc)
silent! execute ':source ' . s:local_vimrc