diff options
-rw-r--r-- | vim/autoload/vimrc.vim | 6 | ||||
-rw-r--r-- | vim/vimrc | 4 |
2 files changed, 2 insertions, 8 deletions
diff --git a/vim/autoload/vimrc.vim b/vim/autoload/vimrc.vim deleted file mode 100644 index 1af59c07..00000000 --- a/vim/autoload/vimrc.vim +++ /dev/null @@ -1,6 +0,0 @@ -" Run some normal-mode keystrokes without jumping around -function! vimrc#Anchor(keys) abort - let view = winsaveview() - execute 'normal! '.a:keys - call winrestview(view) -endfunction @@ -418,9 +418,9 @@ nnoremap <Leader>y :<C-U>registers<CR> nnoremap <Leader>z :<C-U>setlocal spelllang=en_nz<CR> " \= runs the whole buffer through =, preserving position -nnoremap <Leader>= :<C-U>call vimrc#Anchor('1G=G')<CR> +nnoremap <Leader>= m`1G=G`` " \+ runs the whole buffer through gq, preserving position -nnoremap <Leader>+ :<C-U>call vimrc#Anchor('1GgqG')<CR> +nnoremap <Leader>+ m`1GgqG`` " \. runs the configured make program into the location list nnoremap <Leader>. :<C-U>lmake!<CR> |