changes
This commit is contained in:
@@ -218,6 +218,17 @@ Plugin 'fatih/vim-go'
|
||||
" buffer explorer plugin
|
||||
Plugin 'jlanzarotta/bufexplorer'
|
||||
|
||||
" jupyter vim plugin
|
||||
"Plugin 'jupyter-vim/jupyter-vim'
|
||||
" Always use the same virtualenv for vim, regardless of what Python
|
||||
" environment is loaded in the shell from which vim is launched
|
||||
"let g:vim_virtualenv_path = '/home/arch/.vim/jupyter_vim_venv'
|
||||
"if exists('g:vim_virtualenv_path')
|
||||
" pythonx import os; import vim
|
||||
" pythonx activate_this = os.path.join(vim.eval('g:vim_virtualenv_path'), 'bin/activate_this.py')
|
||||
" pythonx with open(activate_this) as f: exec(f.read(), {'__file__': activate_this})
|
||||
"endif
|
||||
|
||||
" pretty python code
|
||||
let python_highlight_all = 1
|
||||
syntax on
|
||||
@@ -263,11 +274,11 @@ map <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR>
|
||||
|
||||
"python with virtualenv support
|
||||
py3 << EOF
|
||||
import os
|
||||
import sys
|
||||
if 'VIRTUAL_ENV' in os.environ:
|
||||
project_base_dir = os.environ['VIRTUAL_ENV']
|
||||
activate_this = os.path.join(project_base_dir,
|
||||
'bin/activate_this.py')
|
||||
execfile(activate_this, dict(__file__=activate_this))
|
||||
#import os
|
||||
#import sys
|
||||
#if 'VIRTUAL_ENV' in os.environ:
|
||||
# project_base_dir = os.environ['VIRTUAL_ENV']
|
||||
# activate_this = os.path.join(project_base_dir,
|
||||
# 'bin/activate_this.py')
|
||||
# execfile(activate_this, dict(__file__=activate_this))
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user