vim

(Neo)vim python support and active virtualenv conflict

(Neo)vim python support and active virtualenv conflict Question: I’ve got ordinarily supported Python under Neovim init.vim: ” Plug ‘plytophogy/vim-virtualenv’ if has(‘nvim’) Plug ‘Shougo/deoplete.nvim’, { ‘do’: ‘:UpdateRemotePlugins’ } else Plug ‘Shougo/deoplete.nvim’ Plug ‘roxma/nvim-yarp’ Plug ‘roxma/vim-hug-neovim-rpc’ endif Plug ‘zchee/deoplete-jedi’ Plug ‘davidhalter/jedi-vim’ When I start nvim when some virtual environment is active, it begins with this error message …

Total answers: 1

python-rope/ropevim doesn't work properly

python-rope/ropevim doesn't work properly Question: I’ve already installed these, pip list: rope (0.10.3) ropemode (0.3) ropevim (0.7.0) All the vim plugins I have: Plugin ‘gmarik/vundle’ Plugin ‘scrooloose/nerdtree’ Plugin ‘jistr/vim-nerdtree-tabs’ Plugin ‘altercation/vim-colors-solarized’ Plugin ‘kien/ctrlp.vim’ Plugin ‘SirVer/ultisnips’ Plugin ‘honza/vim-snippets’ Plugin ‘jiangmiao/auto-pairs’ Plugin ‘scrooloose/nerdcommenter’ Plugin ‘vim-airline/vim-airline’ Plugin ‘vim-airline/vim-airline-themes’ Plugin ‘Valloric/YouCompleteMe’ Plugin ‘majutsushi/tagbar Plugin ‘Yggdroot/indentLine’ Plugin ‘xolox/vim-misc’ Plugin ‘xolox/vim-session’ …

Total answers: 1

Powerline Installation Issues for Vim/Tmux on Mac OSX 10.10.5

Powerline Installation Issues for Vim/Tmux on Mac OSX 10.10.5 Question: I’ve tried multiple times to follow the installation instructions for Powerline outlined here, but no matter what I do, these status bar just doesn’t appear. I’m on Yosemite and trying to install Powerline for Vim with Tmux for a Python dev environment. Here’s my ~/.vimrc …

Total answers: 3

Why does using from __future__ import print_function breaks Python2-style print?

Why does using from __future__ import print_function breaks Python2-style print? Question: I am new at programming with python, and I am trying to print out with a separator and end but it is still giving me a syntax error. I am using python 2.7. Here is my code: from __future__ import print_function import sys, os, …

Total answers: 1

How can I set the Python max allowed line length to 120 in Syntastic for Vim?

How can I set the Python max allowed line length to 120 in Syntastic for Vim? Question: I’m using python-mode for Vim, I prefer for there to be 120 character lines rather than the stark 80 as defined in the PEP8 standard. In python-mode, this is easy. I just add the following to my ~/.vimrc: …

Total answers: 4

How to pass arguments from vimscript functions to python interface?

How to pass arguments from vimscript functions to python interface? Question: For example, processing positional arguments: function! Example(arg) python <<_EOF_ # do something with a:arg _EOF_ endfunction or the … list: function! Example(…) python <<_EOF_ # do something with a:000, a:1, a:2, etc. _EOF_ endfunction Is there anyway I can do this? Asked By: Meow …

Total answers: 1

Vim: Highlight a Single Character at Column 80

Vim: Highlight a Single Character at Column 80 Question: So, in good PEP fashion I am attempting to keep column width to below 80 for Python code. I have been using the colorcolumn=80 option in my .vimrc but in the terminal (I am not a fan of gvim or macvim) the effect of a fully …

Total answers: 2

Switch Python Version for Vim & Syntastic

Switch Python Version for Vim & Syntastic Question: Is it possible to change the python version used by syntastic for syntax checking? As the Issue https://github.com/scrooloose/syntastic/issues/385 indicates I could use virtual-env. But is it also possible just with syntastic or vim commands? Asked By: mjb4 || Source Answers: Not really, but you can get the …

Total answers: 8

vim: .vimrc doesn't load properly with python files

vim: .vimrc doesn't load properly with python files Question: Everytime I load a .py file, my plugins takes long to load and my vimrc seem to not load properly and shows weird behaviour. For example if I check my tabstop length with :set tabstop it says tabstop=2 as it should but when I insert one …

Total answers: 2

Running Python code in Vim

Running Python code in Vim Question: I am writing Python code using Vim, and every time I want to run my code, I type this inside Vim: :w !python This gets frustrating, so I was looking for a quicker method to run Python code inside Vim. Executing Python scripts from a terminal maybe? I am …

Total answers: 25