[Tutor] Enable Python feature in vim editor
Klaus Jantzen
k.d.jantzen at mailbox.org
Tue Nov 23 10:39:41 EST 2021
Hi,
in my .vimrc I have the following Python related entries:
============
au BufRead, BufNewFile *.py call SetPythonOptions()
function SetPythonOptions()
autocmd!
set tabstop=4
set softtabstop=4
set shiftwidth=4
" use spaces instead of tab
set expandtab
set autoindent
endfunction
" remove trailing blanks in Python files
au BufWritePre *.py %s/\s\+$//e
==============
K.D.J.
On 11/22/21 5:48 PM, Kaushal Shriyan wrote:
> Hi,
>
> I am using vim editor to write python scripts. Is there a way to enable
> syntax, help and indentation of python script?
>
> Thanks in advance. I look forward to hearing from you.
>
> Best Regards,
>
> Kaushal
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
More information about the Tutor
mailing list