From cf941df8f4be64d02d02c3a12b953459edb420bd Mon Sep 17 00:00:00 2001 From: Flancian <0@flancia.org> Date: Sat, 9 Apr 2022 11:54:12 +0200 Subject: [PATCH] Auto saved by Logseq --- spaces to tabs conversion.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/spaces to tabs conversion.md b/spaces to tabs conversion.md index 8391043ce..797d8b16e 100644 --- a/spaces to tabs conversion.md +++ b/spaces to tabs conversion.md @@ -3,4 +3,11 @@ - [[sponge]] is in [[moreutils]] - To go from tabs to spaces in Python code: - `for i in *py; do expand -t 4 $i | sponge $i; done` -- [[pep8]] is against tabs in Python code. We are currently experimenting with using tabs in [[agora server]] regardless. \ No newline at end of file +- [[pep8]] is against tabs in Python code. We are currently experimenting with using tabs in [[agora server]] regardless. + - In .vimrc you might need to add: + - ```" work around python filetype's insistence that tabs are 8 spaces wide + let g:python_recommended_style = 0 + filetype plugin indent on + syntax on + set tabstop=4 + ``` \ No newline at end of file