c91ebd7e6560

Merge.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Thu, 12 Apr 2012 17:14:38 -0400
parents 429731def5a9 (current diff) d44a1d7dfc34 (diff)
children e23d3b14230b 7e3f6e97e92c
branches/tags (none)
files doc/clam.txt plugin/clam.vim

Changes

--- a/doc/clam.txt	Thu Apr 12 17:13:26 2012 -0400
+++ b/doc/clam.txt	Thu Apr 12 17:14:38 2012 -0400
@@ -112,6 +112,15 @@
 
 Default: 1 (autoreturn is on)
 
+------------------------------------------------------------------------------
+3.2 g:clam_winpos                                   *ClamConfiguration_winpos*
+
+This option control where to open output window: >
+
+    let g:clam_autoreturn = 'topleft'
+
+Default: 'vertical botright' (split vertical, open at far right)
+
 ==============================================================================
 4. License                                                       *ClamLicense*
 
--- a/plugin/clam.vim	Thu Apr 12 17:13:26 2012 -0400
+++ b/plugin/clam.vim	Thu Apr 12 17:14:38 2012 -0400
@@ -18,6 +18,10 @@
     let g:clam_autoreturn = 1
 endif " }}}
 
+if !exists('g:clam_winpos') "{{{
+    let g:clam_winpos = 'vertical botright'
+endif "}}}
+
 "}}}
 " Functions {{{
 
@@ -29,7 +33,7 @@
 
     " Open the new window (or move to an existing one).
     if winnr < 0
-        silent! execute 'botright vnew ' . buffer_name
+        silent! execute g:clam_winpos . ' new ' . buffer_name
     else
         silent! execute winnr . 'wincmd w'
     endif