Hi Jeremy,
Thanks for the response.
I can't reproduce the bug on the tiddlywiki site because I can't save changes there. To reproduce the bug yourself, do the following;
1. Create a new tiddler titled $:/config/CodeMirror.
2. Paste the following code into this new tiddler;
{
"require": [
"$:/plugins/tiddlywiki/codemirror/mode/javascript/javascript.js",
"$:/plugins/tiddlywiki/codemirror/addon/dialog/dialog.js",
"$:/plugins/tiddlywiki/codemirror/addon/search/searchcursor.js",
"$:/plugins/tiddlywiki/codemirror/addon/edit/matchbrackets.js",
"$:/plugins/tiddlywiki/codemirror/keymap/vim.js",
],
"configuration": {
"keyMap": "vim",
"matchBrackets":true,
"showCursorWhenSelecting": true
}
}
3. Set the type field of this tiddler to application/json.
4. Refresh for the changes to take effect.
5. If you now attempt to edit any tiddler, you will see a block cursor. Vim is a modal editor and starts off in command mode.
6. Press the 'i' key. This will switch to insert mode. You can now type as for a normal editor.
7. Entering the '#' or '~' key however should reproduce the error I described.
Further details on configuring CodeMirror (which is where I got the information on setting it up from) are to
be found in $:/plugins/tiddlywiki/codemirror/usage.
Thank you so much for your help.