November update

This commit is contained in:
Augusto Gunsch 2022-11-18 09:42:17 +01:00
parent d16e33d223
commit 38059f7334
5 changed files with 26 additions and 16 deletions

View File

@ -23,14 +23,18 @@ hi FoldColumn ctermbg=233 ctermfg=247
let mapleader = " "
let maplocalleader = ","
nnoremap <silent> <F12> <cmd>set et<cr><cmd>set ts=4<cr><cmd>set sw=4<cr>
nnoremap <silent> <F11> <cmd>set noet<cr>
nnoremap <silent> <F2> <cmd>ToggleDiagOff<cr>:Gdiffsplit<cr>
nnoremap <silent> <F3> <cmd>%!sed 's/[ \t]*$//'<cr>
nnoremap <silent> <F4> <cmd>%s/"/'/g<cr>
nnoremap <silent> <F5> <cmd>ToggleDiag<cr>
nnoremap <silent> <F6> <cmd>%!expand -t4<cr><cmd>%!sed 's/[ \t]*$//'<cr>
nnoremap <silent> <F7> <cmd>%!unexpand -t4<cr><cmd>%!sed 's/[ \t]*$//'<cr>
nnoremap <silent> <F8> <cmd>TagbarToggle<CR>
nnoremap <silent> <F9> <cmd>%s/\([( -]\)0\.\(\d\)/\1.\2/gc<CR>
nnoremap <silent> <F12> <cmd>set et<cr><cmd>set ts=4<cr><cmd>set sw=4<cr>
nnoremap <silent> <F11> <cmd>set noet<cr>
nnoremap <silent> <C-n> <cmd>NERDTreeToggle<CR>
nnoremap <silent> <C-p> <cmd>let @+=expand("%")<cr><cmd>echo "Copied relative file path to clipboard."<cr>
nnoremap <silent> <leader>ev <cmd>tabnew $MYVIMRC<cr>
nnoremap <silent> <leader>sv <cmd>source $MYVIMRC<cr>

View File

@ -1,4 +1,4 @@
export PATH="$HOME/.local/bin:$HOME/.cargo/bin:$PATH"
export PATH="$HOME/.local/bin:$HOME/.cargo/bin:$HOME/.config/composer/vendor/bin:$PATH"
export EDITOR="/usr/local/bin/nvim"
# vim
@ -13,13 +13,22 @@ alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ......="cd ../../../../.."
alias .......="cd ../../../../../.."
alias ........="cd ../../../../../../.."
alias .........="cd ../../../../../../../.."
alias ..........="cd ../../../../../../../../.."
alias ...........="cd ../../../../../../../../../.."
alias ............="cd ../../../../../../../../../../.."
alias .............="cd ../../../../../../../../../../../.."
alias ..............="cd ../../../../../../../../../../../../.."
alias ...............="cd ../../../../../../../../../../../../../.."
alias ................="cd ../../../../../../../../../../../../../../.."
# improved reset and clear
alias reset="tput reset"
alias clear="tput reset"
# better du
alias du="du -hd 1"
alias du="du -ha"
# better feh
alias feh="feh -."

View File

@ -11,9 +11,6 @@ export PS1='\e[1m\e[38;5;63m[\e[38;5;68m\u@\H \e[38;5;15m\w\e[38;5;63m]$\e[m '
# aliases:
source ~/.aliases
# reload with .
alias .="source ~/.bashrc"
if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
exec startx
fi

View File

@ -1,4 +1,5 @@
# FIXES
# enable mouse support
set -g mouse on
####################
### KEY BINDINGS ###
@ -57,18 +58,20 @@ set -g pane-active-border-style 'bg=colour0 fg=colour9'
# statusbar
set -g status-position bottom
set -g status-justify left
set -g status-style 'bg=colour234 fg=colour255'
set -g status-left '#[fg=colour255,bg=colour234]  '
set -g status-right '#[bg=colour234,fg=colour27]#[fg=colour255,bg=colour27]  %d/%m  %H:%M '
set -g status-style 'bg=colour233 fg=colour255'
set -g status-left '#[fg=colour249,bg=colour237]  tmux #[bg=colour233,fg=colour237]'
set -g status-right '#[bg=colour233,fg=colour21]#[fg=colour255,bg=colour21]  %d/%m  %H:%M '
set -g status-right-length 50
set -g status-left-length 20
setw -g window-status-current-format '#[fg=colour234,bg=colour27]#[bg=colour27,fg=colour184] #I#[fg=colour255]-#W #[bg=colour234,fg=colour27]'
setw -g window-status-current-format '#[fg=colour233,bg=colour21]#[bg=colour21,fg=colour184] #I#[fg=colour255]-#W #[bg=colour233,fg=colour21]'
setw -g window-status-format '#[fg=colour234,bg=colour237]#[bg=colour237,fg=colour184] #I#[fg=colour255]-#W #[bg=colour234,fg=colour237]'
setw -g window-status-format '#[fg=colour233,bg=colour237]#[bg=colour237,fg=colour184] #I#[fg=colour249]-#W #[bg=colour233,fg=colour237]'
setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold'
setw -g window-status-separator ''
# messages
set -g message-style 'bg=colour27 fg=white'

View File

@ -30,9 +30,6 @@ export LS_COLORS='di=1;94:ex=4;92:ln=3;96'
# aliases:
source ~/.aliases
# reload with .
alias .="source ~/.zshrc"
if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
exec startx
fi