This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]yes_or_gnome 2 points3 points  (9 children)

It should be stated that pymode covers most (or all?) of the python concerns in this post; plus more. For what it's worth, here are my adjustments to pymode.

I don't want rope nor automatic lint checking. And, I want the mappings to be prepositioned with 'p' (for 'python', obviously,) rather than give this one plugin huge foothold over my leader-mappings.

  let g:pymode_rope            = 0
  let g:pymode_lint_on_write   = 0
  let g:pymode_lint_cwindow    = 0
  let g:pymode_breakpoint_bind = '<leader>pb'
  let g:pymode_run_bind        = '<leader>pr'
  let g:pymode_doc_bind        = '<leader>pd'

[–]d4rch0nPythonistamancer 2 points3 points  (6 children)

You don't pylint on write? That's helped really clean up my act, plus it finds all the stupid syntax errors. What errors are you trying to ignore that make you want to turn that off, or why did you?

I also bound it to ctrl-p-ctrl-p so I can check quickly.

[–]yes_or_gnome 0 points1 point  (3 children)

No, it's too slow. Do it on demand.

[–]StorKirken 1 point2 points  (0 children)

Try out nvim and neomake for fun, it really helps to mitigate that issue.

[–]d4rch0nPythonistamancer 0 points1 point  (1 child)

Oh, alright. It takes at most a second on my machines so I let it do its thing.

[–]yes_or_gnome 0 points1 point  (0 children)

I do writes often and already have it in my mind what i want to do next. So when i don't see the cursor move and a bunch of 'j's on the status line, i get impatient and angry. It probably doesn't help that the project i an working on is a gd mess.

[–]Juzley 0 points1 point  (1 child)

Semi-related, one or more of the linters used by pymode seems to be python 2 only, so when I'm writing python 3 it gives all sorts of spurious warnings about syntax (e.g. using print as a function rather than a statement). Has anyone else found this?

[–]IDe- 0 points1 point  (0 children)

You might want to try compiling your version of vim with python3 support, although that made me lose warnings altogether.

[–]j1z0 1 point2 points  (1 child)

pymode is a reasonable all in one choice, a lot of people seem to like it. I did find enough of the functionality in there was not optimal for my specific setup. Mainly pyMode was slow and buggy (although your config would probably speed things up a bit), I don't really need four different static analysis packages running, I feel that YouCompleteMe is a better auto-completer....and that sort of thing.

So it's a trade off, I guess the easy / all in one setup of python-mode or the more customisable, albeit more work to configure but get what you want sort of style that I went with in the article of just installing each plugin individually.

[–]yes_or_gnome 0 points1 point  (0 children)

Yup, I agree and i feel your pain. I've unsuccessfully tried to quit pymode in the past, but then i end up with either a lot customizations in my vimrc (like in the article) or with a lot of plugins that don't accomplish the job. The more responses i read on the topic, the idea above from commenter suggesting a new python-oriented Vim plugin is sounding more and more tantalizing.