Loading ...
Sorry, an error occurred while loading the content.

Re: problem with map in custom vimrc

Expand Messages
  • Nazri Ramliy
    ... Change the definition of your mapping to do, say, :echo hello , and see if the problem is due to the mapping definition. nazri -- You received
    Message 1 of 2 , Oct 27, 2010
    • 0 Attachment
      On Mon, Oct 25, 2010 at 10:43 PM, A Chaudhuri <acarchau@...> wrote:
      > I have a custom vimrc file with exactly this line:
      >
      > map <F11> :call libcallnr("gvimfullscreen.dll", "ToggleFullScreen", 0)
      > <cr>
      >
      > When I call vim with -u pointed to the path of the custom vimrc,
      > pressing <F11> does not work.
      >
      > Output of first four lines of :map
      >
      > v  <C-X>         "*d
      > n  <Leader>ihn   :IHN<CR>
      > n  <Leader>is    :IHS<CR>:A<CR>
      > n  <Leader>ih    :IHS<CR>
      >   <F11>         :call libcallnr("gvimfullscreen.dll",
      > "ToggleFullScreen", 0) <cr>
      >
      > which shows that <F11> did get mapped.
      >
      > gvimfullscreen.dll  is in C:\Program Files\Vim\vim73 folder, which
      > also contains gvim.exe.
      > I copied gvimfullscreen.dll to
      >
      >
      > I have the same line in the default _vimrc in my $HOME, and it works.
      >
      > How can I debug this?

      Change the definition of your <F11> mapping to do, say, ":echo 'hello'<CR>",
      and see if the problem is due to the mapping definition.

      nazri

      --
      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
    Your message has been successfully submitted and would be delivered to recipients shortly.