Commits

Kyo Nagashima committed d44a1d7

add `g:clam_winpos` option

`g:clam_winpos` controls where to oepn output window.

Comments (0)

Files changed (2)

 
 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*
 
     let g:clam_autoreturn = 1
 endif " }}}
 
+if !exists('g:clam_winpos') "{{{
+    let g:clam_winpos = 'vertical botright'
+endif "}}}
+
 "}}}
 " Function {{{
 
 
     " Open the new window (or move to an existing one).
     if winnr < 0
-        silent! execute 'botright vnew ' . fnameescape(command)
+        silent! execute g:clam_winpos . ' new ' . fnameescape(command)
     else
         silent! execute winnr . 'wincmd w'
     endif