From 19bc2fbbf58956014ca143de380c181fcd89248b Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sat, 7 Feb 2026 00:16:01 +0100 Subject: Update --- .shenanigans.sh | 2 +- .tmux.conf | 2 ++ .vimrc | 17 +++++++++++++---- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.shenanigans.sh b/.shenanigans.sh index be3e7d3..ab8d5ab 100755 --- a/.shenanigans.sh +++ b/.shenanigans.sh @@ -1,7 +1,7 @@ # Software list (Void Linux): # void-repo-nonfree void-repo-multilib void-repo-multilib-nonfree # file-roller xfce4-plugins thunar-archive-plugin -# lm_sensors conky maim xlockmore picom cwm xclip xsetroot xdotool +# lm_sensors conky maim xlockmore picom cwm xclip xsel xsetroot xdotool # xss-lock wmctrl zip mc htop entr cifs-utils rsync jq rofi st fd # clang clang-tools-extra vim git curl tmux hstr tree make cmake gdb # nvtop ctags stow newsboat mpv rsync python3-pipx lazygit diff --git a/.tmux.conf b/.tmux.conf index 6d060f8..a4996f0 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -17,6 +17,8 @@ set -g status-bg '#222222' set -g status-fg '#ffffff' set -g window-status-current-format "#[fg=#ffffff]#[bg=#000000]#[fg=#ffffff]#[bg=#000000] #I:#W #[fg=#ffffff]#[bg=#000000]" +bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xsel -i --clipboard" + bind-key Up select-pane -U bind-key Down select-pane -D bind-key Left select-pane -L diff --git a/.vimrc b/.vimrc index 6b08d02..1fc7921 100644 --- a/.vimrc +++ b/.vimrc @@ -12,10 +12,17 @@ call plug#end() set encoding=utf8 spelllang=en_us laststatus=2 tabstop=4 shiftwidth=4 set number autoindent cursorline ignorecase hlsearch incsearch signcolumn=yes set hidden nowrap nobackup noswapfile noundofile autoread updatetime=300 -set backspace=indent,eol,start completeopt=menuone path+=** +set backspace=indent,eol,start completeopt=menuone path+=** +set foldmethod=syntax foldlevel=99 foldopen= lazyredraw set wildignore+=*/.git/*,*/.hg/*,*/.svn/*,*/vendor,tags,*.o,*.a,*.so +set grepprg=rg\ --vimgrep\ --no-heading\ --smart-case colorscheme wildcharm +if executable('rg') + set grepprg=rg\ --vimgrep\ --smart-case + set grepformat=%f:%l:%c:%m +endif + nnoremap :bnext nnoremap :bprevious nnoremap :copen @@ -28,15 +35,17 @@ nnoremap d :bd nnoremap t :term nnoremap q :nohlsearch nnoremap e :ALEPopulateQuickfix:sleep 100m:copen -nnoremap w :vimgrep //gj **/*:copenx +" nnoremap w :vimgrep //gj **/*:copen + +nnoremap w :silent! grep! \| cwindow \| redraw! + nmap gr :ALEFindReferences -quickfix:sleep 100m:copen nmap gd :ALEGoToDefinition nmap re :ALERename -" let g:ctrlp_use_caching = 0 +let g:ctrlp_use_caching = 0 " let g:ctrlp_working_path_mode = '' - let g:ctrlp_working_path_mode = 'ra' let g:ale_hover_to_floating_preview = 1 let g:ale_detail_to_floating_preview = 1 -- cgit v1.2.3