Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 424 Bytes

20-custom-path-vim.md

File metadata and controls

23 lines (19 loc) · 424 Bytes
title category date tags keywords summary
Change `$PATH` inside vim
blog
2015-09-19 09:05:36 -0600
neovim, vim, osx
neovim, vim, osx, change path, set path,
How to change `$PATH` from inside vim

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