commit 30aa2d2d2731d786139593bd90a0fe2031556d00
parent 54234a7a5425e551ddfe803a10a344f294830ea8
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date:   Sun, 21 Mar 2021 22:41:36 +0100

Change vim shortcuts

Diffstat:
M.config/nvim/init.vim | 5++---
A.config/nvim/templates/shebang.py | 1+
D.config/nvim/templates/summary.tex | 30------------------------------
M.config/nvim/templates/tex.Makefile | 12+++++++++---
D.config/nvim/templates/tex.gitignore | 7-------
5 files changed, 12 insertions(+), 43 deletions(-)

diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim @@ -179,9 +179,8 @@ set laststatus=2 " activate status line " templates {{{ nnoremap <Leader>sh :-1read $XDG_CONFIG_HOME/nvim/templates/shebang.sh<CR>:w<CR>:e<CR>j -nnoremap <Leader>latexs :-1read $XDG_CONFIG_HOME/nvim/templates/summary.tex<CR> -nnoremap <Leader>latexg :-1read $XDG_CONFIG_HOME/nvim/templates/tex.gitignore<CR> -nnoremap <Leader>latexm :-1read $XDG_CONFIG_HOME/nvim/templates/tex.Makefile<CR> +nnoremap <Leader>py :-1read $XDG_CONFIG_HOME/nvim/templates/shebang.py<CR>:w<CR>:e<CR>j +nnoremap <Leader>latexmk :-1read $XDG_CONFIG_HOME/nvim/templates/tex.Makefile<CR> " /templates }}} diff --git a/.config/nvim/templates/shebang.py b/.config/nvim/templates/shebang.py @@ -0,0 +1 @@ +#!/usr/bin/env python3 diff --git a/.config/nvim/templates/summary.tex b/.config/nvim/templates/summary.tex @@ -1,30 +0,0 @@ -\documentclass[12pt,a4paper]{article} -\usepackage[utf8]{inputenc} -\usepackage[margin=1in]{geometry} -\usepackage{hyperref} -\usepackage[<+language+>]{babel} - -\hypersetup{ - pdfauthor = {Oscar Benedito}, - pdftitle = {<+title+>}, - colorlinks, - linkcolor=blue -} - -% \renewcommand{\contentsname}{Índex} - -\begin{document} - -\begin{center} - {\LARGE\scshape <+title+>} - - \quad - - Oscar Benedito -\end{center} - -% \tableofcontents - - - -\end{document} diff --git a/.config/nvim/templates/tex.Makefile b/.config/nvim/templates/tex.Makefile @@ -1,7 +1,13 @@ all: main -main: *.tex - pdflatex main.tex +.PHONY: main reload + +main: + latexmk -pdf main.tex + +reload: + latexmk -pdf -pvc -interaction=nonstopmode main.tex clean: - rm -f *.aux *.log *.out *.auxlock *.toc *.ind *.ilg *.idx *.pdf + latexmk -C + rm -f *.bbl *.run.xml diff --git a/.config/nvim/templates/tex.gitignore b/.config/nvim/templates/tex.gitignore @@ -1,7 +0,0 @@ -*.pdf -*.log -*.[oa] -*.out -*.toc -*.aux -*.auxlock