Skip to content

[Feature Request] foldcolumn independent window #77

Description

@juanMarinero

behavior

When opening a vertical split (:vsplit) the foldcolumn setting from original window is set in the vertical split one.

Same happens with vim-peekaboo.

See next screenshots, in its command line I executed :set foldcolumn? just before pressing " in normal mode:
01
2

desired behavior

Either:

  • vim-peekaboo window with :set foldcolumn=0
  • or floating window for Vim: issue 68

Suggestions

  • add modeline comment (to be hided by syntax that reads vim-peekaboo window)
  • execute :set foldcolumn=0 in vim plugin just after create the vertical split
  • customize the default plugin mapping (without modifying plugin code). My best failing try: nnoremap <silent> <F1> :<c-u>let foldcolumn_orig=&foldcolumn <bar> set foldcolumn=0 <bar> call peekaboo#aboo() <bar> exec 'set foldcolumn='.foldcolumn_orig <cr>

Desktop

Ubuntu 20.04
Vim 8.2

Thanks in advance!

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