FG
💻 Software

How can I make .vimrc read from an external file?

Fresh5 days ago
Mar 15, 202626502 views
Confidence Score0%
0%

Problem

I'd like to modify my to read the value of a variable from an external file. How can I do this? Specifically, a friend and I share a git repo with our files, but there are a few small differences in what we want in our configs. So most of the file is common, but we use if statements to determine wh…

Error Output

let whoami = "user2"
if whoami == "user1"
...

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I make .vimrc read from an external file?

Low Risk

in your main .vimrc file: then just put your variable statement in that file:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment