neovim

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

odin.vim (653B)


      1 " Vim filetype plugin file
      2 " Language: Odin
      3 " Maintainer: Maxim Kim <habamax@gmail.com>
      4 " Website: https://github.com/habamax/vim-odin
      5 " Last Change:	2024 Jan 15
      6 "		2024-May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
      7 "
      8 " This file has been manually translated from Vim9 script.
      9 
     10 if exists("b:did_ftplugin")
     11    finish
     12 endif
     13 let b:did_ftplugin = 1
     14 
     15 let s:cpo_save = &cpo
     16 set cpo&vim
     17 
     18 let b:undo_ftplugin = 'setlocal commentstring<'
     19      \ .. '| setlocal comments<'
     20      \ .. '| setlocal suffixesadd<'
     21 
     22 setlocal suffixesadd=.odin
     23 setlocal commentstring=//\ %s
     24 setlocal comments=s1:/*,mb:*,ex:*/,://
     25 
     26 let &cpo = s:cpo_save
     27 unlet s:cpo_save