diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 36ab72e..c40391e 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -75,7 +75,9 @@ alias q='exit' alias la='ls -laGh --color' alias ls='ls --color' alias rm='rm -i' -alias zrc='nano $ZDOTDIR/.zshrc' +alias vim='vim --servername VIM' +alias svim='sudoedit' +alias zrc='$EDITOR $ZDOTDIR/.zshrc && source $ZDOTDIR/.zshrc' alias lzrc='source $ZDOTDIR/.zshrc' alias fuck='sudo $(fc -ln -1)' @@ -111,14 +113,9 @@ alias nw="$HOME/.scripts/network.sh" alias ltx="$HOME/.scripts/latex.sh" alias vimplugin="$HOME/.scripts/vimplugin.sh" -# Fun +# Other alias weather="curl -s 'http://wttr.in/Dordrecht?q&n&p' | head -n -3" -spurdo() { - sed "s/kek/geg/gI;s/epic/ebin/gI;s/america/clapistan/gI;s/right/rite/gI;s/your/ur/gI;s/\./ :DD/gI;s/'//gI;s/,/XDD/gI;s/wh/w/gI;s/th/d/gI;s/af/ab/gI;s/ap/ab/gI;s/ca/ga/gI;s/ck/gg/gI;s/co/go/gI;s/ev/eb/gI;s/ex/egz/gI;s/et/ed/gI;s/iv/ib/gI;s/it/id/gI;s/ke/ge/gI;s/nt/nd/gI;s/op/ob/gI;s/ot/od/gI;s/po/bo/gI;s/pe/be/gI;s/pi/bi/gI;s/up/ub/gI;s/va/ba/gI;s/ck/gg/gI;s/cr/gr/gI;s/kn/gn/gI;s/lt/ld/gI;s/mm/m/gI;s/nt/dn/gI;s/pr/br/gI;s/ts/dz/gI;s/tr/dr/gI;s/bs/bz/gI;s/ds/dz/gI;s/es/es/gI;s/fs/fz/gI;s/gs/gz/gI;s/ is/iz/gI;s/as/az/gI;s/ls/lz/gI;s/ms/mz/gI;s/ns/nz/gI;s/rs/rz/gI;s/ss/sz/gI;s/ts/tz/gI;s/us/uz/gI;s/ws/wz/gI;s/ys/yz/gI;s/alk/olk/gI;s/ing/ign/gI;s/ic/ig/gI;s/ng/nk/gI" \ - <<< "${@:-$(cat /dev/stdin)}" -} -# Other source $ZDOTDIR/.zshrc_extended ## Login diff --git a/README.md b/README.md index 5a28ae5..d1b146f 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,7 @@ All packages that are manually installed via pacman -S, dependencies not include chromium zathura zathura-pdf-mupdf + xdotool python2-setuptools python2-click-5.1 (AUR) platformio (AUR) diff --git a/etc/vimrc b/etc/vimrc index 0d07a8d..1e19c89 100644 --- a/etc/vimrc +++ b/etc/vimrc @@ -48,13 +48,13 @@ set nowrap "" Plugin configuration -" Lightline +" lightline.vim let g:lightline = {} let g:lightline.colorscheme = 'Tomorrow_Night_Bright' let g:lightline.separator = {'left': "\ue0b0", 'right': "\ue0b2"} let g:lightline.subseparator = {'left': "\ue0b1", 'right': "\ue0b3"} -" Lightline-bufferline +" lightline-bufferline let g:lightline.tabline = {'left': [['buffers']], 'right': [['close']]} let g:lightline.component_expand = {'buffers': 'lightline#bufferline#buffers'} let g:lightline.component_type = {'buffers': 'tabsel'} @@ -70,6 +70,10 @@ let g:NERDTrimTrailingWhitespace=1 let g:NERDTreeMinimalUI=1 let g:NERDTreeAutoDeleteBuffer=1 +" vimtex +let g:tex_flavor = 'latex' +let g:vimtex_view_method = 'zathura' + "" Autocommands " Remove trailing whitespace in the following filetypes diff --git a/usr/share/vim/vimfiles/pack/list b/usr/share/vim/vimfiles/pack/list index a53b186..980d6f4 100644 --- a/usr/share/vim/vimfiles/pack/list +++ b/usr/share/vim/vimfiles/pack/list @@ -3,5 +3,6 @@ https://github.com/itchyny/lightline.vim.git https://github.com/mgee/lightline-bufferline.git https://github.com/scrooloose/nerdtree.git https://github.com/scrooloose/nerdcommenter.git +https://github.com/lervag/vimtex.git opt: https://github.com/kristijanhusak/vim-hybrid-material.git