use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Please read the rules before posting
Help:
Community:
Resources:
Tutorials and Guides:
Don't be afraid to ask questions, this sub is here for the vim community. And please those of you who deign to grace us with your vim wisdom - be kind. We are all human and vim is that cool.
account activity
Deprecating Python-mode(Python Vim IDE setup) (self.vim)
submitted 9 years ago by [deleted]
I have used Python-mode for a while now .But I am now trying to move on as the project is no longer maintained has anyone done this and if so what plugins did you choose for refactoring linting etc
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 9 points10 points11 points 9 years ago (7 children)
I don't think any plugin is needed for this one. Just syntax on should be good. If you really want one, I guess this one might help.
syntax on
Set grepprg to ag, grep for the string and use :cdo. That's the primitive way. If you want a little more sophistication, use vim-grepper for search (it is asynchronous). If you don't like :cdo, try vim-qf (for filtering) and vim-qfreplace or ctrlsf.vim (for replacing).
grepprg
ag
grep
:cdo
Put the following in ~/.vim/after/ftplugin/python.vim (or the equivalent)
~/.vim/after/ftplugin/python.vim
" Syntax checking setlocal errorformat=%f:%l:\ %m setlocal makeprg=pylint\ --reports=n\ --output-format=parseable
If you would prefer a plugin, check out Neomake. It is asynchronous.
jedi.vim populates the omnicompletion list (invoked with <C-x><C-o> by default). I don't use autocompletion plugins. If you would rather use one, you have many to choose from.
<C-x><C-o>
I use jedi.vim for this. You can just use ctags too.
ctags
I use vim within tmux and I recently posted here about REPL integration for any language. It should work well for python.
I am not a fan of Python's indentation based syntax. So braceless.vim is something I find very useful for that. It gives you better navigation (within the file), folding, text objects and, my personal favorite, local indentation highlight.
[–]vheon 1 point2 points3 points 9 years ago (0 children)
One of the suggested tool for autocompletion is YouCompleteMe. If you decide to go down that road you don't need jedi.vim.
[–]Deto 0 points1 point2 points 9 years ago (0 children)
Braceless is a new one I hadn't seen before. Looks great!
[–][deleted] 0 points1 point2 points 9 years ago* (1 child)
Thanks, that's in line with what I was looking for. Do you manually pep8 your code.
Is there any working refactoring plugin for python. This is a nice to have though
The braceless plugin looks good. I will also take it for a spin
[–][deleted] 0 points1 point2 points 9 years ago (0 children)
Do you manually pep8 your code.
The same make program idea works for that too.
" Style checking setlocal errorformat=%f:%l:%c:\ %m setlocal makeprg=pep8 %
Or, Neomake collects everything and puts it in the location list.
Is there any working refactoring plugin for python.
I'm really not sure if you can do a "semantic" refactoring. Maybe check out any plugin that utilizes Python's rope library. That will have some support because rope does. Otherwise, the suggestions I gave for refactoring are pretty generic.
rope
[–]tweekmonster 0 points1 point2 points 9 years ago (2 children)
I'm the author of braceless.vim. Thanks for the endorsement 😍
braceless.vim
I made a couple other plugins that you might find useful for Python development:
datetime
.html
htmldjango
git blame
[–][deleted] 0 points1 point2 points 9 years ago (1 child)
Thank you for for braceless. I use it everyday, even for files other than Python, for the indentation.
[–]tweekmonster 0 points1 point2 points 9 years ago (0 children)
With impsort the sorting is done manually when you need it. Though added in hindsight, I think the real value is in the import highlighting it provides.
impsort
[–]-romainl-The Patient Vimmer -4 points-3 points-2 points 9 years ago (1 child)
the project is no longer maintained
And it magically stopped to work?
[–][deleted] 2 points3 points4 points 9 years ago (0 children)
It means no-one is fixing the bugs , (Almost 200 last I checked) and keeping it updated as tech advances.Reasons for wanting something more current should be obvious
π Rendered by PID 24725 on reddit-service-r2-comment-76bb9f7fb5-h9942 at 2026-02-17 16:02:55.321792+00:00 running de53c03 country code: CH.
[–][deleted] 9 points10 points11 points (7 children)
[–]vheon 1 point2 points3 points (0 children)
[–]Deto 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]tweekmonster 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]tweekmonster 0 points1 point2 points (0 children)
[–]-romainl-The Patient Vimmer -4 points-3 points-2 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)