--- 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