Skip to content

Commit

Permalink
replaces pathogen with vim-plug
Browse files Browse the repository at this point in the history
  • Loading branch information
skim committed Mar 6, 2016
1 parent 245db44 commit 29eea10
Show file tree
Hide file tree
Showing 9 changed files with 2,596 additions and 494 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.DS_Store
*.sw[op]
.netrwhist
vim/plugged
16 changes: 12 additions & 4 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,30 @@ For Mac OS X, install the latest stable `vim` via homebrew:

For Linux, install the latest vim using your distro's package manager

## Notes

This uses [vim-plug](https://github.com/junegunn/vim-plug) for managing plugins. It also uses Chris Kempson's [Tomorrow Night](https://github.com/chriskempson/vim-tomorrow-theme/) colorscheme by default.

## Install

After cloning the project, run the following:

git submodule update --init
./activate.rb

cd vim/bundle/command-t/ruby/command-t
# Start vim to install plugins
vim
:PlugInstall

# Quit vim and set up Command-T
cd vim/plugged/Command-T/ruby/command-t
<switch to your system ruby>
ruby extconf.rb
make clean
make

Be warned, running `./activate.rb` will overwrite any existing .vimrc, .gvimrc or .vim/ files you
WARNING: running `./activate.rb` will overwrite existing .vimrc and .vim you
have in your home directory.

## Credit

This was originally a fork of Drew Olsen's [vim_dotfiles](https://github.com/drewolson/vim_dotfiles).
This was originally a fork of Drew Olsen's [vim_dotfiles](https://github.com/drewolson/vim_dotfiles). Some things were also taken from [here](https://bitbucket.org/sjl/dotfiles).
6 changes: 3 additions & 3 deletions activate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
require 'fileutils'

working_dir = File.expand_path(File.dirname(__FILE__))
home_dir = File.expand_path("~")
dot_files = [File.join(working_dir, "vim"), File.join(working_dir, "vimrc")]
home_dir = File.expand_path("~")
dot_files = %w(vim vimrc)

dot_files.each do |filename|
sym_link = File.join(home_dir, ".#{File.basename(filename)}")

FileUtils.rm_rf sym_link if File.symlink?(sym_link) || File.exist?(sym_link)
FileUtils.ln_s filename, sym_link
FileUtils.ln_s File.join(working_dir, filename), sym_link
end
Loading

0 comments on commit 29eea10

Please sign in to comment.