Change $PATH
inside vim
Keywords
neovim, vim, osx, change path, set path,
Save the following script in /usr/local/bin/cpvim
#!/bin/zsh
source ~/.zshrc > /dev/null 2>&1
PATH=$VIM_PATH
exec nvim "$@"
Add the following to your .zshrc
alias vim=/usr/local/bin/cpvim
Reuse
Citation
BibTeX citation:
@online{krishnamurthy2015,
author = {Krishnamurthy, Dheepak},
title = {Change {`\$PATH`} Inside Vim},
date = {2015-09-19},
url = {https://kdheepak.com/blog/change-path-inside-vim/},
langid = {en}
}
For attribution, please cite this work as:
D.
Krishnamurthy, “Change `$PATH` inside vim,” Sep. 19, 2015.
https://kdheepak.com/blog/change-path-inside-vim/.