To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/QLragA8PifIJ.--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To post to this group, send email to pylons-...@googlegroups.com.
To unsubscribe from this group, send email to pylons-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
To answer your questions..
If you've never used a text editor in the terminal before, the official tutorial is the best for vim. Just type at the command-line:
$ vimtutor
Vim is already highly-optimised for python dev, for example auto-indenting and wrapping comments and strings etc, so you can just start developing without having to do anything. However, it can for example be tweaked in many ways to make things better, particularly thinking of whatever template system you use with Pyramid.
Feel free to try out my minimal vim profile tweaked for jinja2, some PEP8 stuff, better line-wraps with version-control, and the solarized colour scheme (http://ethanschoonover.com/solarized) which is very comfortable - especially in iTerm2 re millions-of-colours, but perfectly acceptable in 256 colours: https://github.com/simonyarde/.vim
Why would you want to use them for Pyramid dev? For starters, how about executing commands from within the editor, listing files and directories etc, building your Sphinx docs with:
:! make html
Cmd-p is my personal favourite key-command for auto-completing var names as it almost completely eliminates typos and allows you work very fast.
Best, S
> --
> You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
Also, vi(m) is designed for typists, so the most common editing
functions are at or near the home row without pressing a modifier.
I try the various IDEs and emacs and Kate every year or so, but I
always come back to vim. Usually because of a syntax highlighting or
auto-whitespace issue, or because I miss vim's efficient
search-and-replace.
> - available on pretty much every *nix system ever, very handy if you have to
> SSH into a server to fix something
The UNIX mantra is, "You must know enough vi to make basic changes to
a configuration file and get out of vi."
> - good extensions available to help with writing Python
I don't know about this. Which extensions are you using? I have the
Python syntax pack and the Python-extension pack. (The latter allows
you to write vim functions in Python, but I've never found a use for
it.)
> The downside is that some people find it hard at first to get the hang of a
> modal editor, but try the tutorial and that should help.
Yes, it has a learning curve. Also, its GUI is not quite modern. It
has the expected menu bar and toolbar, but you can't open multiple
windows. You can split the window but it's done in a CURSES-like way.
--
Mike Orr <slugg...@gmail.com>
for pylint users :
http://www.vim.org/scripts/script.php?script_id=891
TaskList to list fixmes and todos:
http://www.vim.org/scripts/script.php?script_id=2607
Taglist as a source code browser :
http://vim-taglist.sourceforge.net
And if you don't have vim compiled with the python option, you'll
appreciate to compile it.
Le 19/03/2012 19:29, Mike Orr a �crit :