1
0
mirror of https://github.com/chylex/dotfiles.git synced 2024-11-25 14:42:46 +01:00

Compare commits

...

2 Commits

2 changed files with 18 additions and 4 deletions

View File

@ -50,6 +50,7 @@ sethandler <A-L> a:vim
sethandler <A-N> a:vim sethandler <A-N> a:vim
sethandler <A-P> a:vim sethandler <A-P> a:vim
sethandler <A-S-B> a:vim sethandler <A-S-B> a:vim
sethandler <A-V> a:vim
sethandler <A-X> a:vim sethandler <A-X> a:vim
sethandler <C-D> a:vim sethandler <C-D> a:vim
sethandler <C-I> a:vim sethandler <C-I> a:vim
@ -118,7 +119,7 @@ nnoremap D dd
xnoremap D dd xnoremap D dd
" Enter visual block mode " Enter visual block mode
xnoremap v <C-V> map <A-v> <C-V>
" Indent keeping selection " Indent keeping selection
xnoremap < <gv xnoremap < <gv

19
.vimrc
View File

@ -24,6 +24,8 @@ set showmatch
set sidescrolloff=999 set sidescrolloff=999
set smartcase set smartcase
set tabstop=4 set tabstop=4
set ttimeout
set ttimeoutlen=50
set ttymouse=xterm2 set ttymouse=xterm2
set wildmenu set wildmenu
set wrap set wrap
@ -42,6 +44,17 @@ highlight IncSearch ctermfg=251 ctermbg=238
highlight Search ctermfg=251 ctermbg=238 highlight Search ctermfg=251 ctermbg=238
highlight Visual ctermfg=240 ctermbg=250 highlight Visual ctermfg=240 ctermbg=250
" Fix Alt mappings (https://github.com/vim/vim/issues/2588#issuecomment-697959290)
for ord in range(65, 90) + range(97, 122)
let char = nr2char(ord)
exec printf("set <m-%s>=\<esc>%s", char, char)
exec printf("tnoremap <silent> <m-%s> <esc>%s", char, char)
endfor
" Navigate editor tabs
noremap <M-h> gT
noremap <M-l> gt
" Map top row on Czech keyboard layout to digits " Map top row on Czech keyboard layout to digits
map + 1 map + 1
map ě 2 map ě 2
@ -72,8 +85,8 @@ omap iH <Plug>CamelCaseMotion_ib
xmap iH <Plug>CamelCaseMotion_ib xmap iH <Plug>CamelCaseMotion_ib
" Navigate to end of previous word " Navigate to end of previous word
noremap <A-b> ge noremap <M-b> ge
noremap <A-S-b> gE noremap <M-S-b> gE
" Navigate soft-wrapped lines " Navigate soft-wrapped lines
nnoremap <expr> j v:count ? 'j' : 'gj' nnoremap <expr> j v:count ? 'j' : 'gj'
@ -94,7 +107,7 @@ nnoremap D dd
xnoremap D dd xnoremap D dd
" Enter visual block mode " Enter visual block mode
xnoremap v <C-V> map <M-v> <C-v>
" Indent keeping selection " Indent keeping selection
xnoremap < <gv xnoremap < <gv