runtime(fstab): Added mtab support to fstab syntax.

closes: #18074

Signed-off-by: Radu Dineiu <radu.dineiu@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Radu Dineiu
2025-08-23 13:47:51 +02:00
committed by Christian Brabandt
parent 6a37035bf2
commit f66674cf42
2 changed files with 35 additions and 5 deletions

View File

@ -2,10 +2,11 @@
" Language: fstab file
" Maintainer: Radu Dineiu <radu.dineiu@gmail.com>
" URL: https://raw.github.com/rid9/vim-fstab/master/ftplugin/fstab.vim
" Last Change: 2025 Mar 31
" Version: 1.0.1
" Last Change: 2025 Aug 21
" Version: 1.1.0
"
" Changelog:
" - 2025 Aug 21 added support for mtab
" - 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
" - 2025 Mar 31 added setlocal formatoptions-=t
"
@ -20,6 +21,10 @@ let b:did_ftplugin = 1
setlocal commentstring=#\ %s
setlocal formatoptions-=t
let b:undo_ftplugin = "setlocal commentstring< formatoptions<"
if expand('%:t') == 'mtab'
let b:fstab_enable_mtab = 1
endif
let b:undo_ftplugin = "setlocal commentstring< | setlocal formatoptions<"
" vim: ts=8 ft=vim