commit 62ce3508d7b134d90baddb8801ee7bdffe937afe
parent d674ac1d9c1cf1c97de3cab82364b83a468365d1
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Sat, 3 Aug 2019 22:50:03 +0200
vim: more useful mappings
Former-commit-id: 3d8845ea95f19153a158da631ea26734b3a5fede
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/vim/vimrc b/vim/vimrc
@@ -623,7 +623,11 @@ nnoremap <leader>p "*p
nnoremap <leader>P "*P
nnoremap <leader>n "_
vnoremap <leader>n "_
-nnoremap <leader>yy yg_
+nnoremap <leader>yy "*yg_
+
+" Insert lines without moving cursor and going into insert mode
+nnoremap <leader>o m`o<esc>``
+nnoremap <leader>O m`O<esc>``
" This should be a plugin but for now...
" time (hh:mm-hh:mm) to duration in hours