1
0
mirror of https://github.com/chylex/dotfiles.git synced 2024-10-18 02:42:50 +02:00

Compare commits

...

2 Commits

Author SHA1 Message Date
2ac125eb0a
Update .vimrc & .ideavimrc (new bindings, camel humps) 2023-01-09 06:16:41 +01:00
98c756df22
Update .tmux.conf (vi mode) 2023-01-09 06:05:17 +01:00
3 changed files with 25 additions and 2 deletions

View File

@ -39,9 +39,14 @@ map í 9
map é 0 map é 0
" Move some commands closer on Czech keyboard layout " Move some commands closer on Czech keyboard layout
nnoremap ú @@
noremap ů ; noremap ů ;
map § % map § %
" Navigate to end of previous word
nnoremap <A-b> ge
nnoremap <A-S-b> gE
" Navigate to indents " Navigate to indents
nnoremap J + nnoremap J +
vnoremap J + vnoremap J +
@ -84,6 +89,9 @@ vnoremap < <gv
vnoremap > >gv vnoremap > >gv
vnoremap = =gv vnoremap = =gv
" Turn capital letters into opposite actions
" nnoremap U :redo<CR> " Handled by custom version of IdeaVim
" Reselect pasted text " Reselect pasted text
nnoremap gp `[v`] nnoremap gp `[v`]
@ -91,8 +99,6 @@ nnoremap gp `[v`]
xmap p gr xmap p gr
" Rebind commands that will be repurposed " Rebind commands that will be repurposed
nnoremap <A-b> ge
nnoremap <A-S-b> gE
nnoremap GG G nnoremap GG G
nnoremap dG dG nnoremap dG dG
nnoremap cG cG nnoremap cG cG

View File

@ -1,6 +1,8 @@
set -g mouse on set -g mouse on
set -g history-limit 50000 set -g history-limit 50000
set-window-option -g mode-keys vi
bind -Tcopy-mode MouseDragEnd1Pane send -X copy-selection-no-clear bind -Tcopy-mode MouseDragEnd1Pane send -X copy-selection-no-clear
bind '"' split-window -c "#{pane_current_path}" bind '"' split-window -c "#{pane_current_path}"

15
.vimrc
View File

@ -44,15 +44,30 @@ map í 9
map é 0 map é 0
" Move some commands closer on Czech keyboard layout " Move some commands closer on Czech keyboard layout
nnoremap ú @@
noremap ů ; noremap ů ;
map § % map § %
" Navigate to end of previous word
nnoremap <A-b> ge
nnoremap <A-S-b> gE
" Navigate to indents " Navigate to indents
nnoremap J + nnoremap J +
vnoremap J + vnoremap J +
nnoremap K - nnoremap K -
vnoremap K - vnoremap K -
" Navigate camel humps (https://github.com/vim-scripts/camelcasemotion)
map L <Plug>CamelCaseMotion_w
map H <Plug>CamelCaseMotion_b
" Edit camel humps (https://github.com/vim-scripts/camelcasemotion)
omap iL <Plug>CamelCaseMotion_iw
xmap iL <Plug>CamelCaseMotion_iw
omap iH <Plug>CamelCaseMotion_ib
xmap iH <Plug>CamelCaseMotion_ib
" Edit from cursor to start/end of parenthesized block " Edit from cursor to start/end of parenthesized block
nnoremap c) c]) nnoremap c) c])
nnoremap d) d]) nnoremap d) d])