annotate runtime/ftplugin/mermaid.vim @ 33850:9fc745451034 v9.0.2136

patch 9.0.2136: MSVC errorformat can be improved Commit: https://github.com/vim/vim/commit/8ceb99001b52d0c642e7532763ec9d8217ee86e3 Author: Shawn Hatori <shawn.hatori@gmail.com> Date: Tue Nov 28 20:51:07 2023 +0100 patch 9.0.2136: MSVC errorformat can be improved Problem: MSVC errorformat can be improved Solution: parse error type and column number in MSVC errorformat closes: #13587 Signed-off-by: Shawn Hatori <shawn.hatori@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Tue, 28 Nov 2023 21:00:08 +0100
parents a7801222c9c5
children 57f25669bbed
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
31200
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Vim filetype plugin
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Language: Mermaid
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " Maintainer: Craig MacEachern <https://github.com/craigmac/vim-mermaid>
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 " Last Change: 2022 Oct 13
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 if exists("b:did_ftplugin")
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 finish
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 endif
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10 let s:keepcpo= &cpo
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 set cpo&vim
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13 " Use mermaid live editor's style
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14 setlocal expandtab
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15 setlocal shiftwidth=2
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 setlocal softtabstop=-1
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17 setlocal tabstop=4
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19 " TODO: comments, formatlist stuff, based on what?
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20 setlocal comments=b:#,fb:-
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
21 setlocal commentstring=#\ %s
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
22 setlocal formatoptions+=tcqln formatoptions-=r formatoptions-=o
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
23 setlocal formatlistpat=^\\s*\\d\\+\\.\\s\\+\\\|^\\s*[-*+]\\s\\+\\\|^\\[^\\ze[^\\]]\\+\\]:\\&^.\\{4\\}
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
24
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
25 if exists('b:undo_ftplugin')
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
26 let b:undo_ftplugin .= "|setl cms< com< fo< flp< et< ts< sts< sw<"
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
27 else
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
28 let b:undo_ftplugin = "setl cms< com< fo< flp< et< ts< sts< sw<"
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
29 endif
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
30
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
31 if !exists("g:no_plugin_maps") && !exists("g:no_markdown_maps")
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
32 nnoremap <silent><buffer> [[ :<C-U>call search('\%(^#\{1,5\}\s\+\S\\|^\S.*\n^[=-]\+$\)', "bsW")<CR>
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
33 nnoremap <silent><buffer> ]] :<C-U>call search('\%(^#\{1,5\}\s\+\S\\|^\S.*\n^[=-]\+$\)', "sW")<CR>
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
34 xnoremap <silent><buffer> [[ :<C-U>exe "normal! gv"<Bar>call search('\%(^#\{1,5\}\s\+\S\\|^\S.*\n^[=-]\+$\)', "bsW")<CR>
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
35 xnoremap <silent><buffer> ]] :<C-U>exe "normal! gv"<Bar>call search('\%(^#\{1,5\}\s\+\S\\|^\S.*\n^[=-]\+$\)', "sW")<CR>
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
36 let b:undo_ftplugin .= '|sil! nunmap <buffer> [[|sil! nunmap <buffer> ]]|sil! xunmap <buffer> [[|sil! xunmap <buffer> ]]'
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
37 endif
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
38
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
39 " if has("folding") && get(g:, "markdown_folding", 0)
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
40 " setlocal foldexpr=MarkdownFold()
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
41 " setlocal foldmethod=expr
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
42 " setlocal foldtext=MarkdownFoldText()
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
43 " let b:undo_ftplugin .= "|setl foldexpr< foldmethod< foldtext<"
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
44 " endif
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
45
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
46 let &cpo = s:keepcpo
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
47 unlet s:keepcpo
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
48
a7801222c9c5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
49 " vim:set sw=2: