Using Vim version: 7.4
In this line of the Python-mode documentation: https://github.com/python-mode/python-mode/blob/01c3131343aaa3c76f8cb656b5e9f54ac90ca04b/doc/pymode.txt#L234
it says that I can turn-on the variable (g:pymode_run
) using
let g:pymode_run=1
,
to run my python file using “:PymodeRun
” or use it via ‘<leader>r
’
If there is no modification to my Vimrc file, the default setting is:
let g:pymode_run=1
However, if the default setting in your vimrc file is
let g:pymode_run=0
,
you load your .vimrc, and attempt to then change the variable using
let pymode_run=1
or let g:pymode_run=1
(both of this is equivalent, as we are dealing with the global variable here),
:PymodeRun
doesn’t work.
If you do “:so ~/.vimrc
” after changing let g:pymode_run=1
, it doesn’t work either.
The only solution to this, that I found, is to change to “let g:pymode_run=1
” in your ~/.vimrc, shutdown VIM and restart vim.
Then it works as expected.
Since pymode_run
is a variable which determines whether :PymodeRun
should run or not, shouldn’t changing the variable pymode_run
from 0 to 1 in the current VIM session, also enable running :PymodeRun
, withough having to reload VIM?