From dccde2f30d8cf551d3dccaae53341110d1c8967e Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Mon, 28 Jul 2014 02:54:16 -0400 Subject: [PATCH] Added some vimpager-specific mappings to vimpagerrc (I'll likely pull vimpager-specific mappings out into a separate keyboard config file that both vimpager and vim use eventually, but this works well for now) --- vimpagerrc | 91 ++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 72 insertions(+), 19 deletions(-) diff --git a/vimpagerrc b/vimpagerrc index ed9fa35..a36671b 100644 --- a/vimpagerrc +++ b/vimpagerrc @@ -48,23 +48,76 @@ set nofoldenable "disable the fold column set noru laststatus=0 noshowmode "remove statusline - "Keymappings: - map - map - map - map - nnoremap 4zl - xnoremap 4zl - inoremap 4zl - nnoremap 4zh - xnoremap 4zh - inoremap 4zh - nnoremap zl - xnoremap zl - inoremap zl - nnoremap zh - xnoremap zh - inoremap zh - map 0 - map $ + "Keymappings: {{{ + "mouse + map + map + map + map + nnoremap 4zl + xnoremap 4zl + nnoremap 4zh + xnoremap 4zh + nnoremap zl + xnoremap zl + nnoremap zh + xnoremap zh + + "movement + map 0 + map $ + nnoremap = + + nnoremap 4k + nnoremap 4j + nnoremap + nnoremap + nnoremap gg0 + nnoremap G$ + nnoremap $ + nnoremap ^ + vmap MoveBlockUp + vmap MoveBlockDown + nmap MoveLineUp + nmap MoveLineDown + vmap MoveBlockHalfPageUp + vmap MoveBlockHalfPageDown + nmap MoveLineHalfPageUp + nmap MoveLineHalfPageDown + vmap MoveBlockHalfPageUp + vmap MoveBlockHalfPageDown + nmap MoveLineHalfPageUp + nmap MoveLineHalfPageDown + + "copy/paste + noremap y vy + nnoremap y + vnoremap y + nnoremap T vg_y + vnoremap T g_y + + "selection + nnoremap gg0vG$ + xnoremap gg0vG$ + nnoremap a gg0vG$ + xnoremap a gg0vG$ + xnoremap 4k + xnoremap 4j + xnoremap + xnoremap + xnoremap gg0 + xnoremap G$ + xnoremap $ + xnoremap ^ + nnoremap / ':noh:echo "Search results have been cleared"' + + "folds + nnoremap za + nnoremap 'zn:echo "all folds have been opened"' + nnoremap = 'zn:echo "all folds have been opened"' + nnoremap + 'zn:echo "all folds have been opened"' + nnoremap 'zN:echo "all opened folds have been closed"' + nnoremap - 'zN:echo "all opened folds have been closed"' + nnoremap _ 'zN:echo "all opened folds have been closed"' + nnoremap 0 'zX:echo "all folds have been reset"' + "}}} "}}}