Permalink
Browse files

text.vim: Highlight headers bold.

  • Loading branch information...
1 parent 7547f9e commit bb65b1d8ce86389229336ccb0dc60c9313401275 John MacFarlane committed Nov 24, 2011
Showing with 5 additions and 3 deletions.
  1. +5 −3 syntax/text.vim
View
@@ -15,9 +15,9 @@ syn region Comment start=/^\s*>/ end=/$/
syn region Function start=/<!--/ end=/-->/
" headings
-syn region Underlined start="^##* " end="\($\|#\+\)"
-syn match Underlined /^.\+\n=\+$/
-syn match Underlined /^.\+\n-\+$/
+syn region Header start="^##* " end="\($\|#\+\)"
+syn match Header /^.\+\n=\+$/
+syn match Header /^.\+\n-\+$/
" inline footnotes
syn region Comment start=/\^\[/ skip=/\[[^]]*\]/ end=/\]/
@@ -32,5 +32,7 @@ syn region Comment start=/\^\[/ skip=/\[[^]]*\]/ end=/\]/
syn region Operator start=/\$[^ \t\n$]/ end=/\$/ " inline math
syn region Operator start=/\$\$/ end=/\$\$/ " display math
+hi Header cterm=bold term=bold gui=bold
+
let b:current_syntax = "text"

0 comments on commit bb65b1d

Please sign in to comment.