diff options
author | Johannes Stolp <jstolp@fr65zebu10.internal.synopsys.com> | 2016-05-26 00:30:32 +0200 |
---|---|---|
committer | Johannes Stolp <jstolp@fr65zebu10.internal.synopsys.com> | 2016-05-26 00:30:32 +0200 |
commit | 0dc3ada5e50954284c892dccad1747a5c916b0c1 (patch) | |
tree | f50e973aef527ab695144e3c7aa53ba18c2b7e6c /.vim/vimrc_files | |
parent | fa733214fb11be2e32f2630411bc250bd9e2c972 (diff) | |
download | dotfiles-0dc3ada5e50954284c892dccad1747a5c916b0c1.tar.gz dotfiles-0dc3ada5e50954284c892dccad1747a5c916b0c1.zip |
Changed order of sourcing external files in .vimrc
Added new keymaps
added two xterm color shemes
Diffstat (limited to '.vim/vimrc_files')
-rw-r--r-- | .vim/vimrc_files/colors.vim | 1 | ||||
-rw-r--r-- | .vim/vimrc_files/keymaps.vim | 69 |
2 files changed, 44 insertions, 26 deletions
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 <Esc> + + +"let ArrowDisableMessage = "Arrow Keys disabled! Better learn hjkl ;)" " Disable arrow keys -- train jklh -nnoremap <Left> :echo ArrowDisableMessage<CR> -nnoremap <Right> :echo ArrowDisableMessage<CR> -nnoremap <Up> :echo ArrowDisableMessage<CR> -nnoremap <Down> :echo ArrowDisableMessage<CR> - -vnoremap <Left> :<c-u>echo ArrowDisableMessage<CR> -vnoremap <Right> :<c-u>echo ArrowDisableMessage<CR> -vnoremap <Up> :<c-u>echo ArrowDisableMessage<CR> -vnoremap <Down> :<c-u>echo ArrowDisableMessage<CR> - -inoremap <Left> <c-o>:echo ArrowDisableMessage<CR> -inoremap <Right> <c-o>:echo ArrowDisableMessage<CR> -inoremap <Up> <c-o>:echo ArrowDisableMessage<CR> -inoremap <Down> <c-o>:echo ArrowDisableMessage<CR> - -" ctrl-jklm move to different splits -map <c-j> <c-w>j -map <c-k> <c-w>k -map <c-l> <c-w>l -map <c-h> <c-w>h +" nnoremap <Left> :echo ArrowDisableMessage<CR> +" nnoremap <Right> :echo ArrowDisableMessage<CR> +" nnoremap <Up> :echo ArrowDisableMessage<CR> +" nnoremap <Down> :echo ArrowDisableMessage<CR> +" +" vnoremap <Left> :<c-u>echo ArrowDisableMessage<CR> +" vnoremap <Right> :<c-u>echo ArrowDisableMessage<CR> +" vnoremap <Up> :<c-u>echo ArrowDisableMessage<CR> +" vnoremap <Down> :<c-u>echo ArrowDisableMessage<CR> +" +" inoremap <Left> <c-o>:echo ArrowDisableMessage<CR> +" inoremap <Right> <c-o>:echo ArrowDisableMessage<CR> +" inoremap <Up> <c-o>:echo ArrowDisableMessage<CR> +" inoremap <Down> <c-o>:echo ArrowDisableMessage<CR> + " ctrl-hjkl move in insert mode inoremap <c-h> <Left> @@ -28,22 +27,40 @@ inoremap <c-j> <Down> inoremap <c-k> <Up> inoremap <c-l> <Right> + " ctrl-jk movement in command window cnoremap <c-h> <Left> cnoremap <c-j> <Down> cnoremap <c-k> <Up> cnoremap <c-l> <Right> -" shift-hl change to left/right Tab -nnoremap <s-h> :tabprev<CR> -nnoremap <s-l> :tabnext<CR> + +" navigate between different splits +map <c-Down> <c-w>j +map <c-Up> <c-w>k +map <c-Right> <c-w>l +map <c-Left> <c-w>h +map <c-j> <c-w>j +map <c-k> <c-w>k +map <c-l> <c-w>l +map <c-h> <c-w>h + + +" navigate between different Tabs +nnoremap <S-Left> :tabprev<CR> +nnoremap <S-Right> :tabnext<CR> +nnoremap <S-h> :tabprev<CR> +nnoremap <S-l> :tabnext<CR> + " ctrl-ae jump to line start/end nnoremap <c-a> 0 -nnoremap <c-e> $d - +nnoremap <c-e> $ inoremap <c-a> <c-o>0 inoremap <c-e> <c-o>$ +vnoremap <c-a> 0 +vnoremap <c-e> $ + " Shortcut to toggle relative numbering mode nnoremap <c-n> :call ToggleRelativeNumber()<CR> |