neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

shada.vim (414B)


      1 if exists('b:did_ftplugin')
      2  finish
      3 endif
      4 
      5 let b:did_ftplugin = 1
      6 
      7 function! ShaDaIndent(lnum)
      8  if a:lnum == 1 || getline(a:lnum) =~# '\mwith timestamp.*:$'
      9    return 0
     10  else
     11    return shiftwidth()
     12  endif
     13 endfunction
     14 
     15 setlocal expandtab tabstop=2 softtabstop=2 shiftwidth=2
     16 setlocal indentexpr=ShaDaIndent(v:lnum) indentkeys=<:>,o,O
     17 
     18 let b:undo_ftplugin = 'setlocal et< ts< sts< sw< indentexpr< indentkeys<'