diff --git a/views/index.html b/views/index.html index 688cb2f..a85ee17 100644 --- a/views/index.html +++ b/views/index.html @@ -77,9 +77,11 @@ CodeMirror.Vim.map('jj', '', 'insert'); CodeMirror.Vim.map(';', ':', 'normal'); // Note, ~/notes.kaplon.us/CodeMirror is symlinked it into /assets! - // These 2 mappings don't work, there's no concept of in CodeMirror, but i was hoping this would work-around it. + // These mappings don't work, there's no concept of in CodeMirror, but i was hoping to work-around it. //CodeMirror.Vim.map(' c', 'o- [ ] ', 'normal') //CodeMirror.Vim.map(' x', ';s/\[\s\]/[x]/g;noh', 'normal') + //CodeMirror.Vim.map('xx', ';s/\[\s\]/[x]/g;noh', 'normal') + //CodeMirror.Vim.map('xx', ';s/\[\s\]/[x]/g;noh', 'insert') CodeMirror.commands.save = function(){ socket.emit('cm-save', 'codemirror save event'); }