neovim

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

fstab.vim (719B)


      1 " Vim ftplugin file
      2 " Language: fstab file
      3 " Maintainer: Radu Dineiu <radu.dineiu@gmail.com>
      4 " URL: https://raw.github.com/rid9/vim-fstab/master/ftplugin/fstab.vim
      5 " Last Change: 2025 Aug 21
      6 " Version: 1.1.0
      7 "
      8 " Changelog:
      9 " - 2025 Aug 21 added support for mtab
     10 " - 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
     11 " - 2025 Mar 31 added setlocal formatoptions-=t
     12 "
     13 " Credits:
     14 "   Subhaditya Nath <sn03.general@gmail.com>
     15 
     16 if exists("b:did_ftplugin")
     17 finish
     18 endif
     19 let b:did_ftplugin = 1
     20 
     21 setlocal commentstring=#\ %s
     22 setlocal formatoptions-=t
     23 
     24 if expand('%:t') == 'mtab'
     25  let b:fstab_enable_mtab = 1
     26 endif
     27 
     28 let b:undo_ftplugin = "setlocal commentstring< | setlocal formatoptions<"
     29 
     30 " vim: ts=8 ft=vim