Questions tagged [python-mode]

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)

150 questions
2
votes
1 answer

history across sessions in ipython using python-mode.el in emacs

How would I save history across sessions in ipython using python-mode.el in emacs. To be sure this feature works when I run ipython at the command prompt rather than from within emacs Thanks. python-mode 6.2.1+ ipython 1.2.1 emacs 24.3.1
Balu
  • 537
  • 4
  • 9
2
votes
1 answer

Vim pymode: meaning of key combination

I have come across the following key combinations(...i assume) in vim pymode documentation. , , , /. How are they to be interpreted?
dave-oo
  • 135
  • 1
  • 1
  • 6
2
votes
3 answers

VIM + netrw: open multiple files/buffers in the same window

I have recently switched to VIM using NERDTree and python-mode. As NERDTree seems to have a conflict with python-mode and breaks my layout if I close one out of multiple buffers, I decided to switch to netrw since it is shipped with VIM anyway. But…
Cord Kaldemeyer
  • 6,405
  • 8
  • 51
  • 81
2
votes
1 answer

Is it possible not to be asked to save the buffer before compile?

I'd like to know if there's some way not be prompted with: "Buffer changed, save first? (y or n)" everytime I execute the buffer [C-c C-c] after some change. I came across the variable py-ask-about-save, which has the following documentation: If…
Allan Felipe
  • 201
  • 2
  • 8
2
votes
0 answers

How can I point vim and python-mode to custom python version

I am trying to customize vim to work as python IDE using python-mode. But since my Redhat machine has python2.6 by default it's not picking up my custom libraries that reside in python2.7. How can I point python-mode to suggest autocomplete from…
pseudocode
  • 341
  • 1
  • 6
  • 15
2
votes
1 answer

Vim commands containing `r` cause me to replace

I'm using vim and the python-mode extension, but I'm having a hard time using commands that contain r. It's causing vim to replace characters instead of executing my desired command. Here is what the vim docs for python-mode say - let…
self.
  • 1,612
  • 4
  • 18
  • 35
2
votes
1 answer

RopeGenerateAutoimportCache on vim startup

I seem to have to run RopeGenerateAutoimportCache every time I open my python project in vim before RopeAutoImport will work. If I run RopeAutoImport before caching the projects modules I get the following error: Global name my_func not found! Is…
Brendan Maguire
  • 4,188
  • 4
  • 24
  • 28
2
votes
1 answer

How to configure emacs to work with ipython

I'm using ubuntu 14.04, emacs 24.3.1, python 2.7.6, ipython 1.2.1, python-mode 6.1.3. Ipython has been working well within emacs for at least a year, however, I have the following problem since two weeks ago. use C-c! to start default interpreter,…
calbear
  • 77
  • 3
2
votes
1 answer

Two different buffers, same python shell

I just started using emacs, and installed python-mode.el, along with a few extra add-ins (following Jess Hamrick's setup in Emacs as a python IDE). I find myself with one tricky issue. I want to edit different buffers, but I want to be able to send…
Pablo
  • 10,425
  • 1
  • 44
  • 67
2
votes
2 answers

How to indent code in Emacs with python-mode?

I am running Emacs with python-mode.el for coding in Python. I hope to learn how to make a region of code indented well automatically. Following code is not indented well. while match != None: if match.group(1): …
Tim
  • 1
  • 141
  • 372
  • 590
2
votes
1 answer

automatically close pylint window after python code window is close in VIM

How can I set automatically close pylint window after python code window is close in VIM? Every time I quit from vim, but pylint window still displayed. I want to automatically close pylint warning window when I quit from python code. I know the way…
Ertuğrul Altınboğa
  • 2,187
  • 4
  • 17
  • 25
2
votes
0 answers

Emacs. Autocompletion in python shell not working for loaded file

I'm new in Emacs, and i was trying to set up environment for python development. I'm using python_mode 6.1.3 and jedi. This is my whole .emacs file: (package-initialize) (defun toggle-fullscreen () (interactive) (x-send-client-message nil 0 nil…
Maciej
  • 193
  • 2
  • 11
2
votes
2 answers

emacs fix tab indentation for python

Emacs tab indentation in python mode is using tab instead of 4-spaces. My emacs init.el file contains: (setq-default indent-tabs-mode t) (setq-default tab-width 4) (setq indent-line-function 'insert-tab) I have tried: (setq-default…
SKV
  • 274
  • 4
  • 13
2
votes
0 answers

Emacs interactive Python mode delays evaluation

When I run a Python 3.3.4 prompt inside Emacs 24.3 on Windows 7, correct commands are evaluated immediately, but incorrect ones are delayed (I have to press Enter one more time), as seen below: >>> 1 1 >>> nonsense >>> Traceback (most recent call…
marczellm
  • 1,224
  • 2
  • 18
  • 42
2
votes
2 answers

Configuring new modes in Emacs: installing python-mode.el

I am trying to configure emacs with python-mode.el. I have done plenty of research, although I am still novice because I am not sure how to configure everything. I have used the following resources, which have been helpful: Why I chose…
modulitos
  • 14,737
  • 16
  • 67
  • 110