commit f35aa9abcf6b7499452ae82b5b49472dc28ccf56 (patch)
parent eaea166eb4d8c4ba457ed14947924c226d4c99f9
Author: Alex Karle <alex@karle.co>
Date: Fri, 2 Aug 2019 23:43:47 -0400
vim: add sourcing of option per-computer config
This is something I should have added a while ago. My work computer has
certain settings I want just for work (and maybe not public).
The call to runtime! doesn't fail if it doesn't exist, but will search
~/.vim for this per-computer config file.
Diffstat:
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/vim/.gitignore b/vim/.gitignore
@@ -12,3 +12,6 @@ pack/
# Ignore tags
tags
+
+# Optional per-computer configuration
+.vimrc.local
diff --git a/vim/vimrc b/vim/vimrc
@@ -205,4 +205,7 @@ command! CD exe 'cd ' . expand('%:h')
command! PDB call vimrc#PerlDebugger()
" }}}
+" Load optional config (in ~/.vim)
+runtime! .vimrc.local
+
" vim:fdm=marker:sts=4:sw=4