vim

Fork of vim, an acceptable text editor
git clone git://git.laack.co/vim.git
Log | Files | Refs | README | LICENSE

tolk.vim (659B)


      1 " Vim filetype plugin file
      2 " Language:     Tolk
      3 " Maintainer:   redavy <hello.redavy@proton.me>
      4 " Upstream:     https://github.com/redavy/vim-tolk
      5 " Last Update:  24 May 2026
      6 "               27 Jun 2026 by Vim Project (normalize recommended style guard)
      7 
      8 if exists("b:did_ftplugin")
      9   finish
     10 endif
     11 let b:did_ftplugin = 1
     12 
     13 setlocal commentstring=//\ %s
     14 
     15 if get(g:, 'tolk_recommended_style',
     16       \ get(g:, 'filetype_recommended_style', 1))
     17   setlocal tabstop=2
     18   setlocal shiftwidth=2
     19   setlocal expandtab
     20   setlocal softtabstop=2
     21   setlocal cindent
     22 endif
     23 
     24 let b:undo_ftplugin = "setlocal commentstring< tabstop< shiftwidth< expandtab< softtabstop< cindent<"