diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-04-20 14:51:50 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-04-20 14:51:50 -0400 |
commit | a57a9682e74ff3609acb2ca6697fc6fa94c23fb6 (patch) | |
tree | bbe848dd7e5c7ae259fbcfdf3253240bc564c8d8 /ted.cfg | |
parent | f90d98c3c451aa5be2979ff05863b5aa8bee9336 (diff) |
:set-language, various other little things
Diffstat (limited to 'ted.cfg')
-rw-r--r-- | ted.cfg | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -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 |