<c-cr> not working

Viki
2007-08-26
2013-04-17
  • Marcus Ahnve

    Marcus Ahnve - 2007-08-26

    I cannot get creation of new viki pages to work. Nothing happens when i hit <c-cr> (which is ctrl-return, right?). Links are recognized syntax wise, I have set a vikiHomePage and a vikiNameSuffix.

    Any clues?

     
    • Tom Link

      Tom Link - 2007-08-27

      Could you please list precisely what you're doing.

      gvim
      e :foo
      set ft=viki
      ...

      The best would be to start with gvim -u NONE -U NONE
      :set nocp
      :filetype plugin indent on
      :syntax on

      Does <leader>vf work?
      What's the output of
        :let b:
        :echo maparg('<c-cr>')

      Does it work to move the cursor over the highlighted link and then to type
        :call VikiMaybeFollowLink(0,1)

      Did you change the values of
        g:vikiMapFunctionalityMinor
        g:vikiMapFunctionality

       
    • jdubiner

      jdubiner - 2007-09-12

      Hi Thomas & Marcus,

      I had the same problem that Marcus had -- when using vim under cygwin.

      If I follow the installation instructions using gvim, everything works. 

      under cygwin, especially when using xterm, I think the X system is getting the keystrokes before vim is.

      when I run gvim from XP, Viki* works fine.

       
      • Tom Link

        Tom Link - 2007-09-13

        Yes, <c-cr> is a problem on most(?) terminals, which is why the <Leader>vf sequence was introduced later on.

        If you remove 'c' from g:vikiMapFunctionality, the <c-cr> won't be set.

        If you want a different key, something like

        noremap <buffer> <silent> <KEY> :call viki#MaybeFollowLink(0,1)<cr>

        in after/ftplubin/viki.vim should do. (Or it's still VikiMaybeFollowLink in the current release I think.)

         

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks