From fe63389a7c1650843c2719a34b57f085ad987eda Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Sat, 9 Apr 2016 11:33:18 -0500 Subject: [PATCH] Add Show All Syntax Highlighting Rules as a vim til --- README.md | 3 ++- vim/show-all-syntax-highlighting-rules.md | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 vim/show-all-syntax-highlighting-rules.md diff --git a/README.md b/README.md index 0c74408..68251eb 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ variety of languages and technologies. These are things that don't really warrant a full blog post. These are mostly things I learn by pairing with smart people at [Hashrocket](http://hashrocket.com/). -_388 TILs and counting..._ +_389 TILs and counting..._ --- @@ -453,6 +453,7 @@ _388 TILs and counting..._ - [Searching For Hex Digits](vim/searching-for-hex-digits.md) - [Set End Of Line Markers](vim/set-end-of-line-markers.md) - [Set Your Color Scheme](vim/set-your-color-scheme.md) +- [Show All Syntax Highlighting Rules](vim/show-all-syntax-highlighting-rules.md) - [Split Different](vim/split-different.md) - [Splitting For New Files](vim/splitting-for-new-files.md) - [Swap Occurrences Of Two Words](vim/swap-occurrences-of-two-words.md) diff --git a/vim/show-all-syntax-highlighting-rules.md b/vim/show-all-syntax-highlighting-rules.md new file mode 100644 index 0000000..5b3a512 --- /dev/null +++ b/vim/show-all-syntax-highlighting-rules.md @@ -0,0 +1,13 @@ +# Show All Syntax Highlighting Rules + +When Vim adds syntax highlighting to the contents of a buffer based on its +`filetype`, it does so with a set of rules. These rules specify particular +colors for each set of named tokens that match particular patterns. You can +check out the syntax highlighting rules for the current `filetype` of the +current buffer by running: + +``` +:syntax +``` + +See `:h :syntax` for more details.