mirror of
https://github.com/neovim/neovim.git
synced 2026-01-06 11:27:26 +10:00
vim-patch:f66674c: runtime(fstab): Added mtab support to fstab syntax.
closes: vim/vim#18074
f66674cf42
Co-authored-by: Radu Dineiu <radu.dineiu@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user