From d6e6317fcabe2af365cc0282571f5861f7f48fd8 Mon Sep 17 00:00:00 2001 From: Philip Borenstein Date: Sun, 21 Nov 2010 20:37:37 -0500 Subject: [PATCH] Make sure that vim is the default is nothing else is set --- README | 2 +- vimfluence | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README b/README index bc8d3b4..3df5eee 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ -Vimfluence - Edit Confluence with Vim +Vimfluence - Edit Confluence with Vim (or some other editor) Free yourself from the shackles of WYSIWYG and TextArea wiki editors. Reach unheralded levels of productivity by editing your Confluence wiki with the diff --git a/vimfluence b/vimfluence index a8c97e7..9503849 100755 --- a/vimfluence +++ b/vimfluence @@ -13,7 +13,7 @@ use URI::Split qw( uri_split uri_join ); my ($wiki_url, $space, $title, $editor); -$editor = $ENV{WIKI_EDITOR} || $ENV{VISUAL} || $ENV{EDITOR}; +$editor = $ENV{WIKI_EDITOR} || $ENV{VISUAL} || $ENV{EDITOR} || "vim +\"set ft=confluencewiki\""; if ($#ARGV == 1) { # `WIKI_URL=... vimfluence SPACE "PAGE NAME"`