timakro / vim-yadi

Yet Another Detect Indent
MIT License
15 stars 3 forks source link

disregard line continuations #8

Open Konfekt opened 6 months ago

Konfekt commented 6 months ago

Continuning in a way the previous discussions starting with #4, maybe vim-yadi could be made aware of line continuation characters such as in

autocmd vimrc BufWinEnter <buffer> ++nested if exists('syntax_on') &&
      \ ! empty(&l:filetype) &&
      \ filereadable($VIMRUNTIME . "/syntax/" . &l:filetype . ".vim")
      \ | syntax enable | endif

if argc() > 0
  let argidx=argidx()
endif

Currently, this sets &shiftwidth to 6, which is not intended