From fe9f7f011e91fa4cf2bfecbf408688d4223f437d Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sat, 22 Dec 2018 13:19:24 +0100 Subject: Add generalized motion --- bin/.local/bin/keyboard | 3 +++ tmux/.tmux.conf | 1 + vifm/.config/vifm/vifmrc | 1 + vim/.vim/after/plugin/generalized_motion.vim | 6 +++++- vim/.vimrc | 2 +- xdg-open/.config/mimeapps.list | 1 + zathura/.config/zathura/zathurarc | 2 +- 7 files changed, 13 insertions(+), 3 deletions(-) diff --git a/bin/.local/bin/keyboard b/bin/.local/bin/keyboard index 11b13d1..b3fdfe2 100755 --- a/bin/.local/bin/keyboard +++ b/bin/.local/bin/keyboard @@ -26,6 +26,9 @@ xmodmap -e "keysym Caps_Lock = Control_L Control_L" xmodmap -e "add Control = Control_L" xcape -e 'Control_L=Escape' +# Make Shift (Shift, :) +xcape -e 'Shift_L=Shift_L|semicolon' + # Make Tab (Alt_L, Tab) xmodmap -e "keysym Tab = Alt_L" xmodmap -e "keycode any = Tab" diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index e250d1e..c268025 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -3,6 +3,7 @@ unbind r bind r source-file ~/.tmux.conf bind s send-prefix +bind C-s send-prefix bind C-n next-window bind C-p previous-window bind -n C-Left previous-window diff --git a/vifm/.config/vifm/vifmrc b/vifm/.config/vifm/vifmrc index a32e4eb..0ef0c26 100644 --- a/vifm/.config/vifm/vifmrc +++ b/vifm/.config/vifm/vifmrc @@ -21,6 +21,7 @@ command! backup !cp -r %f %f.bak " Mappings nnoremap s :shell nnoremap w :view +nnoremap x :!xdg-open %f nnoremap o :file nnoremap b :marks nnoremap gm :bmark diff --git a/vim/.vim/after/plugin/generalized_motion.vim b/vim/.vim/after/plugin/generalized_motion.vim index 87ea9ed..112016c 100644 --- a/vim/.vim/after/plugin/generalized_motion.vim +++ b/vim/.vim/after/plugin/generalized_motion.vim @@ -1,4 +1,8 @@ "" More general ; {{{1 +" if exists('g:loaded_sneak_plugin') + +" endif + let g:generalized_motion = "f" function! Generalized_motion(...) if a:0 > 0 @@ -20,7 +24,7 @@ function! Generalized_motion(...) call feedkeys(';', 'n') endtry endfunction -for mapping in ['f', 't', ']q', '[q', ']a', '[a', ']f', '[f', ']b', '[b'] +for mapping in ['f', 't', 's', ']q', '[q', ']a', '[a', ']f', '[f', ']b', '[b'] exe "nmap " mapping ":call Generalized_motion('".mapping."')" endfor nnoremap ; :call Generalized_motion() diff --git a/vim/.vimrc b/vim/.vimrc index dcb7149..e2f6104 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -158,10 +158,10 @@ nnoremap ,pc :PlugClean " Remembrall if &runtimepath =~ 'remembrall' + let g:remembrall_auto_accept = 0 nnoremap ,p Remembrall(',p') nnoremap ,, :call remembrall#remind('n', '') nnoremap y :call remembrall#remind('n', 'y') - augroup remembrall autocmd FileType tex nnoremap ,l Remembrall(',l') augroup END diff --git a/xdg-open/.config/mimeapps.list b/xdg-open/.config/mimeapps.list index e7956c6..a8d5c75 100644 --- a/xdg-open/.config/mimeapps.list +++ b/xdg-open/.config/mimeapps.list @@ -6,6 +6,7 @@ # To set default # mimeopen -d [Default Applications] +audio/mpeg=mpv.desktop; text/plain=nvim.desktop; image/jpeg=feh.desktop; image/png=feh.desktop; diff --git a/zathura/.config/zathura/zathurarc b/zathura/.config/zathura/zathurarc index 8289c6e..f80d590 100644 --- a/zathura/.config/zathura/zathurarc +++ b/zathura/.config/zathura/zathurarc @@ -2,4 +2,4 @@ map scroll down map scroll up set font "monospace normal 12" -map H feedkeys ":exec sh -c \"cat ~/.local/share/zathura/history | grep -Po '\[\K[^\]]*' | tail -10 | dmenu | xargs zathura\"" +map H feedkeys ":exec sh -c \"cat ~/.local/share/zathura/history | grep -Po '\[\K[^\]]*' | tail -30 | dmenu | xargs zathura\"" -- cgit v1.2.3