diff --git a/vim/plugin/shame.vim b/vim/plugin/shame.vim index 1eb2419..ce38bed 100644 --- a/vim/plugin/shame.vim +++ b/vim/plugin/shame.vim @@ -318,7 +318,7 @@ function! MatchingLinesDict(pattern) return list endfunc com! -nargs=1 List call setloclist(0, MatchingLinesDict()) - \ | lopen + \ | lopen function! LocationAddLineCol(filename, lnum, text, col) call setloclist(0, [{'filename': a:filename, 'lnum': a:lnum, 'desc': a:text, 'col': a:col}], 'a') @@ -515,12 +515,13 @@ nnoremap n :next:args nnoremap p :previous:args let g:jmp_dist = 8 -map :exec "normal ".g:jmp_dist."j" -map :exec "normal ".g:jmp_dist."k" +exec 'noremap gj '.g:jmp_dist.'j' +exec 'noremap gk '.g:jmp_dist.'k' + +nnoremap ddkP +nnoremap ddp nnoremap b nnoremap e -" Yes, not 'noremap', do whatever is mapped to J and K assuming -" it is some sort of custom up-down motion, but g:jmp_dist times " --- Marks --- nnoremap m :marks abcdefghijklmnopqrstuvwxyz @@ -542,13 +543,6 @@ nnoremap = " --- Text --- nnoremap U ~h -" --- MOVEMENT --- -" noremap j gj -" noremap k gk - -noremap gj j -noremap gk k - " --- CLIPBOARD --- nnoremap Y y$