ghostty conf
This commit is contained in:
@@ -9,7 +9,11 @@ keybind = ctrl+,=unbind
|
|||||||
keybind = shift+home=text:\x1b[1;2H
|
keybind = shift+home=text:\x1b[1;2H
|
||||||
keybind = shift+end=text:\x1b[1;2F
|
keybind = shift+end=text:\x1b[1;2F
|
||||||
keybind = shift+backspace=text:\x1b[127;2u
|
keybind = shift+backspace=text:\x1b[127;2u
|
||||||
|
|
||||||
|
# special case ALT+BS => SUPER+ALT+BS
|
||||||
keybind = alt+backspace=text:\x1b[127;11u
|
keybind = alt+backspace=text:\x1b[127;11u
|
||||||
|
# keybind = alt+backspace=text:\x1b[127;3u # kitty ALT+BS
|
||||||
|
# keybind = alt+backspace=text:\x1b\x7f # xterm ALT+BS
|
||||||
|
|
||||||
# Mouse Wheel speed
|
# Mouse Wheel speed
|
||||||
mouse-scroll-multiplier = 1
|
mouse-scroll-multiplier = 1
|
||||||
+17
-9
@@ -15,13 +15,13 @@ nnoremap <C-Down> }
|
|||||||
|
|
||||||
" Delete Words
|
" Delete Words
|
||||||
inoremap <C-BS> db
|
inoremap <C-BS> db
|
||||||
inoremap <A-BS> d0
|
inoremap <A-BS> d^
|
||||||
inoremap <C-Del> dw
|
inoremap <C-Del> dw
|
||||||
inoremap <A-Del> d$
|
inoremap <A-Del> d$
|
||||||
inoremap <S-BS> ddk
|
inoremap <S-BS> ddk
|
||||||
inoremap <S-Del> dd
|
inoremap <S-Del> dd
|
||||||
nnoremap <C-BS> db
|
nnoremap <C-BS> db
|
||||||
nnoremap <A-BS> d0
|
nnoremap <A-BS> d^
|
||||||
nnoremap <C-Del> dw
|
nnoremap <C-Del> dw
|
||||||
nnoremap <A-Del> d$
|
nnoremap <A-Del> d$
|
||||||
|
|
||||||
@@ -75,15 +75,23 @@ vnoremap <A-j> :m '>+1<CR>gv=gv
|
|||||||
vnoremap <A-k> :m '<-2<CR>gv=gv
|
vnoremap <A-k> :m '<-2<CR>gv=gv
|
||||||
|
|
||||||
" Undo/Redo
|
" Undo/Redo
|
||||||
inoremap <C-U> <Esc>g-i
|
autocmd VimEnter * inoremap <C-u> <C-o>g-
|
||||||
nnoremap <C-U> g-
|
inoremap <A-u> <C-o>g+
|
||||||
inoremap <A-u> <Esc>g+a
|
inoremap <C-A-u> <C-o>:earlier 1f<CR>
|
||||||
|
nnoremap <C-u> g-
|
||||||
nnoremap <A-u> g+
|
nnoremap <A-u> g+
|
||||||
nnoremap <C-A-u> :earlier 1f<CR>
|
nnoremap <C-A-u> :earlier 1f<CR>
|
||||||
|
|
||||||
" True Ctrl+Backspace in terminal
|
" Terminal <Ctrl+Backspace>
|
||||||
tnoremap <C-BS> <C-h>
|
tnoremap <C-BS> <C-h>
|
||||||
" Readline Alt+Backspace in terminal and insert modes
|
|
||||||
tnoremap ÿ <A-BS>
|
" <Super+Alt+Backspace> means <Alt+Backspace>
|
||||||
inoremap ÿ <C-o>d^
|
imap <M-D-BS> <A-BS>
|
||||||
|
nmap <M-D-BS> <A-BS>
|
||||||
|
tnoremap <M-D-BS> <A-BS>
|
||||||
|
|
||||||
|
" Ghostty <Super+Alt+Backspace> <=> ÿ means <ALT+Backspace>
|
||||||
|
nmap ÿ <A-BS>
|
||||||
|
imap ÿ <A-BS>
|
||||||
|
tnoremap ÿ <A-BS>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user