diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-04-10 08:38:21 +0200 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-04-10 08:38:21 +0200 |
commit | 247c2cfe2622a25b2b4c86a4bc937dc6d2523c94 (patch) | |
tree | dc8d3a34506a53fea00ba1681749706921726ff8 | |
parent | 126aac27848795594f6ab6d3a67945da5ce16322 (diff) |
updated vimrc for python and tex
-rw-r--r-- | .config/coc/ultisnips/tex.snippets | 24 | ||||
-rw-r--r-- | .config/nvim/init.vim | 7 |
2 files changed, 11 insertions, 20 deletions
diff --git a/.config/coc/ultisnips/tex.snippets b/.config/coc/ultisnips/tex.snippets index 42ed3ac..d58b085 100644 --- a/.config/coc/ultisnips/tex.snippets +++ b/.config/coc/ultisnips/tex.snippets @@ -1,31 +1,19 @@ snippet newdocument "Starting point for a new LaTeX document" -\\documentclass[12pt, a4paper, hidelinks]{article} +\\documentclass[12pt, a4paper]{article} \\setlength{\\marginparwidth}{2.54cm} -% Packages +\\usepackage[margin=1in]{geometry} \\usepackage{fullpage} -% Skip -\\bigskipamount=.7cm -\\medskipamount=.4cm -\\parindent=.3cm +\\bigskipamount=7mm +\\medskipamount=4mm +\\parindent=0mm -% Document \\begin{document} - ${0} +${0} \\end{document} endsnippet -snippet nonumberedchapters "Removes chapter numbers" -% Unnumber chapter headings -\\makeatletter -\\def\\@seccntformat#1{ - \\expandafter\\ifx\\csname c@#1\\endcsname\\c@section\\else - \\csname the#1\\endcsname\\quad - \\fi} -\\makeatother -endsnippet - snippet beg "begin{} / end{}" bA \\begin{$1} $0 diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index c1005f9..13d4caa 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -1,8 +1,9 @@ let mapleader = " " " set number relativenumber -set tabstop=4 set wrap -set ai +set autoindent +set noexpandtab +set tabstop=4 set shiftwidth=4 set termguicolors set shortmess=I @@ -387,4 +388,6 @@ augroup END " python-syntax let g:python_highlight_all = 1 +let g:python_recommended_style = 0 +" autocmd FileType python setlocal noexpandtab |