Menu
  • HOME
  • TAGS

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

python,vim,pylint,python-mode,syntastic

You can pass additional arguments to each linter. For pylint, you can use: let g:syntastic_python_pylint_post_args="--max-line-length=120" ...

Settings preferences to pyflakes (with python-mode in vim)

python,vim,python-mode,pyflakes

See :help 'g:pymode_lint_ignore in Vim. For your case, add the following to your vimrc. let g:pymode_lint_ignore = "W0611" ...

Auto-indent in python-mode 6.2.0

python,emacs,indentation,python-mode

Customize py-electric-colon-active-p to non-nil Also py-electric-colon-bobl-only must be set to nil in this case - default is t bobl stands for beginning of block...

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

python,vim,nerdtree,python-mode,netrw

But having a file opened, if I open netrw by typing :E and open another file by hitting <enter> VIM closes the old one and opens the new one in the same window. [...] How can I open multiple files/buffers in the same window using netrw? Buffers are added...

vim python-mode vertical windows

python,vim,python-mode

It doesn't appear that python-mode provides an option that allows you to control the direction of its splits. However, you can create an autocommand which will automatically move the window to the right side when it opens. autocmd BufEnter {window_name_list} :wincmd L So for python-mode, the command should look like...

Disable completion pop-up in python-mode shadowing indentation

emacs,autocomplete,indentation,python-mode

You didn't tell which python-mode. Also assume it's about TAB-key. WRT python-mode.el comment out the present key-setting and write the desired one. Like that: ;; (define-key map (kbd "TAB") 'py-indent-or-complete) (define-key map (kbd "TAB") 'py-indent-line) ...

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

emacs,ipython,python-mode

The variable py-prompt-on-changed-p appears to be what the O.P. is seeking. The doc-string states: When called interactively, ask for save before a changed buffer is sent to interpreter. See also line 10284: http://bazaar.launchpad.net/~python-mode-devs/python-mode/python-mode/view/head:/python-mode.el...

VIM: Use python3 interpreter in python-mode

python,vim,ubuntu-14.04,python-3.4,python-mode

Try adding this to your .vimrc file let g:pymode_python = 'python3' I found this in the help docs. In vim type: :help python-mode By default, vim is not compiled with python3 support, so when I tried this, I got all kinds of errors... Which tells me it's trying to use...