Permalink
Browse files

Fixed plugin so only loads once per vim session

  • Loading branch information...
1 parent 1d9183e commit ac138697f3e1bf8747397270c1940d9103d53302 @spf13 committed Jun 16, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 plugin/preview.vim
View
6 plugin/preview.vim
@@ -23,6 +23,12 @@
" MA 02111-1307 USA
" ============================================================================
+" To keep the plugin from being loaded more than once
+if exists("loaded_preview")
+ finish
+endif
+let loaded_preview = 1
+
function s:PreviewVerifyRuby()
if has('ruby')
return 1

0 comments on commit ac13869

Please sign in to comment.