From f35aa9abcf6b7499452ae82b5b49472dc28ccf56 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Fri, 2 Aug 2019 23:43:47 -0400 Subject: [PATCH] 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. --- vim/.gitignore | 3 +++ vim/vimrc | 3 +++ 2 files changed, 6 insertions(+) diff --git a/vim/.gitignore b/vim/.gitignore index 877403f..e27a546 100644 --- 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 index ab1754d..261cd3e 100644 --- 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 -- libgit2 0.28.4