   .pipe gulp.dest(homePath)
 
   gulp.src('')
-  .pipe installBundle()
-  .pipe installBundle()
-  .pipe cleanBundle()
+  .pipe pluginUpdate()
+  .pipe pluginUpdate()
+  .pipe pluginClean()
 
 gulp.task 'clean', ->
   del(pluginPath, {force: true})
 
 gulp.task 'install', ['build'], ->
   gulp.src('')
-  .pipe installBundle()
+  .pipe pluginInstall()
 
 gulp.task 'build', ['clean'], ->
   gulp.src('plugin/**/*.vim')

gulp.task 'watch', ['install'], ->
  $.watch ['./*.vim', './plugin/**/*.vim'], (file) ->
    if file.event is 'unlink' then del(file.path, {force: true})
    if file.relative is 'plugins.vim' then gulp.src('').pipe installBundle()
  .pipe gulp.dest(pluginPath)

remotePluginPath = 'razor-x/vimrc'
pluginPath = "#{homePath}/.vim/bundle/vimrc"

pluginInstall = () -> $.shell('vim -c PluginInstall -c quitall')
pluginUpdate = () -> $.shell('vim -c PluginUpdate -c quitall')
pluginClean = () -> $.shell('vim -c PluginClean -c quitall')

gulp.task 'default', ['watch']

