From 5663f1e234d32742b9779cbb5c4c02b89a4a95dd Mon Sep 17 00:00:00 2001 From: inigoortega Date: Tue, 1 Oct 2019 16:56:55 +0200 Subject: [PATCH] vim changes --- .gitignore | 1 + .vim/.netrwhist | 4 +++ .vim/after/ftplugin/hs.vim | 15 ++++++++ .../latex-suite/templates/article-custom.tex | 34 +++++++++++++++++++ .../latex-suite/templates/articulo.tex | 34 +++++++++++++++++++ 5 files changed, 88 insertions(+) create mode 100644 .vim/.netrwhist create mode 100644 .vim/after/ftplugin/hs.vim create mode 100644 .vim/ftplugin/latex-suite/templates/article-custom.tex create mode 100644 .vim/ftplugin/latex-suite/templates/articulo.tex diff --git a/.gitignore b/.gitignore index 3f20709..018dca2 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ .local/share/ termscripts/test.sh .config/tox +.vim/plugged diff --git a/.vim/.netrwhist b/.vim/.netrwhist new file mode 100644 index 0000000..743dd62 --- /dev/null +++ b/.vim/.netrwhist @@ -0,0 +1,4 @@ +let g:netrw_dirhistmax =10 +let g:netrw_dirhist_cnt =2 +let g:netrw_dirhist_1='/usr/share/X11/xorg.conf.d' +let g:netrw_dirhist_2='/etc/portage/package.use' diff --git a/.vim/after/ftplugin/hs.vim b/.vim/after/ftplugin/hs.vim new file mode 100644 index 0000000..d910823 --- /dev/null +++ b/.vim/after/ftplugin/hs.vim @@ -0,0 +1,15 @@ +"" Haskell +let g:haskell_enable_quantification = 1 " to enable highlighting of `forall` +let g:haskell_enable_recursivedo = 1 " to enable highlighting of `mdo` and `rec` +let g:haskell_enable_arrowsyntax = 1 " to enable highlighting of `proc` +let g:haskell_enable_pattern_synonyms = 1 " to enable highlighting of `pattern` +let g:haskell_enable_typeroles = 1 " to enable highlighting of type roles +let g:haskell_enable_static_pointers = 1 " to enable highlighting of `static` +let g:haskell_backpack = 1 " to enable highlighting of backpack keywords +let g:haskell_classic_highlighting = 1 + +let g:hindent_indent_size = 2 +let g:hindent_line_length = 80 +let g:hindent_command = "stack exec -- hindent" + +setlocal formatprg=hindent diff --git a/.vim/ftplugin/latex-suite/templates/article-custom.tex b/.vim/ftplugin/latex-suite/templates/article-custom.tex new file mode 100644 index 0000000..52ad0b6 --- /dev/null +++ b/.vim/ftplugin/latex-suite/templates/article-custom.tex @@ -0,0 +1,34 @@ +% !TeX spellcheck = spanish +\documentclass{article} +\input{/home/initega/org/erroa.tex} +\usepackage[spanish,english]{babel} +\selectlanguage{english} + +%\textheight=23.94cm +%\textwidth=16cm +%\topmargin=-1cm +%\oddsidemargin=-0.22cm +%\renewcommand{\baselinestretch}{1.3} +%\parindent=1.5cm +%\usepackage[margin=1.5in]{geometry} + +\title{<++>} +\author{Iñigo Ortega<++>} + +\begin{document} + \maketitle +\vspace{6.5cm} +Assignment: <++>\\ + +Degree: \,\,\,\, Informatics Engineering\\ + +School Year: 20<++>/20<++>\\ +\clearpage + +\tableofcontents + +\clearpage + +<++> + +\end{document} diff --git a/.vim/ftplugin/latex-suite/templates/articulo.tex b/.vim/ftplugin/latex-suite/templates/articulo.tex new file mode 100644 index 0000000..c38a3d8 --- /dev/null +++ b/.vim/ftplugin/latex-suite/templates/articulo.tex @@ -0,0 +1,34 @@ +% !TeX spellcheck = spanish +\documentclass{article} +\input{/home/initega/org/erroa.tex} +\usepackage[spanish]{babel} +\selectlanguage{spanish} + +%\textheight=23.94cm +%\textwidth=16cm +%\topmargin=-1cm +%\oddsidemargin=-0.22cm +%\renewcommand{\baselinestretch}{1.3} +%\parindent=1.5cm +%\usepackage[margin=1.5in]{geometry} + +\title{<++>} +\author{Iñigo Ortega<++>} + +\begin{document} + \maketitle +\vspace{6.5cm} +Asignatura: <++>\\ + +Gradu: \,\,\,\, Ingeniería Informática\\ + +Curso: 20<++>/20<++>\\ +\clearpage + +\tableofcontents + +\clearpage + +<++> + +\end{document}