keybinds
This commit is contained in:
parent
df63c246ff
commit
2feac52b39
@ -47,6 +47,7 @@ set wildmode=list:longest,full
|
||||
set gdefault
|
||||
|
||||
" colors
|
||||
colorscheme default
|
||||
set t_Co=16
|
||||
set notermguicolors
|
||||
set t_RV= " bugfix
|
||||
|
@ -6,6 +6,16 @@ set vi-ins-mode-string \1\e[1 q\2
|
||||
set vi-cmd-mode-string \1\e[2 q\2
|
||||
#################################
|
||||
|
||||
############# new ###############
|
||||
set keymap vi-insert
|
||||
"\C-a":beginning-of-line
|
||||
"\C-e":end-of-line
|
||||
"\C-b":backward-char
|
||||
"\C-f":forward-char
|
||||
"\eb":backward-word
|
||||
"\ef":forward-word
|
||||
#################################
|
||||
|
||||
##### remap - colemak-dh #######
|
||||
|
||||
# n -> h
|
||||
@ -38,7 +48,7 @@ set keymap vi-command
|
||||
"\C-k":next-history
|
||||
# j -> e
|
||||
set keymap vi-insert
|
||||
"\C-e":self-insert
|
||||
"\C-j":self-insert
|
||||
set keymap vi-command
|
||||
"j":vi-end-word
|
||||
"J":vi-end-word
|
||||
|
@ -46,6 +46,31 @@ set wildmenu
|
||||
set wildmode=list:longest,full
|
||||
set gdefault
|
||||
|
||||
" colors
|
||||
colorscheme default
|
||||
set t_Co=16
|
||||
set notermguicolors
|
||||
set t_RV= " bugfix
|
||||
" new
|
||||
highlight LineNr ctermfg=5 ctermbg=none
|
||||
autocmd VimEnter * highlight SignColumn ctermbg=none
|
||||
" fg magenta (5) -> blue (4)
|
||||
highlight Title term=bold ctermfg=4 gui=bold
|
||||
highlight Special term=bold ctermfg=4
|
||||
highlight PreProc term=underline ctermfg=4
|
||||
highlight Underlined term=underline cterm=underline ctermfg=4 gui=underline
|
||||
" fg blue (4 or 12) -> magenta (5)
|
||||
highlight SpecialKey term=bold ctermfg=5
|
||||
highlight Directory term=bold ctermfg=5
|
||||
highlight Folded term=standout ctermfg=5 ctermbg=7
|
||||
highlight FoldColumn term=standout ctermfg=5 ctermbg=7
|
||||
highlight SignColumn term=standout ctermfg=5 ctermbg=7
|
||||
highlight Comment term=bold ctermfg=5
|
||||
highlight NonText term=bold ctermfg=5 gui=bold
|
||||
highlight DiffDelete term=bold ctermfg=5 ctermbg=14 gui=bold
|
||||
highlight Changed ctermfg=5
|
||||
" bg
|
||||
highlight SpellCap cterm=underline ctermfg=9 ctermbg=none gui=undercurl
|
||||
"###########################################
|
||||
|
||||
"############## file-specific ###############
|
||||
@ -93,6 +118,15 @@ noremap! <C-h> <C-o>
|
||||
|
||||
"#################################
|
||||
|
||||
"############### new keybinds ###############
|
||||
cnoremap <C-a> <Home>
|
||||
cnoremap <C-e> <End>
|
||||
cnoremap <C-b> <Left>
|
||||
cnoremap <C-f> <Right>
|
||||
cnoremap <M-b> <S-Left>
|
||||
cnoremap <M-f> <S-Right>
|
||||
"############################################
|
||||
|
||||
"####### custom commands #########
|
||||
" W - Save file as superuser
|
||||
command! W execute 'w !sudo tee % > /dev/null' <bar> edit!
|
||||
|
Loading…
Reference in New Issue
Block a user