1
0
Fork 0
mirror of synced 2024-11-16 14:05:34 -05:00

mapping $t to <>

This commit is contained in:
Tiande 2016-05-12 00:27:27 +08:00
parent 54afb04f5b
commit e823d9b40a
2 changed files with 8 additions and 2 deletions

View file

@ -12,8 +12,8 @@ let g:solarized_italic=0 " 1 | 0
" let g:solarized_bold=0 " let g:solarized_bold=0
" let g:solarized_underline=0 " let g:solarized_underline=0
set background=light " dark set background=dark " dark
:colorscheme solarized " ir_black mayansmoke :colorscheme solarized " solarized ir_black mayansmoke
" syntastic " syntastic
set statusline+=%#warningmsg# set statusline+=%#warningmsg#
@ -92,6 +92,7 @@ set guioptions-=T
" 删除文件时自动删除文件对应 buffer " 删除文件时自动删除文件对应 buffer
let NERDTreeAutoDeleteBuffer=1 let NERDTreeAutoDeleteBuffer=1
" map ALT-n ALT-p to :lnext :lprevious " map ALT-n ALT-p to :lnext :lprevious
" Mac 下不可用
map <M-n> :lnext<cr> map <M-n> :lnext<cr>
map <M-p> :lprevious<cr> map <M-p> :lprevious<cr>
@ -126,3 +127,7 @@ augroup END
if has('gui_running') if has('gui_running')
set guifont=Lucida_Console:h12 set guifont=Lucida_Console:h12
endif endif
" map $t to <>
vnoremap $t <esc>`>a><esc>`<i<<esc>
inoremap $t <><esc>i

View file

@ -310,6 +310,7 @@ $3 ==> {}
$$ ==> "" $$ ==> ""
$q ==> '' $q ==> ''
$e ==> "" $e ==> ""
$t ==> <>
和 S" 模式很像,可以自己再配置(,e),格式是: 和 S" 模式很像,可以自己再配置(,e),格式是:
vnoremap $1 <esc>`>a)<esc>`<i(<esc> vnoremap $1 <esc>`>a)<esc>`<i(<esc>