Skip to content

Commit

Permalink
fixed tmux + vim
Browse files Browse the repository at this point in the history
  • Loading branch information
ppalucki committed Nov 28, 2024
1 parent fe908a2 commit e3f1711
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -344,3 +344,6 @@ setw -g window-status-current-style reverse


#run-shell ~/work/tmux-resurrect/resurrect.tmux

# HOST NAME is long
status-left-length 20
3 changes: 3 additions & 0 deletions tmux.conf_2022
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@ bind C-l select-pane -R
# mouse
bind e setw synchronize-panes
set -g mouse
# The default is ‘[#S] ’
set -g status-left '[#h] '
set -g status-left-length 20
5 changes: 3 additions & 2 deletions vimrc_2022
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ command! -nargs=1 SS let @/ = '\V'.escape(<q-args>, '/\')|normal! /<C-R>/<CR>
" http://vim.wikia.com/wiki/Search_for_visually_selected_text
" vnoremap // y/<C-R>"<CR>"
vnoremap // y:SS <C-R>"<CR>
vnoremap <leader>f y:SS <C-R>"<cr>N

""" ------------ replace ---------------------
""" 1) Search (h) in multiple files
Expand All @@ -237,8 +238,8 @@ vnoremap // y:SS <C-R>"<CR>
""" 1) Search (h)
map <leader>h "ayiw:Ag! -- "<C-r>a"
vmap <leader>h "ay:Ag! -- "<C-r>a"
map <leader>H "ayiw:Ag! --all-types -- "<C-r>a"
vmap <leader>H "ay:Ag! --all-types -- "<C-r>a"
map <leader>H "ayiw:Ag! --all-types --skip-vcs-ignores -- "<C-r>a"
vmap <leader>H "ay:Ag! --all-types --skip-vcs-ignores -- "<C-r>a"

""" 2) Search and Replace (y) in single file
nmap <leader>y :%s///gc<left><left><left>
Expand Down
6 changes: 4 additions & 2 deletions zshrc_2022
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ setopt hist_ignore_all_dups
alias kaf="kubectl apply -f"
alias kg="kubectl get"
alias kbusybox="kubectl run --rm -i -t busybox --image=busybox --restart=Never"
alias knethost="kubectl run --rm -i -t nethost --image=nicolaka/netshoot --restart=Never"
alias knethost="kubectl run --rm -i -t nethost --image=nicolaka/netshoot --restart=Never --privileged"
alias busybox="docker run -ti --rm busybox"
alias nethost="docker run -ti --rm nicolaka/netshoot"
alias nethost="docker run -ti --rm nicolaka/netshoot --privileged"
alias tmuxz='tmux new-session /bin/zsh \; set default-shell /bin/zsh'
alias -g LS=' | less -S'
alias -g GG=' 2>&1 | grep'
Expand Down Expand Up @@ -192,3 +192,5 @@ echo ""
# replacement of reg
alias regctl="docker container run -i --rm --net host -v regctl-conf:/home/appuser/.regctl/ ghcr.io/regclient/regctl:latest"

# https://stackoverflow.com/questions/13166544/how-to-kill-all-background-processes-in-zsh
alias killbg='kill -KILL ${${(v)jobstates##*:*:}%=*}'

0 comments on commit e3f1711

Please sign in to comment.