Re: Vim plugin that does Django code completion?

2017-07-13 Thread 'Tom Evans' via Django users
Hi Robert

Ignore the helpful people telling you to stop using vim and use some
god awful UI, the plugin you are looking for is called jedi.vim

https://github.com/davidhalter/jedi-vim

Debian has a package, vim-python-jedi, or you can install using
Pathogen or Vundle.

Cheers

Tom

On Fri, Jul 7, 2017 at 4:27 PM, Robert F.  wrote:
> Is there a Vim plugin that does code completion for Django?  I'd like to be
> able to type something like "foobar = models." and hit Tab and see a list of
> classes like CharField or Foreign key.  Alternately, I'd be OK with entering
> an abbreviation that would bring up the proper code snippet.  The Django
> documentation suggests YouCompleteMe but it appears to only handle Python
> code, not Django specifically.  Also, I haven't been able to get it to work
> on my Mac laptop.
>
> I almost exclusively do editing of Django files on a remote Debian server
> from my Mac laptop.  I know PyCharm provides the ability to edit remote
> files and it has Vim emulation but it's pretty expensive and I'm not sure
> how closely the emulator emulates Vim.  SublimeText appears to have a
> "Djaneiro" package that does what I need but it looks like editing remote
> files is rather difficult with Sublime.  Doesn't Vim have better support for
> Django code completion that's comparable to these two applications?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/166226ca-2fc6-4454-9baf-0d871c552a8f%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFHbX1LySk_S4BBrTOho8mWD6AcJM8JO231%2B25rmnZOBjS0YWA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Vim plugin that does Django code completion?

2017-07-09 Thread Bernd Wechner
For what it's worth I use PyDev which is free. And am very happy with 
it. Though I donate money now and again because it is so good and free.


On 9/07/2017 10:33 PM, Gabriel - Iulian Dumbrava wrote:

I also suggest buying a PyCharm license. If you are working on a professional 
level and you have to do remote editing you'll most likely need to use line by 
line remote debugging.



--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f6d7cab3-709b-f68e-f472-8e4595bca6d5%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Vim plugin that does Django code completion?

2017-07-07 Thread Robert F.
Thanks Mulianto and James.  To James, perhaps I don't have a good workflow 
which is why the ability to edit files on a remote server is also a 
necessity.  I grew tired of having to build a development environment on 
both my Mac laptop and my Debian server where my Django app runs so now I 
just log into my dev server and do all my editing there using Vim.  I don't 
have time to setup up a local Debian server using Vagrant and Ansible and 
even if I did, I suspect PyCharm would still think of that local VM as a 
remote server.  I'm not sure.  These environments can easily become 
complicated and confusing to a Django noob like me.  I'm not really sure 
what the optimal development environment setup should be.

On Friday, July 7, 2017 at 10:46:58 AM UTC-7, James Schneider wrote:
>
>
>
> On Jul 7, 2017 8:27 AM, "Robert F."  
> wrote:
>
> Is there a Vim plugin that does code completion for Django?  I'd like to 
> be able to type something like "foobar = models." and hit Tab and see a 
> list of classes like CharField or Foreign key.  Alternately, I'd be OK with 
> entering an abbreviation that would bring up the proper code snippet.  The 
> Django documentation suggests YouCompleteMe but it appears to only handle 
> Python code, not Django specifically.  Also, I haven't been able to get it 
> to work on my Mac laptop.
>
> I almost exclusively do editing of Django files on a remote Debian server 
> from my Mac laptop.  I know PyCharm provides the ability to edit remote 
> files and it has Vim emulation but it's pretty expensive and I'm not sure 
> how closely the emulator emulates Vim.  SublimeText appears to have a 
> "Djaneiro" package that does what I need but it looks like editing remote 
> files is rather difficult with Sublime.  Doesn't Vim have better support 
> for Django code completion that's comparable to these two applications?
>
>
> PyCharm's Vim emulation is quite excellent. For me, PyCharm pro is worth 
> the money for the extra Django integration. The community version is also 
> quite good, the only place I really missed the pro version is in the 
> template tags. The code completion works great as long as you mark your 
> project directories as source locations correctly.
>
> For editing remote files, you may want to look into using sshfs to mount 
> your project directly locally. It's basically a file share mounted over 
> SSH, so everything is encrypted in transit.
>
> http://www.miscdebris.net/blog/2009/06/29/installing-sshfs-on-mac-os-x/
>
> Typically though, I'm editing/running files locally, then pushing them to 
> the server via git.
>
> -James
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/21b0e473-07b4-4463-aa61-beb8e71efbf1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Vim plugin that does Django code completion?

2017-07-07 Thread James Schneider
On Jul 7, 2017 8:27 AM, "Robert F."  wrote:

Is there a Vim plugin that does code completion for Django?  I'd like to be
able to type something like "foobar = models." and hit Tab and see a list
of classes like CharField or Foreign key.  Alternately, I'd be OK with
entering an abbreviation that would bring up the proper code snippet.  The
Django documentation suggests YouCompleteMe but it appears to only handle
Python code, not Django specifically.  Also, I haven't been able to get it
to work on my Mac laptop.

I almost exclusively do editing of Django files on a remote Debian server
from my Mac laptop.  I know PyCharm provides the ability to edit remote
files and it has Vim emulation but it's pretty expensive and I'm not sure
how closely the emulator emulates Vim.  SublimeText appears to have a
"Djaneiro" package that does what I need but it looks like editing remote
files is rather difficult with Sublime.  Doesn't Vim have better support
for Django code completion that's comparable to these two applications?


PyCharm's Vim emulation is quite excellent. For me, PyCharm pro is worth
the money for the extra Django integration. The community version is also
quite good, the only place I really missed the pro version is in the
template tags. The code completion works great as long as you mark your
project directories as source locations correctly.

For editing remote files, you may want to look into using sshfs to mount
your project directly locally. It's basically a file share mounted over
SSH, so everything is encrypted in transit.

http://www.miscdebris.net/blog/2009/06/29/installing-sshfs-on-mac-os-x/

Typically though, I'm editing/running files locally, then pushing them to
the server via git.

-James

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2Be%2BciWG6OJaqzqXgBcSuBfze2mKLZdwPAuwWkAJifZ2fe-nQQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Vim plugin that does Django code completion?

2017-07-07 Thread Phang Mulianto
Hi

You can use plugin on vim using snipmate. You can create your own
autocomplete or using others created snip available for vim.

Hope helps.



On 7 Jul 2017 11:27 pm, "Robert F."  wrote:

> Is there a Vim plugin that does code completion for Django?  I'd like to
> be able to type something like "foobar = models." and hit Tab and see a
> list of classes like CharField or Foreign key.  Alternately, I'd be OK with
> entering an abbreviation that would bring up the proper code snippet.  The
> Django documentation suggests YouCompleteMe but it appears to only handle
> Python code, not Django specifically.  Also, I haven't been able to get it
> to work on my Mac laptop.
>
> I almost exclusively do editing of Django files on a remote Debian server
> from my Mac laptop.  I know PyCharm provides the ability to edit remote
> files and it has Vim emulation but it's pretty expensive and I'm not sure
> how closely the emulator emulates Vim.  SublimeText appears to have a
> "Djaneiro" package that does what I need but it looks like editing remote
> files is rather difficult with Sublime.  Doesn't Vim have better support
> for Django code completion that's comparable to these two applications?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/166226ca-2fc6-4454-9baf-0d871c552a8f%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BSr5mT3euLNtWuhgn%2B8umCdxCM4MtG0mp5BZ1FxYj3MRmv4uA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.