vim: Add Umlaute + sz and merge redundant bindings
Add bindings for typing Umlaute and sz. Merge redundant bindings that are bound in multiple modes.
This commit is contained in:
@@ -105,24 +105,27 @@ endif
|
|||||||
|
|
||||||
" Interact with the system clipboard
|
" Interact with the system clipboard
|
||||||
if (has('clipboard') || has('nvim'))
|
if (has('clipboard') || has('nvim'))
|
||||||
nnoremap <leader>y "+y
|
noremap <leader>y "+y
|
||||||
nnoremap <leader>d "+d
|
noremap <leader>d "+d
|
||||||
nnoremap <leader>p "+p
|
noremap <leader>p "+p
|
||||||
nnoremap <leader>P "+P
|
noremap <leader>P "+P
|
||||||
|
|
||||||
vnoremap <leader>y "+y
|
|
||||||
vnoremap <leader>d "+d
|
|
||||||
vnoremap <leader>p "+p
|
|
||||||
vnoremap <leader>P "+P
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Ctrl-Backspace should delete words in insert mode and on command-line.
|
" Ctrl-Backspace should delete words in insert mode and on command-line.
|
||||||
inoremap <C-H> <C-W>
|
noremap! <C-H> <C-W>
|
||||||
cnoremap <C-H> <C-W>
|
|
||||||
|
|
||||||
" Correct word with best/first suggestion.
|
" Correct word with best/first suggestion.
|
||||||
noremap <leader>c 1z=
|
noremap <leader>c 1z=
|
||||||
|
|
||||||
|
" Umlaute and sz
|
||||||
|
map! ae ä
|
||||||
|
map! Ae Ä
|
||||||
|
map! oe ö
|
||||||
|
map! Oe Ö
|
||||||
|
map! ue ü
|
||||||
|
map! Ue Ü
|
||||||
|
map! sz ß
|
||||||
|
|
||||||
" Aesthetics ###################################################################
|
" Aesthetics ###################################################################
|
||||||
" Use 24-bit (true-color) mode
|
" Use 24-bit (true-color) mode
|
||||||
if (has('termguicolors'))
|
if (has('termguicolors'))
|
||||||
|
|||||||
Reference in New Issue
Block a user