Answer the question
In order to leave comments, you need to log in
How to use portable Vim and Python together?
There are portable Vim, Python and this directory structure with them on Windows:
C:.
├─── portable_programs
│ ├─── vim
│ │ ├─── vim82
│ │ │ └─── vim.exe
│ │ ├─── vimfiles
│ │ ├─── _vimrc
│ ├─── portable_python
│ │ ├─── App
│ │ │ ├─── Python
│ │ │ │ └─── python.exe
"Попытка 1"
let $HOME=$VIM
map <F5> :! "~\.\..\..\portable_python\App\Python\python.exe" %<CR>
"Попытка 2"
map <F5> :! "$VIM\..\portable_python\App\Python\python.exe" %<CR>
"Попытка 3"
$PYTHON = "C:\\portable_programs\\portable_python\\App\\Python\\python.exe"
map <F5> :e $PYTHON %<CR>
map <F4> :e $VIM\_vimrc <CR>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question