From fc344bafa0b5a7606bcddfbd48abcbaeb31a09a8 Mon Sep 17 00:00:00 2001 From: jmriego Date: Thu, 25 Jul 2024 22:38:56 +0200 Subject: [PATCH 1/2] Allow user to remove percentage sign in VimuxHeight --- plugin/vimux.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/vimux.vim b/plugin/vimux.vim index 76d0541..ca78fa5 100644 --- a/plugin/vimux.vim +++ b/plugin/vimux.vim @@ -5,7 +5,7 @@ let g:loaded_vimux = 1 " Set up all global options with defaults right away, in one place let g:VimuxDebug = get(g:, 'VimuxDebug', v:false) -let g:VimuxHeight = get(g:, 'VimuxHeight', 20) +let g:VimuxHeight = get(g:, 'VimuxHeight', '20%') let g:VimuxOpenExtraArgs = get(g:, 'VimuxOpenExtraArgs', '') let g:VimuxOrientation = get(g:, 'VimuxOrientation', 'v') let g:VimuxPromptString = get(g:, 'VimuxPromptString', 'Command? ') @@ -230,7 +230,7 @@ endfunction function! s:vimuxPaneOptions() abort let height = VimuxOption('VimuxHeight') let orientation = VimuxOption('VimuxOrientation') - return '-l '.height.'% -'.orientation + return '-l '.height.' -'.orientation endfunction "" From f4a91538072233ced6067fc05597d8d7206ea219 Mon Sep 17 00:00:00 2001 From: jmriego Date: Thu, 25 Jul 2024 22:41:34 +0200 Subject: [PATCH 2/2] Update docs for VimuxHeight --- doc/vimux.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/vimux.txt b/doc/vimux.txt index 3936164..1d25ca1 100644 --- a/doc/vimux.txt +++ b/doc/vimux.txt @@ -294,11 +294,12 @@ change the behavior of Vimux in just the current buffer. *VimuxConfiguration_height* 4.1 g:VimuxHeight~ -The percent of the screen the split pane Vimux will spawn should take up. +The part of the screen the split pane Vimux will spawn should take up. This +option accepts both a number of lines/columns or a percentage. > let g:VimuxHeight = "40" < -Default: "20" +Default: "20%" ------------------------------------------------------------------------------ *VimuxConfiguration_orientation*