summaryrefslogtreecommitdiffstats
path: root/ftplugin/rnoweb.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/rnoweb.vim')
-rw-r--r--ftplugin/rnoweb.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/ftplugin/rnoweb.vim b/ftplugin/rnoweb.vim
index 5ea2cdd6..60566be1 100644
--- a/ftplugin/rnoweb.vim
+++ b/ftplugin/rnoweb.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'r-lang') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'r-lang') != -1
+ finish
+endif
+
" ftplugin for Sweave files containing both LaTeX and R code
"
" Maintainer: Johannes Ranke <jranke@uni-bremen.de>
@@ -59,5 +61,3 @@ vnoremap <buffer> r :w >> ~/.r-pipe<CR>
" Write and process mode (somehow mapping <C-Enter> does not work)
inoremap <M-Enter> <Esc>:execute line(".") 'w >> ~/.r-pipe'<CR>o
-
-endif