westurner / dotfiles

Bash, Python, IPython scripts, and userspace configuration https://westurner.org/dotfiles/

Home Page:https://westurner.org/dotfiles/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ENH: venv.vim: command-completion

westurner opened this issue · comments

" venv.vim
" :Cdwrd, :Cdsrc, :Cdetc completion

" help command-completion
" -complete=dir
" -complete=file (file or dir)
" -complete=function_name

function function_name
" cd to _DIR
" then -complete=dir
endfunction

venv.py > venv.vim

# venv.py
VIM_HEADER_TEMPLATE = '''... ${pathvar} ...'''
VIM_FUNCTION_TEMPLATE = ''' ' ''''
VIM_COMMAND_TEMPLATE = ''' ' '''