X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/3dd7b4146a71f6f1ba8c56c589a6490221e083bc..e5786051c8a859ecadb86d63c4424fac58472b07:/.vimrc?ds=sidebyside diff --git a/.vimrc b/.vimrc index 5a174bd..59409c3 100644 --- a/.vimrc +++ b/.vimrc @@ -1448,10 +1448,6 @@ colorscheme madduck autocmd BufNewFile,BufRead /etc/logcheck/*.d*/* set tw=0 autocmd BufNewFile,BufRead /home/madduck/debian/pkg/logcheck/*/rulefiles/linux/*.d*/* set tw=0 -" display the git-diff --cached in window below commit -" assumes nosplitbelow set. Might want to use wincmd p otherwise -autocmd FileType gitcommit DiffGitCached | wincmd J - " jump to last known position in file (:he last-position-jump) autocmd BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g'\"zz" | endif @@ -1467,10 +1463,12 @@ let s:cpo_save=&cpo set cpo&vim " treat wrapped lines normally -map k gk -map gk -map j gj -map gj +nnoremap k gk +nnoremap gk +inoremap gk +nnoremap j gj +nnoremap gj +inoremap gj " this isn't windows, screw the F1->help key map