From 9dc3b1e52d2a23d3df781749eb3bbc567c637f35 Mon Sep 17 00:00:00 2001 From: hophacker Date: Mon, 23 Jul 2018 06:16:10 +0800 Subject: [PATCH] expandtab for python --- vim/settings/a.rb | 4 ++++ vim/settings/python.vim | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 vim/settings/a.rb diff --git a/vim/settings/a.rb b/vim/settings/a.rb new file mode 100644 index 0000000..f0cc89e --- /dev/null +++ b/vim/settings/a.rb @@ -0,0 +1,4 @@ +[1,2,3,4].each do |number| + next + p number +end diff --git a/vim/settings/python.vim b/vim/settings/python.vim index 4c53d9d..3a745b4 100644 --- a/vim/settings/python.vim +++ b/vim/settings/python.vim @@ -1,3 +1,4 @@ -autocmd FileType python set shiftwidth=2 -autocmd FileType python set tabstop=2 -autocmd FileType python set softtabstop=2 +autocmd FileType python set shiftwidth=4 +autocmd FileType python set tabstop=4 +autocmd FileType python set softtabstop=4 +autocmd FileType python set expandtab