Adds left and right arrow key action and adds compile / open shortcuts

This commit is contained in:
Jonathan Hodgson 2018-12-06 11:07:04 +00:00
parent f609ac5112
commit 319b2b33b8

10
.vimrc
View file

@ -348,6 +348,16 @@ nnoremap <Up> ddkP
nnoremap <Right> xp
nnoremap <Left> xhP
" Move lines up/down/left/right using arrow keys
nnoremap <Down> ddp
nnoremap <Up> ddkP
nnoremap <Right> xp
nnoremap <Left> xhP
" Compiles documents
nnoremap <leader>cc :w! \| !compiler <c-r>%<CR><CR>
nnoremap <leader>co :!opout <c-r>%<CR><CR>
" Activate spelling
nnoremap <F7> :set spell!<cr>