for note; full tag completion and tag support can be used in vim via omnicompletion and taglists. Full class support/heiarchy + printing of the docscrint as you ctrl-n through each completion in the preview window. Extremly useful when using someone else's library or for remembering what to pass in; and mostly native to vim. <br>
<br>I have never used a debugger (i usually use break points and prints, with a quick <leader>e to run and examine output); but I would assume it's there if you want it as I have seen GDB integration (as well as any VCS you would want, which suprises me that has not come up yet.)<br>
<br>It just comes down to whether you want ot make the learning investment or not. After using it for awhile; your workflow just; well; flows. This to me is the biggest complement to an editor.<br><br>Thanks,<br> Chris<br>
<br><div class="gmail_quote">On Sun, Jun 14, 2009 at 10:16 AM, Wayne <span dir="ltr"><<a href="mailto:srilyk@gmail.com">srilyk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div class="im">On Sun, Jun 14, 2009 at 5:55 AM, Tom Green <span dir="ltr"><<a href="mailto:xchimeras@gmail.com" target="_blank">xchimeras@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Since VIM seems to be the editor of choice and I have been programming in Python for many years using Pyscripter and Eclipse I was wondering how I could transition away from the IDE world to VIM. My main issue is how do I go about using VIM to debug my code? </blockquote>
</div><div><br>I usually use print statements and/or raw_input's if you want break points.<br> </div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
With Pyscripter and other IDES its as simple as placing a breakpoint and pressing F7 to step thru the code and you have the ability to see the variable values etc. </blockquote></div><div><br>I know you can do some similar things with the python debugger but I've honestly never used it that much (or worked on a project large enough I needed to!)<br>
</div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Also, with an IDE such as Pyscripter when calling a function a nice balloon hint appears showing you the number of parameters and their types.</blockquote>
</div><div><br>It's not precisely the same thing, but you can fold multiple lines, which allows you to have only the top line of a function showing. I find that rather helpful, and ctrl-n autocompletes the function name. Then you can mark the location with m then a-to-z (I use c as a mnemonic for 'current') then move on top of the name and push * - that will find the next occurence of the word, which is often the function declaration. I just hit "n" (next) until I find it, if that's not the case. Then I type ` (the one over the tilde) then c which takes me back to my 'current' location. If you really wanted, though, you could also have horizontal split of the same file, and you could probably write a macro that would move to that window/buffer and find the function declaraition (so it would search for def <whatever is under cursor>). I don't know precisely how the dropdown autocomplete menu works but you could also probably edit your script to add parameters for the function call just like an IDE.<br>
</div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Coming from a Visual Studio background this is great, as I might be calling a function or method and I don't know off hand the values. Maybe someone could share how they go about programming a good size program with VIM as I would like to use it. Don't get me wrong for quick programs I will use VIM or notepad, but when it comes to building a OOP program I find Eclipse or Pyscripter much easier to use. </blockquote>
</div><div><br>I suppose that's probably the case for a few people - and certainly the reason those tools exist in the first place. If I were working on a quite large program I might consider using an IDE, but in reality I'm probably just as comfortable jumping around code to look for the information I need as I would be using an IDE. <br>
<br>HTH,<br>Wayne<br><br></div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div><br><div class="gmail_quote">
On Sun, Jun 14, 2009 at 12:54 AM, Eddie <span dir="ltr"><<a href="mailto:eddie9139@gmail.com" target="_blank">eddie9139@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I downloaded the previous version of PyScripter although couldn't get<br>
it to work and after googling it, I downloaded Python Portable 1.1<br>
(Python 2.6.1 as most sites/books recommend this and not 3) which has<br>
PySCripter included and this then works fine.Ii also downloaded Komod0<br>
5.1 and after messing around with these, I think I prefer PyScripter<br>
and will use that for the mean time.<br>
<br>
I'll also take a look at VIM as being able to use the same program for<br>
PHP/CSS/HTML (and Basic if it supports it) as well as hopefully Python<br>
(I've only just started learning it) would be an advantage.<br>
<br>
Thanks guys<br>
Eddie<br>
<br>
2009/6/14 Mike Hoy <<a href="mailto:hoym74@gmail.com" target="_blank">hoym74@gmail.com</a>>:<br>
<div><div></div><div>>><br>
>><br>
>> I really like using F5 to run my code, so you can put in your .vimrc so<br>
>> you don't have to type it, or just type it every time:<br>
>><br>
>> map <F5> :!python %<Enter><br>
>><br>
>> and every time you hit <F5> it will run your current script.<br>
>><br>
> Thanks for that. It's even better than typing :!python % because it doesn't<br>
> spawn a shell separate from the Vim window.<br>
><br>
</div></div><div><div></div><div>> _______________________________________________<br>
> Tutor maillist - <a href="mailto:Tutor@python.org" target="_blank">Tutor@python.org</a><br>
> <a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
><br>
><br>
_______________________________________________<br>
Tutor maillist - <a href="mailto:Tutor@python.org" target="_blank">Tutor@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
Tutor maillist - <a href="mailto:Tutor@python.org" target="_blank">Tutor@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
<br></blockquote></div></div></div><font color="#888888"><br><br clear="all"><br>-- <br>To be considered stupid and to be told so is more painful than being called gluttonous, mendacious, violent, lascivious, lazy, cowardly: every weakness, every vice, has found its defenders, its rhetoric, its ennoblement and exaltation, but stupidity hasn’t. - Primo Levi<br>
</font><br>_______________________________________________<br>
Tutor maillist - <a href="mailto:Tutor@python.org">Tutor@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
<br></blockquote></div><br>