Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dideler opened this issue Oct 16, 2014 · 2 comments
Open

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

dideler opened this issue Oct 16, 2014 · 2 comments

Comments

@dideler
Copy link
Contributor

dideler commented Oct 16, 2014

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
@spolu
Copy link
Owner

spolu commented Oct 16, 2014

Hi @dideler, I'm afraid I don't have any cycle to fix that. But I welcome any PR that makes sense ! :)

@edbrannin
Copy link

FWIW, I use vim -O with dwm all the time and the only thing I've noticed is the default layout no longer matches what's advertised.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants