From 319b2b33b86414ec4a3ca18d0b6cf543f5443726 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Thu, 6 Dec 2018 11:07:04 +0000 Subject: [PATCH] Adds left and right arrow key action and adds compile / open shortcuts --- .vimrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.vimrc b/.vimrc index e49a388..63104cc 100644 --- a/.vimrc +++ b/.vimrc @@ -348,6 +348,16 @@ nnoremap ddkP nnoremap xp nnoremap xhP +" Move lines up/down/left/right using arrow keys +nnoremap ddp +nnoremap ddkP +nnoremap xp +nnoremap xhP + +" Compiles documents +nnoremap cc :w! \| !compiler % +nnoremap co :!opout % + " Activate spelling nnoremap :set spell!