[nvim] change acronyms for glossary
This commit is contained in:
@@ -71,8 +71,9 @@
|
||||
"\\newtheorem{theorem}{Satz}[section]",
|
||||
"\\newtheorem*{remark}{Bemerkung}",
|
||||
"",
|
||||
"%%% acronyms - use with \\ac{} - don't print a list of acronyms",
|
||||
"\\usepackage[nolist]{acronym}",
|
||||
"%%% glossary, use with \\gls{}",
|
||||
"% make sure to run `makeglossaries FILE` to generate the glossary entries",
|
||||
"\\usepackage{glossaries}",
|
||||
"",
|
||||
"%%% bibtex - cite with \\autocite{}, will show in footnote",
|
||||
"\\usepackage{csquotes}",
|
||||
@@ -84,20 +85,21 @@
|
||||
"\\date{\\today}",
|
||||
"",
|
||||
"\\bibliography{bibliography}",
|
||||
"\\makeglossaries",
|
||||
"",
|
||||
"\\begin{document}",
|
||||
"",
|
||||
"% use with \\gls{nvim}",
|
||||
"% \\newglossaryentry{nvim}{name=Neovim, description={Bester Editor der Welt}}",
|
||||
"",
|
||||
"% create title page with toc",
|
||||
"\\maketitle",
|
||||
"\\newpage",
|
||||
"\\tableofcontents",
|
||||
"% \\newpage",
|
||||
"% \\printglossaries",
|
||||
"\\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 :>",
|
||||
"\\section{}",
|
||||
"",
|
||||
|
||||
@@ -117,3 +117,10 @@ map <C-_> :noh<CR>
|
||||
map <leader>gs :Git status<CR>
|
||||
map <leader>gb :Git blame<CR>
|
||||
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>
|
||||
|
||||
Reference in New Issue
Block a user