Skip to content

Plugin prevents Vim options -o and -O from working correctly #60

Description

@dideler

I'm not able to open more than two files using Vim's -o or -O options when I have dwm.vim enabled.

I was able to narrow it down to dwm.vim with the help of others on my StackOverflow question. Only the first two files given are opened, with the first one being opened twice.

For reference, this is how I configure dwm.vim in my vimrc, but the problem still exists if I remove this code and leave the plugin enabled. So my custom configuration does not affect the issue.

let g:dwm_master_pane_width = 84 " Set width of master pane in dwm.vim. For percentages, use quotes.
autocmd VimResized * call DWM_ResizeMasterPaneWidth()

" Resize the width of main pane to n/4 of the full window.
nmap ,.. :call DWM_mod_align(3)<CR>
nmap .,, :call DWM_mod_align(1)<CR>
function! DWM_mod_align(n)
  execute "1wincmd w"
  execute "vertical resize ".(&columns * a:n) / 4
endfunction

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions