Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Detect correctly Windows OS and work with pathogen.vim too #7

Closed
wants to merge 1 commit into from

2 participants

@jarmo

Windows OS is not detected correctly at the moment (it was failing for me for example)
And if pathogen.vim is is in use then deploy_local copies to wrong place which makes snipmate not work even with it's own snippets.

@jarmo jarmo detect correctly Windows OS
work with pathogen.vim too
e79e3e9
@scrooloose
Owner

Pulled, cheers :)

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 23, 2010
  1. @jarmo

    detect correctly Windows OS

    jarmo authored
    work with pathogen.vim too
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +3 −1 Rakefile
View
4 Rakefile
@@ -3,7 +3,9 @@
namespace :snippets_dir do
task :find do
- @snippets_dir = File.join(ENV['VIMFILES'] || ENV['HOME'] || ENV['USERPROFILE'], RUBY_PLATFORM =~ /mswin32/ ? "vimfiles" : ".vim", "snippets")
+ vim_dir = File.join(ENV['VIMFILES'] || ENV['HOME'] || ENV['USERPROFILE'], RUBY_PLATFORM =~ /mswin|msys|mingw32/ ? "vimfiles" : ".vim")
+ pathogen_dir = File.join(vim_dir, "bundle")
+ @snippets_dir = File.directory?(pathogen_dir) ? File.join(pathogen_dir, "snipmate", "snippets") : File.join(vim_dir, "snippets")
end
desc "Purge the contents of the vim snippets directory"
Something went wrong with that request. Please try again.