Disable shortcuts

15 views
Skip to first unread message

Daniel

unread,
Dec 6, 2011, 5:40:37 AM12/6/11
to vimwiki
Pardon my ignorance but, is there a way to selectively disable
shortcuts from vimwiki? In particular <C - up> and <C - down> conflict
with some of my personal shortcuts. How do I make my .vimrc take
precedence over vimwiki?

Maxim Kim

unread,
Dec 8, 2011, 2:37:35 PM12/8/11
to vim...@googlegroups.com

Vimwiki checks if mappings for its commands are set.

If not, it uses 'default' bindings.

So if there is no mapping to <Plug>VimwikiDiaryPrevDay then <C-Up> is bind to it. The same goes with <C-Down> and <Plug>VimwikiDiaryNextDay.

Add the following to your vimrc:
nmap <S-Up> <Plug>VimwikiDiaryPrevDay
nmap <S-Down> <Plug>VimwikiDiaryNextDay


Change <S-Up> and <S-Down> to whatever you want.


Maxim.

Daniel

unread,
Dec 9, 2011, 5:53:08 AM12/9/11
to vimwiki
Thanks! Now I know :-)
Reply all
Reply to author
Forward
0 new messages