2026-05-11 00:38:09 +00:00
|
|
|
" ftplugin/nuwiki.vim — per-buffer settings for `.wiki` buffers.
|
|
|
|
|
"
|
|
|
|
|
" Keeps this minimal: only the options that affect editing ergonomics for
|
|
|
|
|
" markup files. Anything richer (folding, navigation keymaps, …) ships
|
|
|
|
|
" downstream once users opt in.
|
|
|
|
|
|
|
|
|
|
if exists('b:did_ftplugin')
|
|
|
|
|
finish
|
|
|
|
|
endif
|
|
|
|
|
let b:did_ftplugin = 1
|
|
|
|
|
|
|
|
|
|
setlocal commentstring=%%\ %s
|
|
|
|
|
setlocal comments=:%%
|
|
|
|
|
setlocal formatoptions+=ron
|
|
|
|
|
setlocal suffixesadd=.wiki
|
|
|
|
|
setlocal iskeyword+=-
|
|
|
|
|
|
|
|
|
|
let b:undo_ftplugin = 'setlocal commentstring< comments< formatoptions< suffixesadd< iskeyword<'
|