Mercurial > vim
annotate runtime/ftplugin/scdoc.vim @ 26538:dfa658800f21 v8.2.3798
patch 8.2.3798: a :def callback function postpones an error message
Commit: https://github.com/vim/vim/commit/3b309f11db7904efcae0177c2825597042c07427
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Dec 13 18:19:55 2021 +0000
patch 8.2.3798: a :def callback function postpones an error message
Problem: A :def callback function postpones an error message.
Solution: Display the error after calling the function. (closes https://github.com/vim/vim/issues/9340)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 13 Dec 2021 19:30:03 +0100 |
parents | 29ec2c198c8d |
children | cd68a630f0d0 |
rev | line source |
---|---|
25619 | 1 " scdoc filetype plugin |
2 " Maintainer: Gregory Anders <greg@gpanders.com> | |
3 " Last Updated: 2021-08-04 | |
4 | |
5 " Only do this when not done yet for this buffer | |
6 if exists('b:did_ftplugin') | |
7 finish | |
8 endif | |
9 | |
10 " Don't load another plugin for this buffer | |
11 let b:did_ftplugin = 1 | |
12 | |
13 setlocal comments=b:; | |
14 setlocal commentstring=;%s | |
15 setlocal formatoptions+=t | |
16 setlocal noexpandtab | |
17 setlocal shiftwidth=0 | |
18 setlocal softtabstop=0 | |
19 setlocal textwidth=80 | |
20 | |
21 let b:undo_ftplugin = 'setl com< cms< fo< et< sw< sts< tw<' | |
22 | |
23 if has('conceal') | |
24 setlocal conceallevel=2 | |
25 let b:undo_ftplugin .= ' cole<' | |
26 endif |