Try alternate mappings for leader key work-around.
This commit is contained in:
		
							parent
							
								
									9d229dde5c
								
							
						
					
					
						commit
						c2955da1eb
					
				@ -77,9 +77,11 @@
 | 
			
		||||
    CodeMirror.Vim.map('jj', '<Esc>', '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 <leader> in CodeMirror, but i was hoping this would work-around it.
 | 
			
		||||
    // These mappings don't work, there's no concept of <leader> in CodeMirror, but i was hoping to work-around it.
 | 
			
		||||
    //CodeMirror.Vim.map(' c', '<Esc>o- [ ] ', 'normal')
 | 
			
		||||
    //CodeMirror.Vim.map(' x', '<ESC>;s/\[\s\]/[x]/g<CR>;noh<CR>', 'normal')
 | 
			
		||||
    //CodeMirror.Vim.map('xx', '<ESC>;s/\[\s\]/[x]/g<CR>;noh<CR>', 'normal')
 | 
			
		||||
    //CodeMirror.Vim.map('xx', '<ESC>;s/\[\s\]/[x]/g<CR>;noh<CR>', 'insert')
 | 
			
		||||
    CodeMirror.commands.save = function(){
 | 
			
		||||
        socket.emit('cm-save', 'codemirror save event');
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user