summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Peveler <matt.peveler@gmail.com>2021-02-06 02:55:29 +0000
committerMatthew Peveler <matt.peveler@gmail.com>2021-02-06 02:55:29 +0000
commitc85c2edfb708ce2d39535ff4c7fcce94b610f771 (patch)
treeee39263d2db83c5334ba71fd5c02e6fa0f66ce7f
parent289c42d179be0bf665cca9b618fb282384175c4f (diff)
downloadasciidoc-py3-c85c2edfb708ce2d39535ff4c7fcce94b610f771.tar.gz
update info in vim syntax highlighting appendix
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
-rw-r--r--doc/asciidoc.txt15
1 files changed, 6 insertions, 9 deletions
diff --git a/doc/asciidoc.txt b/doc/asciidoc.txt
index b30bc8a..f1f31de 100644
--- a/doc/asciidoc.txt
+++ b/doc/asciidoc.txt
@@ -5694,16 +5694,13 @@ Syntax highlighting is incredibly useful, in addition to making
reading AsciiDoc documents much easier syntax highlighting also helps
you catch AsciiDoc syntax errors as you write your documents.
-The AsciiDoc distribution directory contains a Vim syntax highlighter
-for AsciiDoc (`./vim/syntax/asciidoc.vim`), you can find the latest
-version in the online
-https://code.google.com/p/asciidoc/source/browse/[AsciiDoc
-repository].
+If you use the Vim editor, it comes with an
+https://github.com/vim/vim/blob/master/runtime/syntax/asciidoc.vim[AsciiDoc
+syntax highlighter pre-included]. By default, it will activate for
+files that use the .asciidoc or .adoc file extensions.
-Install the highlighter by copying `asciidoc.vim` to your
-`$HOME/.vim/syntax` directory (create it if it doesn't already exist).
-
-To enable syntax highlighting:
+Alternatively, to enable syntax highlighting for the current document or
+other extensions:
- Put a Vim 'autocmd' in your Vim configuration file (see the
<<X61,example vimrc file>>).