From e79817e1ba9a0f48f3dbeaa1e9a25b21e33e40e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Thu, 22 Sep 2016 11:42:57 +0200 Subject: [PATCH 1/3] Change url to fetch cygwin packages from to Switch --- windows_cygwin/build.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows_cygwin/build.bat b/windows_cygwin/build.bat index 405f244c..500e58d8 100755 --- a/windows_cygwin/build.bat +++ b/windows_cygwin/build.bat @@ -3,7 +3,7 @@ choco install -y --allowEmptyChecksum firefox googlechrome wget notepadplusplus call refreshenv wget -c https://cygwin.com/setup-x86_64.exe -setup-x86_64.exe -R "C:\cygwin64" -s http://cygwin.netbet.org/ -q -g -P curl,zsh,git,vim,wget,xz,tar,gawk,bzip2,subversion,zlib,fontconfig,clang,cmake,lua,perl,the_silver_searcher +setup-x86_64.exe -R "C:\cygwin64" -s http://mirror.switch.ch/ftp/mirror/cygwin/ -q -g -P curl,zsh,git,vim,wget,xz,tar,gawk,bzip2,subversion,zlib,fontconfig,clang,cmake,lua,perl,the_silver_searcher set script_path=%~dp0 set repo_path=%script_path%\..\ From 4a13ecebb22c68f51a1307075dc001c75563edec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Thu, 22 Sep 2016 11:45:29 +0200 Subject: [PATCH 2/3] Fix path to parts of vimrc on cygwin --- .vimrc.cygwin | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.vimrc.cygwin b/.vimrc.cygwin index 18efa097..d116d6ab 100755 --- a/.vimrc.cygwin +++ b/.vimrc.cygwin @@ -1,6 +1,6 @@ -source .vimrc.cygwin.prelude -source .vimrc.common.plugins -source .vimrc.cygwin.plugins -source .vimrc.common.epilogue -source .vimrc.cygwin.settings +source ~/dev/dotfiles/.vimrc.cygwin.prelude +source ~/dev/dotfiles/.vimrc.common.plugins +source ~/dev/dotfiles/.vimrc.cygwin.plugins +source ~/dev/dotfiles/.vimrc.common.epilogue +source ~/dev/dotfiles/.vimrc.cygwin.settings From 17d8b71d9d186b07f4b11b13c8ac4e90d1cf8c8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Thu, 22 Sep 2016 11:50:45 +0200 Subject: [PATCH 3/3] Install vim plugins under cygwin automatically --- .vimrc.cygwin | 2 +- windows_cygwin/build_insider.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.vimrc.cygwin b/.vimrc.cygwin index d116d6ab..6e30ceda 100755 --- a/.vimrc.cygwin +++ b/.vimrc.cygwin @@ -1,4 +1,4 @@ -source ~/dev/dotfiles/.vimrc.cygwin.prelude +source ~/dev/dotfiles/.vimrc.common.prelude source ~/dev/dotfiles/.vimrc.common.plugins source ~/dev/dotfiles/.vimrc.cygwin.plugins source ~/dev/dotfiles/.vimrc.common.epilogue diff --git a/windows_cygwin/build_insider.sh b/windows_cygwin/build_insider.sh index 507496b6..976f703e 100755 --- a/windows_cygwin/build_insider.sh +++ b/windows_cygwin/build_insider.sh @@ -25,3 +25,6 @@ ln -vfs $DIR/windows_cygwin/.minttyrc $HOME/ ln -vfs $DIR/.gitconfig.cygwin $HOME/.gitconfig ln -vfs $DIR/.vimrc.cygwin $HOME/.vimrc +# reinstall plugins with the new vimrc +echo "\n" | vim +PluginInstall +qa +