Skip to content

Commit

Permalink
Corrected Neovim support and Vundle .vim (#27)
Browse files Browse the repository at this point in the history
* Updated neovim support

Neovim now uses ~/.config/nvim/init.vim for initialization. (Source : neovim/neovim#3499)

*  Corrected Vundel rtp path and git repo

Vundle rtp path was not matching with automated Setup Script. As a result the :PluginInstall failed.
  • Loading branch information
mayanksuman authored and mutewinter committed Jun 16, 2016
1 parent 8ce3f38 commit 26328d0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion Rakefile
Expand Up @@ -18,7 +18,7 @@ PLUGINS_HEADER = <<-HEADER.chomp
| -------: | :--------- | :-------------- |
HEADER

FILES_TO_LINK = %w{vimrc gvimrc nvimrc}
FILES_TO_LINK = %w{vimrc gvimrc}

task :default => ['vim:link']

Expand All @@ -35,6 +35,14 @@ namespace :vim do
puts "Created link for #{file} in your home folder."
end
end
neovim_config_file = File.expand_path("~/.vim/nvimrc");
neovim_dot_file = File.expand_path("~/.config/nvim/init.vim")
if File.exists? neovim_dot_file
puts "#{neovim_dot_file} already exists, skipping link."
else
File.symlink(neovim_config_file, neovim_dot_file)
puts "Created link for nvimrc in your home folder."
end
rescue NotImplementedError
puts "File.symlink not supported, you must do it manually."
if RUBY_PLATFORM.downcase =~ /(mingw|win)(32|64)/
Expand Down
4 changes: 2 additions & 2 deletions vundle.vim
Expand Up @@ -5,11 +5,11 @@
set nocompatible " be iMproved
filetype off " required!

set runtimepath+=~/.vim/bundle/vundle/
set runtimepath+=~/.vim/bundle/Vundle.vim
call vundle#begin()

" let Vundle manage Vundle, required
Plugin 'gmarik/vundle'
Plugin 'VundleVim/Vundle.vim'

" Source all the plugins with a global variable set that ensures only the
" Plugin 'name' code will be called.
Expand Down

0 comments on commit 26328d0

Please sign in to comment.