Vim: find runtime path $VIM, $VIMRUNTIME
April 15, 2014 11:32:50 Last update: April 15, 2014 11:32:50
You can set (shell) environment variables
$VIMRUNTIMEand vim will honor them. But there are default values that vim takes if you don't set them. Here are some methods to find the default values.
:versonvim command. It displays all compilation flags used to compile vim, including "fall-back for $VIM".
:set runtimepathvim command (or shorthand
- Run this command in shell:
vim -e -T dumb --cmd 'exe "set t_cm=\<C-M>"|echo $VIMRUNTIME|quit' | tr -d '\015'