Friday, November 1, 2019

"nmap" issue

Hi,
I'm trying to create a mapping to maximize current window. But somehow
it only executed portion of my mapping.
My mapping is:
nmap <Esc>m <C-W>_<C-W>|
Looks like after I press <Esc>m , it only executes <C-W>_ .
And if we change it to:
nmap <Esc>m <C-W>|<C-W>
It give me the following error when I source .vimrc :
Error detected while processing /usr2/jianzhen/.vimrc:
line 500:
E488: Trailing characters: <C-W>_

-- --
Best Regards
Jerry Dai

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAOLGUuYz00%2BY-UcF8c9wj8qmg0H4Kc_ObokZFw8OaVLZ8CFxrg%40mail.gmail.com.

No comments: