Skip to content

Commit 05df452

Browse files
authored
vimrc for python
1 parent cf9eb8e commit 05df452

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.vimrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
au BufRead,BufNewFile *.py set textwidth=79 " lines longer than 79 columns will be broken
2+
au BufRead,BufNewFile *.pt set filetype=html.pt
3+
set shiftwidth=4 " operation >> indents 4 columns; << unindents 4 columns
4+
set tabstop=4 " an hard TAB displays as 4 columns
5+
set expandtab " insert spaces when hitting TABs
6+
set softtabstop=4 " insert/delete 4 spaces when hitting a TAB/BACKSPACE
7+
set shiftround " round indent to multiple of 'shiftwidth'
8+
set autoindent " align the new line indent with the previous line
9+
filetype indent on
10+
let python_highlight_all=1
11+
syntax on

0 commit comments

Comments
 (0)