Python-mode is a vim plugin that helps you to create python code very quickly by utilizing libraries including pylint, rope, pydoc, pyflakes, pep8, and mccabe for features like static analysis, refactoring, folding, completion, documentation, and more. (from GH)
Questions tagged [python-mode]
150 questions
1
vote
1 answer
Vim pymode throws "invalid syntax" error on async function definition
I'm currently developing some async python in vim and have pymode installed as a plugin. But I'm having an issue with file linting because the linter gets hung up on the first (and valid) async definition and won't lint the rest of the file.…

FinnM
- 394
- 1
- 3
- 17
1
vote
0 answers
In python-mode plugin NameError: name 'pymode' is not defined
I have just installed the python-mode plugin by vundle
deal with /home/lucas/.vim/autoload/pymode/doc.vim gets error:
line 3:
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named 'pymode'
[Pymode]:…

doUWannaBuildASnowMan
- 441
- 1
- 4
- 19
1
vote
1 answer
How do I prevent automatic re-folding of python code after refactoring using vim with python-mode / rope and SimpylFold
I am using vim to create and edit python code. I have python-mode installed which provides (amongst other things) refactoring via rope. I also have SimpylFold installed to provide code folding.
Everything's working great apart from one annoying…

Biggsy
- 1,306
- 1
- 12
- 28
1
vote
2 answers
Tabbing comments in emacs py-mode?
I'm using python-mode.el, and when I try to indent comments, it always wants to put them all the way to the left. I want them indented in line with the rest of the code. Is there an easy way to achieve this?

Brian Postow
- 11,709
- 17
- 81
- 125
1
vote
2 answers
Proper indendation with backslash line continuations in python-mode.el
I like to use python-mode.el and (gnu) emacs for editing my python files. If I use parentheses for multiline continuations, indentation works as I expect. For example,
foo_long_long_long_long = (
bar_long_long_long_long[
…

Mr Fooz
- 109,094
- 6
- 73
- 101
1
vote
1 answer
Emacs python-mode file mode specification error
I am using GNU Emacs 24.3.1 (i386-mingw-nt5.1.2600) of 2013-03-17 on MARVIN on a Windows 7 Enterprise, SP1 machine.
I have tried to install python-modevia ELPA, but got the following message in the *Compile-log*:
Leaving directory…

Michele Ancis
- 1,265
- 4
- 16
- 29
1
vote
1 answer
Q: Set python indent to 2 spaces in emacs 24?
I did what it said in this very helpful thread on how to it in Emacs 23, but it wouldn't work. The indent level keeps on being 4 (the default).
I am on a Mac (MacOS 10.8) using Emacs 24.3.

Tom
- 2,769
- 2
- 17
- 22
1
vote
1 answer
quickfix window in vertical split with maximum height
I have recently started using vim plugins and was trying to setup python-mode with pep8. I wanted to see split the window vertically. I was able to achieve it using autocmd commad as :
:autocmd FileType qf wincmd L
But now height of file window…

Nirmal Agarwal
- 195
- 2
- 6
1
vote
2 answers
Emacs24 and python-mode: indention in docstrings
I have the following code/text:
def f():
"""
Return nothing.
.. NOTE::
First note line
second note line
In Emacs23 (23.4.1) I was able to press TAB in the last line ("second note line"; nomatter how this line was indented) and…

Daniel Krenn
- 251
- 2
- 9
1
vote
2 answers
Setting default height on vim windows
I am using python-mode with vim and want to have the horizontal splits from the plugin show 17 lines of content.
In my .vimrc I've tried:
autocmd BufEnter __run__ :resize (the difference of the current default.)
Unfortunately this didn't workout…

hicksca
- 65
- 7
1
vote
0 answers
Jedi-VIM: Popup appears just in some cases
I installed several plugins to create a kind of python-IDE with vim 7.3 on Mac (Yosemite).
See my .vimrc for a list of plugins - settings:
set nocompatible " be iMproved, required
filetype off " required
" set the…

Markus
- 55
- 6
1
vote
1 answer
Emacs Python parenthesis indent
My Emacs default indent like this:
arr = {
'a',
'b',
'c',
'd'
}
but I want it like this:
arr = {
'a',
'b',
'c',
'd'
}
How can I do ?
I use python-mode, Emacs version: 24.4.50.1.
Thanks.

Jerry Zhang
- 1,198
- 1
- 17
- 36
1
vote
1 answer
vim python-mode vertical windows
I'm using vim with the python-mode plugin. All windows (runtime, documentation, Error, etc) opened by python-mode split the window horizontally. How can I change the default behavior to split vertically?

Dendy
- 13
- 2
1
vote
1 answer
How to start emacs with ipython shell running in one side of a divided window?
I´d like to have the following workflow using emacs 23.4 as a python (2.7) IDE on Debian:
Emacs initiates with 2 windows side-by-side when opening a file like $ emacs file.py
There´s already a shell in the left window and the buffer file.py in the…

Allan Felipe
- 201
- 2
- 8
1
vote
2 answers
reset python interpreter for logging
I am new to Python. I'm using Vim with Python-mode to edit and test my code and noticed that if I run the same code more than once, the logging file will only be updated the first time the code is run. For example below is a piece of code called…

Y. Pei
- 305
- 3
- 11