[nvim] change acronyms for glossary

This commit is contained in:
Marco Thomas
2022-10-31 23:31:54 +01:00
parent e27c00475d
commit cdacf72dc5
2 changed files with 16 additions and 7 deletions

View File

@@ -71,8 +71,9 @@
"\\newtheorem{theorem}{Satz}[section]", "\\newtheorem{theorem}{Satz}[section]",
"\\newtheorem*{remark}{Bemerkung}", "\\newtheorem*{remark}{Bemerkung}",
"", "",
"%%% acronyms - use with \\ac{} - don't print a list of acronyms", "%%% glossary, use with \\gls{}",
"\\usepackage[nolist]{acronym}", "% make sure to run `makeglossaries FILE` to generate the glossary entries",
"\\usepackage{glossaries}",
"", "",
"%%% bibtex - cite with \\autocite{}, will show in footnote", "%%% bibtex - cite with \\autocite{}, will show in footnote",
"\\usepackage{csquotes}", "\\usepackage{csquotes}",
@@ -84,20 +85,21 @@
"\\date{\\today}", "\\date{\\today}",
"", "",
"\\bibliography{bibliography}", "\\bibliography{bibliography}",
"\\makeglossaries",
"", "",
"\\begin{document}", "\\begin{document}",
"", "",
"% use with \\gls{nvim}",
"% \\newglossaryentry{nvim}{name=Neovim, description={Bester Editor der Welt}}",
"",
"% create title page with toc", "% create title page with toc",
"\\maketitle", "\\maketitle",
"\\newpage", "\\newpage",
"\\tableofcontents", "\\tableofcontents",
"% \\newpage",
"% \\printglossaries",
"\\newpage", "\\newpage",
"", "",
"% use with \\ac{}",
"\\begin{acronym}[Acronyms]",
" \\acro{latex}[LaTeX]{Bestes Doku Tool der Welt}",
"\\end{acronym}",
"",
"% begin here; don't forget to relaunch nvim :>", "% begin here; don't forget to relaunch nvim :>",
"\\section{}", "\\section{}",
"", "",

View File

@@ -117,3 +117,10 @@ map <C-_> :noh<CR>
map <leader>gs :Git status<CR> map <leader>gs :Git status<CR>
map <leader>gb :Git blame<CR> map <leader>gb :Git blame<CR>
map <C-s> :Git grep map <C-s> :Git grep
fun! TrimWhitespace()
let l:save = winsaveview()
keeppatterns %s/\s\+$//e
call winrestview(l:save)
endfun
noremap <leader>ws :call TrimWhitespace()<CR>