mirror of
https://github.com/flancian/garden.git
synced 2026-08-07 23:16:21 +00:00
Auto saved by Logseq
This commit is contained in:
@@ -4,3 +4,10 @@
|
|||||||
- To go from tabs to spaces in Python code:
|
- To go from tabs to spaces in Python code:
|
||||||
- `for i in *py; do expand -t 4 $i | sponge $i; done`
|
- `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.
|
- [[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
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user