vim - Do python files need to be on the same drive as the plugin Python-mode for its functionality to work -
i'm using plugin python-mode
gvim
on windows machine.
i have following python-mode
specific settings in vimrc
file:
"------------------------------------------------------------ " settings 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 completeopt=longest,menuone function! omnipopup(action) if pumvisible() if a:action == 'j' return "\<c-n>" elseif a:action == 'k' return "\<c-p>" endif endif return a:action endfunction inoremap <silent><c-j> <c-r>=omnipopup('j')<cr> inoremap <silent><c-k> <c-r>=omnipopup('k')<cr>
these suggested in this tutorial.
vimrc
on m:
drive.
now if open vim (set open in m:
drive) , open python file on p:
drive , try save file following error message:
if move file pi.py
m: drive happy surely use files in vim
shouldn't condition file being edited on same drive vim?
can change settings python-mode
function on files other drives?
edit python-mode has following setting looks promising:
" additional python paths
let g:pymode_paths = []
so in vimrc
i've added
let g:pymode_paths = ['p:\comp apps\python\']
but still if open .py file location same error message.
if execute :lcd %:p:h
python-mode plugin seems working. can use set autochdir
in vimrc
: not sure if there disadvantages using setting.
Comments
Post a Comment