Browse Source

changed latextemplate script, vim plugins into data folder not config

master
TiynGER 7 months ago
parent
commit
3f873af37e
2 changed files with 9 additions and 7 deletions
  1. +3
    -3
      .config/nvim/init.vim
  2. +6
    -4
      .local/bin/etc/textemp

+ 3
- 3
.config/nvim/init.vim

@ -1,8 +1,8 @@
" Begin Plugin section " Begin Plugin section
if ! filereadable(expand('~/.config/nvim/autoload/plug.vim'))
if ! filereadable(expand('~/.local/share/nvim/autoload/plug.vim'))
echo "Downloading junegunn/vim-plug to manage plugins..." echo "Downloading junegunn/vim-plug to manage plugins..."
silent !mkdir -p ~/.config/nvim/autoload/
silent !curl "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > ~/.config/nvim/autoload/plug.vim
silent !mkdir -p ~/.local/share/nvim/autoload/
silent !curl "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > ~/.local/share/nvim/autoload/plug.vim
autocmd VimEnter * PlugInstall autocmd VimEnter * PlugInstall
endif endif

+ 6
- 4
.local/bin/etc/textemp

@ -1,12 +1,14 @@
#!/bin/bash #!/bin/bash
# copying tex templates # copying tex templates
latexdir=~/gitrepos/main/latextemplates/
[ -z "$2" ] && echo "missing argument: filename (no ending)" && return 1 [ -z "$2" ] && echo "missing argument: filename (no ending)" && return 1
articletemp=~/gitrepos/etc/latextemplates/latex_article/article.tex
beamertemp=~/gitrepos/etc/latextemplates/latex_beamer/beamer.tex
exercisetemp=~/gitrepos/etc/latextemplates/latex_exercise_header/header.tex
handouttemp=~/gitrepos/etc/latextemplates/latex_handout/handout.tex
articletemp=${latexdir}latex_article/article.tex
beamertemp=${latexdir}latex_beamer/beamer.tex
exercisetemp=${latexdir}latex_exercise_header/header.tex
handouttemp=${latexdir}latex_handout/handout.tex
case "$1" in case "$1" in
a*) cp "$articletemp" $2.tex ;; a*) cp "$articletemp" $2.tex ;;

Loading…
Cancel
Save