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

Re: Macros with Yankring

Expand Messages
  • David Fishburn
    ... rearranged to use bottom posting as the list strongly prefers ... Please bottom post when replying to vim_use. ... would start looking for the issue? I
    Message 1 of 6 , Jul 15, 2013
    • 0 Attachment
      ... rearranged to use bottom posting as the list strongly prefers  ...
      Please bottom post when replying to vim_use.

      On Wed, Jul 10, 2013 at 8:04 PM, Andrew Ritchie <ritchiea@...> wrote:

      I see this is an old thread but I had the same issue in MacVim using yankring with macros. I am using  yankring 17.0, vim 7.3.646 & Mac OS 10.7.5.

      Any idea what the problem could be?

      Here are the command outputs you asked for:

      VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Sep  6 2012 09:46:37)
      MacOS X (unix) version
      Included patches: 1-646
      Compiled by Douglas Drumond <douglas@...>
      Huge version with MacVim GUI.  Features included (+) or not (-):
      +arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent +clientserver +clipboard +cmdline_compl +cmdline_hist
      +cmdline_info +comments +conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con_gui +diff +digraphs +dnd -ebcdic +emacs_tags +eval
       +ex_extra +extra_search +farsi +file_in_path +find_in_path +float +folding -footer +fork() +fullscreen -gettext -hangul_input +iconv
      +insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap -lua +menu +mksession +modify_fname +mouse
       +mouseshape +mouse_dec -mouse_gpm -mouse_jsbterm +mouse_netterm -mouse_sysmouse +mouse_xterm +mouse_urxvt +mouse_sgr +multi_byte
      +multi_lang -mzscheme +netbeans_intg +odbeditor +path_extra +perl +persistent_undo +postscript +printer +profile +python -python3
      +quickfix +reltime +rightleft +ruby +scrollbind +signs +smartindent -sniff +startuptime +statusline -sun_workshop +syntax +tag_binary
      +tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title +toolbar +transparency +user_commands +vertsplit
      +virtualedit +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup -X11 -xfontset +xim -xsmp
      -xterm_clipboard -xterm_save
         system vimrc file: "$VIM/vimrc"
           user vimrc file: "$HOME/.vimrc"
            user exrc file: "$HOME/.exrc"
        system gvimrc file: "$VIM/gvimrc"
          user gvimrc file: "$HOME/.gvimrc"
          system menu file: "$VIMRUNTIME/menu.vim"
        fall-back for $VIM: "/Applications/MacVim.app/Contents/Resources/vim"
      Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe  -DMACOS_X_UNIX -no-cpp-precomp  -g
      Linking: clang   -L.    -L.         -L/usr/local/lib -o Vim -framework Cocoa -framework Carbon      -lncurses  -liconv -framework Cocoa
        -fstack-protector -L/usr/local/lib  -L/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE -lperl -lm -lutil -lc -framework Python
         -framework Ruby

      --- Options ---
        autoread            helplang=en         langmenu=none       number              smartcase
        background=dark     hlsearch            laststatus=2        ruler               tabstop=2
        expandtab           ignorecase          list                scroll=20         nowrap
        guitablabel=%M%t    incsearch           mouse=a             shiftwidth=2
        guifont=Source Code Pro:h16
        listchars=tab:  ,trail:.,extends:>,precedes:<
        printexpr=system('open -a Preview '.v:fname_in) + v:shell_error
        statusline=%f %m %rLine:%l/%L[%p%%]Col:%vBuf:#%n[%b][0x%B]

      On Mon, Jul 15, 2013 at 1:10 PM, David Fishburn <dfishburn.vim@...> wrote:

      Thanks for the email Andrew.

      I am a bit too busy at the moment to look at this (trying to release some of my other plugins) but I will come back to it.


      > On Mon, Jul 15, 2013 at 2:15 PM, Andrew Ritchie <hello@...> wrote:

      > Thanks for the message. Any chance you could share with me where you would start looking for the issue? I could investigate myself with a solid starting point. 

      When Paul and I looked into this issue this is where we made it to.

      From Paul:
      I found that this only happens when my ‘TERM’ env var is ‘xterm-256color’, when it’s just ‘xterm’ or ‘linux’, yankring doesn’t have a problem. 

      My next question was:
      With cmdheight = 1 and your xterm set to xterm-26color can you tell me what
      happens when you run this command:

      :let msg = "Enter character:" | echo msg | let c = getchar() | let c =
      nr2char(c) | echon c

      The expected output with the above command is:
      Enter character:j

      What Paul got was:
      Enter  character:
      Press Enter or type command to continue

      So, Vim has some sort of bug on some terminal settings.

      Christian began to look into this but never made it far.

      So Paul had 2 work arounds:
      1.  Set TERM=xterm
      2.  set cmdheight=2

      He was running on:

      Linux, Slackware current and Debian Squeeze 6.0.6.

      I was eventually able to reproduce this on stock Ubuntu 12.04 by making my screen width smaller than the command:
           :let msg = "Enter character:" | echo msg | let c = getchar() | let c = nr2char(c) | echon c

      Hmm, I just tried this on my Windows machine and I also get the "Press ENTER ..." prompt.

      Can you confirm any of this?


      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@....
      For more options, visit https://groups.google.com/groups/opt_out.
    Your message has been successfully submitted and would be delivered to recipients shortly.