# HG changeset patch # User Kyo Nagashima # Date 1334084823 -32400 # Node ID d44a1d7dfc341157c0c8a206fe7c611978d43935 # Parent 2b5144befdbb88a4606c62f891741d21656232b5 add `g:clam_winpos` option `g:clam_winpos` controls where to oepn output window. diff -r 2b5144befdbb -r d44a1d7dfc34 doc/clam.txt --- a/doc/clam.txt Tue Apr 03 18:49:11 2012 -0400 +++ b/doc/clam.txt Wed Apr 11 04:07:03 2012 +0900 @@ -87,6 +87,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* diff -r 2b5144befdbb -r d44a1d7dfc34 plugin/clam.vim --- a/plugin/clam.vim Tue Apr 03 18:49:11 2012 -0400 +++ b/plugin/clam.vim Wed Apr 11 04:07:03 2012 +0900 @@ -18,6 +18,10 @@ let g:clam_autoreturn = 1 endif " }}} +if !exists('g:clam_winpos') "{{{ + let g:clam_winpos = 'vertical botright' +endif "}}} + "}}} " Function {{{ @@ -30,7 +34,7 @@ " 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