I've been madly remapping vim keys to suit my crazy notions of the most speedy and ergonomic possible arrangements. I'm *extremely* impressed with the graceful and detailed control vim gives you in this department. I have one mapping that doesn't work as expected though:
cnoremap js <Esc>
which if I understand correctly is supposed to make 'js'
do what Esc does when typed on the command line. But it
seems to do something slightly different:
:boguscommandjs
results in an error message:
E492: Not an editor command: boguscommand
while
:boguscommand<Esc>
appears to just silently abort the command line.
I don't think I have any other mappings that should interfere
here, but just in case I've attached my .vimrc. Here are all
the mapping commands I have in it:
" Fine point: we don't make these mappings in operator pending mode.
This
" the timeout on the ds map to delete upward with movement via s).
nnoremap s k
vnoremap s k
nnoremap ds s
vnoremap ds s
"nmap js <Nop>
" Including a trailing space in the "to" part of these mappings has an
onoremap js <Esc>
xnoremap js <Esc>
snoremap js <Esc>
inoremap js <Esc>
cnoremap js <Esc>
" This was the old mapping I used, maintained until new mapping is
learned.
inoremap jf <Esc>
noremap <Space> h
noremap , ;
:noremap ;w <C-w>w
noremap ;s :sh<CR>
":noremap ' `
inoremap { {}<Left>
inoremap {<CR> {<CR>}<Esc>O
inoremap {{ {
inoremap {} {}
"inoremap ( ()<Left>
"inoremap (<CR> (<CR>)<Esc>O
"inoremap (( (
"inoremap () ()
"inoremap [ []<Left>
"inoremap [<CR> [<CR>]<Esc>O
"inoremap [[ [
"inoremap [] []
Thanks in advance for any help,
Britton
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---
vimrc
Description: Binary data
