diff --git a/demo/sublime.html b/demo/sublime.html index 3b72927ca144633666276050e1b802bc8b718a6f..d942cc440933a6f976c0c036578cd515b5445331 100644 --- a/demo/sublime.html +++ b/demo/sublime.html @@ -43,7 +43,13 @@ <p>The <code>sublime</code> keymap defines many Sublime Text-specific bindings for CodeMirror. See the code below for an overview.</p> -<p>(A lot of the search functionality is still missing.)</p> +<p>Enable the keymap by +loading <a href="../keymap/sublime.js"><code>keymap/sublime.js</code></a> +and setting +the <a href="../doc/manual.html#option_keyMap"><code>keyMap</code></a> +option to <code>"sublime"</code>.</p> + +<p>(A lot of the search functionality is still missing.) <script> var value = "// The bindings defined specifically in the Sublime Text mode\nvar bindings = {\n"; diff --git a/doc/manual.html b/doc/manual.html index 7fab648bd84ebbd388b2a64d84db85a9f2d3096a..c33250591b320cc0ad6ee9fce125b94b25005599 100644 --- a/doc/manual.html +++ b/doc/manual.html @@ -686,6 +686,10 @@ is an object mapping strings that identify the keys to functions that implement their functionality.</p> + <p>The CodeMirror distributions comes + with <a href="../demo/emacs.html">Emacs</a>, <a href="../demo/vim.html">Vim</a>, + and <a href="../demo/sublime.html">Sublime Text</a>-style keymaps.</p> + <p>Keys are identified either by name or by character. The <code>CodeMirror.keyNames</code> object defines names for common keys and associates them with their key codes. Examples of diff --git a/index.html b/index.html index 72f8245eda1d21fd116cc7055f08c5cf9d163302..9ec9b8017ed73e21c2651905e00011dbad12f1c3 100644 --- a/index.html +++ b/index.html @@ -71,6 +71,7 @@ <option value="demo/search.html">Search interface</option> <option value="demo/vim.html">Vim bindings</option> <option value="demo/emacs.html">Emacs bindings</option> + <option value="demo/sublime.html">Sublime Text bindings</option> <option value="demo/tern.html">Tern integration</option> <option value="demo/merge.html">Merge/diff interface</option> <option value="demo/fullscreen.html">Full-screen editor</option> @@ -121,7 +122,7 @@ <li><a href="doc/manual.html#addon_show-hint">Autocompletion</a> (<a href="demo/xmlcomplete.html">XML</a>) <li><a href="doc/manual.html#addon_foldcode">Code folding</a> <li><a href="doc/manual.html#option_extraKeys">Configurable</a> keybindings - <li><a href="demo/vim.html">Vim</a> and <a href="demo/emacs.html">Emacs</a> bindings + <li><a href="demo/vim.html">Vim</a>, <a href="demo/emacs.html">Emacs</a>, and <a href="demo/sublime.html">Sublime Text</a> bindings <li><a href="doc/manual.html#addon_search">Search and replace</a> interface <li><a href="doc/manual.html#addon_matchbrackets">Bracket</a> and <a href="doc/manual.html#addon_matchtags">tag</a> matching <li>Support for <a href="demo/buffers.html">split views</a>