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

Compare commits

..

No commits in common. "14aa43ede41b11f7c00fd146ff7c5bd7d9a774d6" and "4203b6e583e8535e216bdd8395df90c9a167d402" have entirely different histories.

2 changed files with 4 additions and 18 deletions

View File

@ -50,7 +50,6 @@ 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
@ -119,7 +118,7 @@ nnoremap D dd
xnoremap D dd xnoremap D dd
" Enter visual block mode " Enter visual block mode
map <A-v> <C-V> xnoremap v <C-V>
" Indent keeping selection " Indent keeping selection
xnoremap < <gv xnoremap < <gv

19
.vimrc
View File

@ -24,8 +24,6 @@ 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
@ -44,17 +42,6 @@ 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
@ -85,8 +72,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 <M-b> ge noremap <A-b> ge
noremap <M-S-b> gE noremap <A-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'
@ -107,7 +94,7 @@ nnoremap D dd
xnoremap D dd xnoremap D dd
" Enter visual block mode " Enter visual block mode
map <M-v> <C-v> xnoremap v <C-V>
" Indent keeping selection " Indent keeping selection
xnoremap < <gv xnoremap < <gv