I tried installing my dotfiles on an unmodified Ubuntu install. My vimrc threw many errors. Ubuntu and other Debian based distros install the tiny build of vim by default, which has a lot of features disabled, including eval, but still loads the user vimrc. That means that many things that might be in there, including function and even let, do not exist in tiny. :help no-eval-feature provides a solution: Wrap everything that should only work in +eval capable versions of vim in if 1 … endif.
vim.tiny and vimrc
in
computer
configuration
dotfiles
vim