diff --git a/vimrc.local b/vimrc.local index 685c3a5..3dc3d00 100644 --- a/vimrc.local +++ b/vimrc.local @@ -26,9 +26,6 @@ colorscheme base16-ocean "Pymode stuff let g:pymode_folding = 0 -"Easymotion prefix -map (easymotion-prefix) - " turn hybrid line numbers off ":set nonumber norelativenumber ":set nonu nornu @@ -46,12 +43,12 @@ map (easymotion-prefix) "CtrlP bindings nmap d :CtrlPBuffer -nmap a :CtrlPMRU -nmap l :CtrlPLine +nmap m :CtrlPMRU +nmap L :CtrlPLine "NERDTree bingings nnoremap :NERDTreeToggle -nnoremap t :NERDTreeToggle +nnoremap t :NERDTreeFind nnoremap :NERDTreeFocus "autocmd vimenter * NERDTree @@ -69,7 +66,6 @@ nnoremap :tabnext nnoremap :buffers:buffer noremap noremap -noremap o ok nmap p noremap y w noremap h @@ -77,9 +73,23 @@ noremap l noremap j noremap k nnoremap z :wa -nnoremap - :w set so=10 +"Easymotion +map (easymotion-prefix) +map / (easymotion-sn) +omap / (easymotion-tn) +map n (easymotion-next) +map N (easymotion-prev) +map ls (easymotion-sl) +map lf (easymotion-bd-fl) +map lw (easymotion-bd-wl) +map ol (easymotion-overwin-line) +map ow (easymotion-overwin-w) +nmap of (easymotion-overwin-f2) +nmap aw (easymotion-bd-w) +nmap al (easymotion-bd-jk) + "Copy and pasting vmap "+y nmap "+p @@ -175,10 +185,27 @@ let vimsyn_folding='af' " Vim script let xml_syntax_folding=1 " XML "ctrlp and buffgator custom stuff +let g:ctrlp_switch_buffer = 'E' let g:ctrlp_custom_ignore = { - \ 'dir': '\v[\/](\.(git|hg|svn)|\_site)$', + \ 'dir': '\v[\/](\.(git|hg|svn)|\_site|node_modules)$', \ 'file': '\v\.(exe|so|dll|class|png|jpg|jpeg)$', \} let g:ctrlp_working_path_mode = 'r' " Use the nearest .git directory as the cwd let g:buffergator_viewport_split_policy = 'R' " Use the right side of the screen let g:buffergator_suppress_keymaps = 1 " I want my own keymappings... + +"Programming specific +"let g:auto_save_postsave_hook = 'silent !npx browser-sync reload &' +" let g:go_def_mode='gopls' +" let g:go_info_mode='gopls' + +"NNN +"let g:nnn#layout = { 'left': '~20%' } " or right, up, down +let g:nnn#layout = { 'window': { 'width': 0.9, 'height': 0.6, 'highlight': 'Debug' } } +let g:nnn#action = { + \ '': 'tab split', + \ '': 'split', + \ '': 'vsplit' } +let $NNN_BMS='h:~/;c:~/.config;n:~/Notes;' +let $NNN_PLUG='p:preview-tui;c:x2sel;i:imgview;s:tmspawn' +"let $NNN_FIFO=/tmp/nnn.fifo diff --git a/xbindkeysrc b/xbindkeysrc index 0404125..5b46916 100644 --- a/xbindkeysrc +++ b/xbindkeysrc @@ -14,8 +14,11 @@ "pactl set-source-mute @DEFAULT_SOURCE@ toggle" Mod4 + F9 -"app-launch" +"prompt launch" Mod4 + g -"do-action" - Mod4 + e +"prompt action" + Mod4 + a + +"prompt ddg" + Mod4 + r