aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/usr_06.txt
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-05-01 13:31:49 +0200
committerGitHub <noreply@github.com>2022-05-01 13:31:49 +0200
commit65b4bf055f58eb622f59188c3bace2519cb777b1 (patch)
tree6088169ef3670ae84eb3dfbc9e437af520cffce2 /runtime/doc/usr_06.txt
parentd9dcfd0219d51add74e6d93d5d1408be4b47bd97 (diff)
downloadrneovim-65b4bf055f58eb622f59188c3bace2519cb777b1.tar.gz
rneovim-65b4bf055f58eb622f59188c3bace2519cb777b1.tar.bz2
rneovim-65b4bf055f58eb622f59188c3bace2519cb777b1.zip
docs: syntax is enabled by default (#17637)
`:syntax enable` is no longer necessary (and may even be harmful). Do not recommend it in `usr_05.txt` and `usr_06.txt`, and mention the new default in `syntax.txt`.
Diffstat (limited to 'runtime/doc/usr_06.txt')
-rw-r--r--runtime/doc/usr_06.txt24
1 files changed, 2 insertions, 22 deletions
diff --git a/runtime/doc/usr_06.txt b/runtime/doc/usr_06.txt
index 360f72ec63..b99e0fb482 100644
--- a/runtime/doc/usr_06.txt
+++ b/runtime/doc/usr_06.txt
@@ -24,28 +24,8 @@ Table of contents: |usr_toc.txt|
==============================================================================
*06.1* Switching it on
-It all starts with one simple command: >
-
- :syntax enable
-
-That should work in most situations to get color in your files. Vim will
-automagically detect the type of file and load the right syntax highlighting.
-Suddenly comments are blue, keywords brown and strings red. This makes it
-easy to overview the file. After a while you will find that black&white text
-slows you down!
-
-If you always want to use syntax highlighting, put the ":syntax enable"
-command in your |init.vim| file.
-
-If you want syntax highlighting only when the terminal supports colors, you
-can put this in your |init.vim| file: >
-
- if &t_Co > 1
- syntax enable
- endif
-
-If you want syntax highlighting only in the GUI version, put the ":syntax
-enable" command in your |ginit.vim| file.
+Syntax highlighting is enabled by default. Nvim will automagically detect the
+type of file and load the right syntax highlighting.
==============================================================================
*06.2* No or wrong colors?