Skip to content

Instantly share code, notes, and snippets.

@emanon001
Created March 28, 2012 03:31
Show Gist options
  • Save emanon001/2223331 to your computer and use it in GitHub Desktop.
Save emanon001/2223331 to your computer and use it in GitHub Desktop.
Definition of key-mapping using a prefix key. (step1)
" 抽象的なプレフィックスキーを定義する
nnoremap <SID>[Tag] <Nop>
nnoremap <silent> <SID>[Tag]<Space> <C-]>
nnoremap <silent> <SID>[Tag]j :<C-u>tag<CR>
nnoremap <silent> <SID>[Tag]k :<C-u>pop<CR>
nnoremap <silent> <SID>[Tag]s :<C-u>tags<CR>
nnoremap <silent> <SID>[Tag]n :tnext<CR>
nnoremap <silent> <SID>[Tag]p :tprevious<CR>
nnoremap <silent> <SID>[Tag]f :tfirst<CR>
nnoremap <silent> <SID>[Tag]l :tlast<CR>
" 抽象的なプレフィックスキーと実際に打鍵するプレフィックスキーをリンクさせる
nnoremap <script> t <SID>[Tag]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment