From e823d9b40af531097aa6561e9735f3c73e9dd671 Mon Sep 17 00:00:00 2001 From: Tiande Date: Thu, 12 May 2016 00:27:27 +0800 Subject: [PATCH] mapping $t to <> --- my_configs.vim | 9 +++++++-- tiande.md | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/my_configs.vim b/my_configs.vim index 6b8cc175..9de0dee0 100644 --- a/my_configs.vim +++ b/my_configs.vim @@ -12,8 +12,8 @@ let g:solarized_italic=0 " 1 | 0 " let g:solarized_bold=0 " let g:solarized_underline=0 -set background=light " dark -:colorscheme solarized " ir_black mayansmoke +set background=dark " dark +:colorscheme solarized " solarized ir_black mayansmoke " syntastic set statusline+=%#warningmsg# @@ -92,6 +92,7 @@ set guioptions-=T " 删除文件时自动删除文件对应 buffer let NERDTreeAutoDeleteBuffer=1 " map ALT-n ALT-p to :lnext :lprevious +" Mac 下不可用 map :lnext map :lprevious @@ -126,3 +127,7 @@ augroup END if has('gui_running') set guifont=Lucida_Console:h12 endif + +" map $t to <> +vnoremap $t `>a>` +inoremap $t <>i diff --git a/tiande.md b/tiande.md index 66db1203..87aebfce 100644 --- a/tiande.md +++ b/tiande.md @@ -310,6 +310,7 @@ $3 ==> {} $$ ==> "" $q ==> '' $e ==> "" +$t ==> <> 和 S" 模式很像,可以自己再配置(,e),格式是: vnoremap $1 `>a)`