Vim Tips Wiki
No edit summary
Tag: sourceedit
No edit summary
Tag: sourceedit
 
Line 11: Line 11:
 
--September 8, 2015
 
--September 8, 2015
 
:Is there a link? [[User:JohnBeckett|JohnBeckett]] ([[User talk:JohnBeckett|talk]]) 08:03, September 9, 2015 (UTC)
 
:Is there a link? [[User:JohnBeckett|JohnBeckett]] ([[User talk:JohnBeckett|talk]]) 08:03, September 9, 2015 (UTC)
  +
  +
----
  +
In general, only autocmds used to detect the filetype should be placed in ftdetect directory. All the filetype-specific settings and bindings should be placed under ftplugin. I see that [https://en.wikipedia.org/wiki/Wikipedia:Text_editor_support upstream] currently says what to put where correctly. But version 3 of the script has all that pasted together in ftdetect which results in those settings being always applied to the very first buffer opened, regardless of what does it contain. And only to the first one. — Nov 25, 2015.

Latest revision as of 01:22, 25 November 2015

Use this page to discuss script 1787 wikipedia: syntax highlighting for MediaWiki articles

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on vim.org).
  • This page may be out of date: check the script's vim.org page above, and its release notes.

Comments[]

Hi, Matt C
There is a more recent version in github, including tables and other minor changes.
Additional to add in the option menu of gvim wiki

cat ~/.vim/synmenu.vim
an 50.150.450 &Syntax.WXYZ.Wiki :cal SetSyn("mediawiki")<CR>

--September 8, 2015

Is there a link? JohnBeckett (talk) 08:03, September 9, 2015 (UTC)

In general, only autocmds used to detect the filetype should be placed in ftdetect directory. All the filetype-specific settings and bindings should be placed under ftplugin. I see that upstream currently says what to put where correctly. But version 3 of the script has all that pasted together in ftdetect which results in those settings being always applied to the very first buffer opened, regardless of what does it contain. And only to the first one. — Nov 25, 2015.