Skip to content

Instantly share code, notes, and snippets.

@emanon001
Created March 28, 2012 03:58
Show Gist options
  • Save emanon001/2223494 to your computer and use it in GitHub Desktop.
Save emanon001/2223494 to your computer and use it in GitHub Desktop.
Definition of key-mapping using a prefix key. (step2)
" ユーザ定義コマンドが使えるようにプラグインの読み込みを行なう。
call prefixedmap#load()
PrefixedMapBegin <SID>[Tag]
Pnnoremap <Nop>
Pnnoremap <silent> <Space> <C-]>
Pnnoremap <silent> j :<C-u>tag<CR>
Pnnoremap <silent> k :<C-u>pop<CR>
Pnnoremap <silent> s :<C-u>tags<CR>
Pnnoremap <silent> n :tnext<CR>
Pnnoremap <silent> p :tprevious<CR>
Pnnoremap <silent> f :tfirst<CR>
Pnnoremap <silent> l :tlast<CR>
PrefixedMapEnd
nnoremap <script> t <SID>[Tag]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment