vi and python?
Ben Beuchler
insyte at emt-p.org
Tue Jan 25 23:15:42 EST 2000
On Tue, 25 Jan 2000, Mike Steed wrote:
> Nothing too fancy, but here are the settings I have accumulated for *.py
> files. The ^H and ^M are actually literal control characters.
>
> " indentation
> set shiftwidth=4 softtabstop=4 tabstop=8 noexpandtabs
> set nocindent smartindent
> set cinwords=if,else,elif,for,while,def,class,try,except,finally
> set formatoptions=croq2
>
> " disable dedent when '#' is hit
> inoremap # X^H#
>
> " python versions of [[ and ]]
> map ]] /^[^ \t#]\+.*:^M
> map [[ ?^[^ \t#]\+.*:^M
Sounds good. This may sound like a stupid question, but is there a way to
have it only use these options with .py files? I haven't done too much
yet with customizing vim...
Ben
--
"There is no spoon"
-- The Matrix
More information about the Python-list
mailing list