Tuesday, November 23, 2021

Re: Enable Python feature in vim editor

Hi,

On Monday, 2021-11-22 09:06:00 -0800, kaushal wrote:

> I am using vim editor to write python scripts. Is there a way to enable
> syntax, help and indentation of python script?

Maybe your installation just lacks some things?
I have

find /usr/share/vim/ -name '*python*'

(Fedora, vim-common package)
/usr/share/vim/vim82/autoload/pythoncomplete.vim
/usr/share/vim/vim82/autoload/python3complete.vim
/usr/share/vim/vim82/syntax/python.vim
/usr/share/vim/vim82/ftplugin/python.vim
/usr/share/vim/vim82/indent/python.vim

or

(Debian, vim-runtime package)
/usr/share/vim/vim81/ftplugin/python.vim
/usr/share/vim/vim81/autoload/pythoncomplete.vim
/usr/share/vim/vim81/autoload/python3complete.vim
/usr/share/vim/vim81/syntax/python.vim
/usr/share/vim/vim81/indent/python.vim

and syntax highlighting and indentation work.

If on Windows, find out where these are installed and maybe adjust your
$VIM or eve $VIMRUNTIME paths. See :h $VIM and :h $VIMRUNTIME

Eike

--
OpenPGP/GnuPG encrypted mail preferred in all private communication.
GPG key 0x6A6CD5B765632D3A - 2265 D7F3 A7B0 95CC 3918 630B 6A6C D5B7 6563 2D3A
Use LibreOffice! https://www.libreoffice.org/

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/YZzUiwUKdQMGbayb%40kulungile.erack.de.

No comments:

Post a Comment