From 09e9abab2c180e9a71d61641e0b9187485dd33a0 Mon Sep 17 00:00:00 2001 From: ziro Date: Sun, 12 Jul 2020 18:14:10 +0700 Subject: [PATCH] + Detect OS and source the config --- .config/vim/vimrc | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.config/vim/vimrc b/.config/vim/vimrc index 82ba838..6c27df5 100755 --- a/.config/vim/vimrc +++ b/.config/vim/vimrc @@ -22,11 +22,14 @@ so ~/.config/vim/universal " so C:\_config\vim\universal -" *nix (Linux/Mac) -so ~/.config/vim/nix +" Automatically source config for the correct OS +if has('win64') || has('win32') || has('win16') + " Windows + " so C:\_config\vim\windows +else + " *nix (Linux/Mac) + so ~/.config/vim/nix +endif -" Windows -" so C:\_config\vim\windows - -" - PlugIns +" ----- PlugIns source ~/.config/vim/plugins