[Tutor] editing scripts with Vim
Andrei Kulakov
ak@silmarill.org
Sun, 21 Apr 2002 14:21:53 -0400
On Sun, Apr 21, 2002 at 07:37:38AM -0500, kent@springfed.com wrote:
> Howdy,
>
> Vim looks like a good free cross platform
> editor for editing Python.
>
> I seem to recall that Vim provided for
> highlighting a line of code and sending it
> to the interpreter, I can't find the reference.
>
You could make a mapping for that, untested:
map ,p yy:!python -c "^R"<bs>"<cr>
where ^R is ctrl-V, ctrl-R
I also have a small python script to be used from console or gui vim to
print a colored list of def's and classes in current file:
http://silmarill.org/py_scripts/print_defs.py
>
> I would appreciate any hints and tips on
> setting up Vim for efficient programming.
>
> Thanks,
> Kent
>
>
>
>
> _______________________________________________
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
--
Cymbaline: intelligent learning mp3 player - python, linux, console.
get it at: cy.silmarill.org