summaryrefslogtreecommitdiff
path: root/ted.cfg
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-04-20 14:51:50 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2021-04-20 14:51:50 -0400
commita57a9682e74ff3609acb2ca6697fc6fa94c23fb6 (patch)
treebbe848dd7e5c7ae259fbcfdf3253240bc564c8d8 /ted.cfg
parentf90d98c3c451aa5be2979ff05863b5aa8bee9336 (diff)
:set-language, various other little things
Diffstat (limited to 'ted.cfg')
-rw-r--r--ted.cfg18
1 files changed, 17 insertions, 1 deletions
diff --git a/ted.cfg b/ted.cfg
index bad356e..87b1c95 100644
--- a/ted.cfg
+++ b/ted.cfg
@@ -94,6 +94,22 @@ Ctrl+Shift+s = :save-as
Ctrl+q = :quit
Ctrl+Shift+r = :reload-all
+# You can do something like this:
+# Ctrl+Alt+t = 3 :set-language
+# to set the language of the current buffer to Rust, for example. This might be useful if
+# one file extension could be multiple different languages.
+# Here are the numbers corresponding to each language we have syntax highlighting for:
+# 0 Plain text (no syntax highlighting)
+# 1 C
+# 2 C++
+# 3 Rust
+# 4 Python
+# 5 TeX
+# 6 Markdown
+# 7 HTML
+# 8 Config (e.g. ted.cfg)
+# -1 Guess from the file extension (default)
+
Ctrl+Space = :autocomplete
# go to previous completion
Ctrl+Shift+Space = :autocomplete-back
@@ -209,5 +225,5 @@ Rust = .rs
Python = .py
Tex = .tex
Markdown = .md
-HTML = .html, .php
+HTML = .html, .php, .xml, .xhtml
Config = .cfg