Hi Leandro,

> I'm not having success to make these two key mappings to work:
> 
> noremap <silent> <C-,> <Esc>:call cursor(line('.'), 1)<CR>i
> noremap <silent> <C-.> <Esc>:call cursor(line('.'), col('$'))<CR>i

What are you trying to do?
You're not using *i*noremap. Thus those mappings will only work in
normal mode?
Then your action is putting the cursor in first col and last col -1
because you're using i instead of a ?
Do you know the mappings gI and A which do exactly what you want (in
normal mode)

I've trouble understanding what causes trouble for you. I see two
sources of problems:
1) lhs side of the mapping <c-,> and <c-.>.
2) the rhs side of the mapping <Esc>:call ...
Have you tried using something else for 1) and 2) to see which of both
doesn't work?

Eg does 
  noremap A :echo<space>"B"<cr>
print B?
If you have trouble I'd remove the <silent> to get more error messages..

HTH
Marc Weber

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to