Vim as a Python IDE - Martin Brochhaus
Why Stack Overflow recommends it
Stack Overflow users link it as the standard walkthrough for configuring Vim for Python, and then ask follow-up questions about the specific settings and plugins it shows.
Recommended by 3 people across 3 different months, 2013 to 2020.
What it is
A 2012 PyCon Asia Pacific talk in which Martin Brochhaus walks through turning Vim into a Python IDE. He demonstrates plugins such as Pathogen, python-mode, rope and Ctrl-P, along with .vimrc settings, as a live setup tutorial.
What people said
Recommends pesho hristov · 2013-09 · Stack Overflow · on “The equivalent of a GUI "Quick Open" in Emacs on CLI?”
I found it where I didn't want to :( ... A plugin, called "Control-P" for vim - provides the exact same functionality the author of the question is looking for. For example - on this video - [this video] - go to 26:55, and there you'll find a quick and very clean example of it. So, with one command you point to the doc-root, and after that - you're good to go :) ...
Recommends Johannes Maria Frank · 2014-08 · Stack Overflow · on “what is the proper coding to add python-mode plugin to _vimrc”
You won't be lucky if you expect a single command in your virmrc. Turning vim into a python ide is a collection of multiple plugins you can either manage by hand or use a plugin manager like vundle. Best practice is to use your configuration along with a repository hosted for example on github using git. You can use mercurial or baazar just as well. Walking through one of the numerous tutorials on the net will be your only chance. For example here: [LINK] along with the video: [this video]
Recommends pkaramol · 2015-08 · Stack Overflow · on “Vim Pymode don't use actual env”
Ok this is far from optimal but here it goes: When it comes to efficiently switching between python2 and python3 venvs the main problem seems to be the fact that (I am quoting from this [LINK] reply) you need to have MacVim compiled against the Python you are using for the virtualenv Of course it does not seem to be a mac-only issue; vim cannot support both python2 and python3 (e.g. here [LINK] ). So a proposed workaround (which for the moment seems to be ok for me) is: a . completely uninstall any existing vim installations to set the environment from scratch b . set up a vim installation with python3 support as indicated here [LINK] c . sudo apt-get install vim-gnome (installs a python2 co
Cites whytheq · 2013-07 · Stack Overflow · on “filetype on or filetype off?”
I use the Pathogen plugin for gvim . When configuring I set the following in my vimrc file: call pathogen#infect() call pathogen#helptags() call pathogen#runtime_append_all_bundles() filetype on "force reloading *after* pathogen loaded Now I'm following this tutorial on Youtube [this video] by Martin Brochhaus to set up Vim to be useful for Python coding and he suggests the following: filetype off filetype plugin indent on syntax on So currently I have filetype on for pathogen but he is suggesting filetype off . What does this line of code do and how should I configure vimrc so Pathogen and Python are both happy?
Cites whytheq · 2013-07 · Stack Overflow · on “Creating a Python specific settings”
In this tutorial [this video] many setting are configured so Vim works well with Python . I'd like to use some of the settings only on Python files as I will also use the editor to edit lots of sql files. Is this the correct way to create Python specific settings? Create a file python.vim and locate it in the following directory: M:\vimfiles\after\ftplugin\ Add the following to the file: setlocal tw=79 setlocal colorcolumn=80 setlocal highlight Colorcolumn ctermbg=233 Do I need to use setlocal or will set suffice? Is setlocal highlight correct syntax?
Cites whytheq · 2013-07 · Stack Overflow · on “Do python files need to be on the same drive as the plugin Python-mode for its functionality to work”
I'm using the plugin python-mode for gVim on a windows machine. I have the following python-mode specific settings in my vimrc file: "------------------------------------------------------------ " settings for Python-mode " "----------------------------------------------------------- map <Leader>g :call RopeGotoDefinition()<CR> let ropevim_enable_shortcuts = 1 let g:pymode_rope_goto_def_newwin = "vnew" let g:pymode_rope_extended_complete = 1 let g:pymode_breakpoint = 0 let g:pymode_syntax = 1 let g:pymode_syntax_builtin_objs = 0 let g:pymode_syntax_builtin_funcs = 0 map <Leader>b Oimport ipdb; ipdb.set_trace() # BREAKPOINT<C-c> "Better navigating through omnicomplete option list set complete
Cites blancpain · 2014-02 · Stack Overflow · on “Cannot install vim ubuntu 13.10”
I am fairly new to Linux and vim so please have this in mind. A couple of days ago I compiled vim with python support largely using the method mentioned here: [LINK] (in particular: [this video] ) Everything was working alright, I even started getting to know my .vimrc and various options, but I realized that apparently I had not compiled vim with +clipboard (and +xterm_clipboard?). Since I wanted to be able to copy/paste text between vim and external applications, I decided to re-install it. I proceeded to delete all folders/files in my home folder (where I installed it in the first place), associated with vim (I fear that at this step something must have gone wrong) to prepare for the new insta
Cites Humble Learner · 2014-04 · Stack Overflow · on “Vim as Python IDE on Mac OSX”
I use vim for basic text editing but now I want to use as Python IDE. I don't know where to start. So, I did search and found this video [this video] . It gives me a very brief idea about setting up vim. I am still confused about the tools (vim or macvim), vim plugins, pathogens and how to setup as VIM ide. Experts, please help me by pointing me to the resources which can help me to understand and learn vim and unleash the power of vim as an IDE.
Cites jim jarnac · 2017-06 · Stack Overflow · on “Vim and python - jump to definition key binding”
The following youtube video [this video] shows that it is possible to jump to definition using vim for python. However when I try the same shortcut (Ctrl-G) it doesnt work... How is it possible to perform the same "jump to definition"? I installed the plugin Ctrl-P but not rope.
Cites ludog · 2020-02 · Stack Overflow · on “Can't jump to line in pyflakes quickfix window”
I recently installed the vim extension python-mode, which includes pyflakes. When I save a python file to disk, pyflakes automatically detects errors and style violations and displays them in a quickfix window. This screencast [this video] shows that hitting enter on an item from the quickfix window should jump to the corresponding line in the source code, but when I hit enter I get the error "E21: Cannot make changes, 'modifiable' is off". I can make the buffer modifiable with :set ma , and then jumping works, but I don't want to have to set this every time. As suggested in this answer [LINK] , I've tried to see if a plugin is making the buffer non-modifiable, but couldn't discover anything. :ve