I'm writing a map to toggle the presence of extra columns in both panes:
noremap b :if &viewcolumns == "-{name},6{size},11{perms}" |
\ :windo set viewcolumns="-{name}" | else |
\ :windo set viewcolumns="-{name},6{size},11{perms}" | endif<CR>
But I get
Missing :endif
when I give it a try. It works just fine without the :windo
though.
Could you help me understanding what is wrong and how to fix it? Thanks.