defx messes window layout
See original GitHub issueConsider the following minimal init.vim
set nocompatible
let $DOTVIM = expand('$HOME/.config/nvim')
set runtimepath+=$DOTVIM/bundle/repos/github.com/Shougo/defx.nvim
filetype plugin indent on
call defx#custom#option('_', {
\ 'winwidth': 40,
\ 'split': 'vertical',
\ 'direction': 'topleft',
\ })
Now as in the GIF do the following
- Open
nvim
and edit some file, for example:e init.vim
- Run
sp
and thenvsp
- Run
:Defx
- Run
:q
on the defx buffer You can see in steps 3 and 4 that window layout is broken -> defx shouldn’t change the window layout
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Shougo/defx.nvim - Gitter
hello, there is a another question, i want using float window to show defx, and i config it like below, the float window's...
Read more >visual studio 2010 - vs2010 window layout messed up
I tried Window > Reset Window Layout, but that didn't work. I even tried resetting the environment. How can I get back the...
Read more >Hot Mess Mama PNG Image Leopard Pink Retro Design - Etsy Norway
Hot Mess Mama PNG Image, Leopard Pink Retro Design, Sublimation Designs Downloads, Transparent PNG File. WizdomStudio. Star Seller. Star Seller.
Read more >PC Gamer, PC computer svg, Gaming Accessories, BUNDLE, SVG ...
Window Decals · Car Window · Cricut Creations · Silhouette Design · Free Silhouette Files · Silhouette Projects · i am not a...
Read more >西安高端模特.dfx– green sprouts
Green Sprouts® provides healthy and natural baby products for baby's well-being and whole development, along with resources for natural parenting.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is indeed working with
defx#do_action('quit')
but not when opening files. Consider the following minimal vimrc:Now
:e init.vim
:sp
, move to the new split and run:vsp
, move to this new split and run:sp
again.:Defx
<CR>
on some candidateAfter 4. the original window layout is broken (on the other hand if using
q
instead of<CR>
then the layout is indeed preserved)Thank you!