From 0dc3ada5e50954284c892dccad1747a5c916b0c1 Mon Sep 17 00:00:00 2001 From: Johannes Stolp Date: Thu, 26 May 2016 00:30:32 +0200 Subject: Changed order of sourcing external files in .vimrc Added new keymaps added two xterm color shemes --- .vim/vimrc_files/colors.vim | 1 + .vim/vimrc_files/keymaps.vim | 69 +++++++++++++++++++++++++++----------------- 2 files changed, 44 insertions(+), 26 deletions(-) (limited to '.vim/vimrc_files') diff --git a/.vim/vimrc_files/colors.vim b/.vim/vimrc_files/colors.vim index 678e440..d20d871 100644 --- a/.vim/vimrc_files/colors.vim +++ b/.vim/vimrc_files/colors.vim @@ -1 +1,2 @@ hi x226_Yellow1 ctermfg=226 guifg=#ffff00 "rgb=255,255,0 +"hi x81_Light_Blue ctermfg=81 guifg=#ff0000 diff --git a/.vim/vimrc_files/keymaps.vim b/.vim/vimrc_files/keymaps.vim index 75dffca..7758cbf 100644 --- a/.vim/vimrc_files/keymaps.vim +++ b/.vim/vimrc_files/keymaps.vim @@ -1,26 +1,25 @@ -let ArrowDisableMessage = "Arrow Keys disabled! Better learn hjkl ;)" +"remap esc button +imap jj + + +"let ArrowDisableMessage = "Arrow Keys disabled! Better learn hjkl ;)" " Disable arrow keys -- train jklh -nnoremap :echo ArrowDisableMessage -nnoremap :echo ArrowDisableMessage -nnoremap :echo ArrowDisableMessage -nnoremap :echo ArrowDisableMessage - -vnoremap :echo ArrowDisableMessage -vnoremap :echo ArrowDisableMessage -vnoremap :echo ArrowDisableMessage -vnoremap :echo ArrowDisableMessage - -inoremap :echo ArrowDisableMessage -inoremap :echo ArrowDisableMessage -inoremap :echo ArrowDisableMessage -inoremap :echo ArrowDisableMessage - -" ctrl-jklm move to different splits -map j -map k -map l -map h +" nnoremap :echo ArrowDisableMessage +" nnoremap :echo ArrowDisableMessage +" nnoremap :echo ArrowDisableMessage +" nnoremap :echo ArrowDisableMessage +" +" vnoremap :echo ArrowDisableMessage +" vnoremap :echo ArrowDisableMessage +" vnoremap :echo ArrowDisableMessage +" vnoremap :echo ArrowDisableMessage +" +" inoremap :echo ArrowDisableMessage +" inoremap :echo ArrowDisableMessage +" inoremap :echo ArrowDisableMessage +" inoremap :echo ArrowDisableMessage + " ctrl-hjkl move in insert mode inoremap @@ -28,22 +27,40 @@ inoremap inoremap inoremap + " ctrl-jk movement in command window cnoremap cnoremap cnoremap cnoremap -" shift-hl change to left/right Tab -nnoremap :tabprev -nnoremap :tabnext + +" navigate between different splits +map j +map k +map l +map h +map j +map k +map l +map h + + +" navigate between different Tabs +nnoremap :tabprev +nnoremap :tabnext +nnoremap :tabprev +nnoremap :tabnext + " ctrl-ae jump to line start/end nnoremap 0 -nnoremap $d - +nnoremap $ inoremap 0 inoremap $ +vnoremap 0 +vnoremap $ + " Shortcut to toggle relative numbering mode nnoremap :call ToggleRelativeNumber() -- cgit v1.2.3