Issue #8 resolved

insert in visual mode

legrostdg
created an issue

In vim, if I hit "I" "sometext" <ESC> in visual mode, "sometext" is inserted at the beginning of each line selected in visual-mode. That does not seem to be the case with evil...

Comments (15)

  1. Frank Fischer repo owner
    • changed status to open

    At least in my vim 7.2 this does not happen, either. But in Evil the behavior you desire does happen, but only in linewise visual-mode and block-visual-mode. I'm not sure what the expected behavior in character-wise visual-mode should be ...

  2. legrostdg reporter
    • changed status to new

    Sorry, I meant "visual block mode" in vim. I confirm that, with Evil, "C-v" "I" "sometext" <ESC> does not insert "sometext" at the beginning of each line. When I first emacs, it first gives me:

    f
    o
    o
    (hitting "C-v")
    
    #f
    o
    o
    (after selecting the 3 lines, hitting "I", and then "#")
    
    
    #f
    #################################o
    o
    (hitting <ESC>)
    
    

    with this message in the minibuffer: "After 0 kbd macro iterations: Variable binding depth exceeds max-specpdl-size"

    And after that, if I try to do it again, <ESC> produces nothing...

  3. Frank Fischer repo owner
    • changed status to open

    Interesting, I can't reproduce that. Does the same happen if you start emacs with Evil only (run 'make emacs' in the source directory)?. What version of Emacs do you use?

  4. legrostdg reporter

    Yes, I'm using Emacs (23.3+1-1) in a terminal window (emacsclient). And, yes it works with "make emacs" (but it starts a graphical emacs)

  5. legrostdg reporter
    • changed status to open

    Hum, there seems to be a new issue :-). The insertion is not always inserted at the beginning of the text...

    f
    o
    o
    
    #f
    o
    o
    <C-v>...<I><#>
    
    #f
    #o
    #o
    <ESC>
    
    a#f
    #o
    #o
    <C-v>...<I><a>
    
    a#f
    a#o
    #oa
    <ESC>
    
  6. Frank Fischer repo owner

    I'm sorry, but this time I can't reproduce that, neither in graphic mode (make emacs) nor in terminal mode (make terminal). Can you provide a minimal example starting from a fresh emacs?

  7. Frank Fischer repo owner

    Then it seems to be a problem with other packages or you configuration. I'm sorry but I can't help you in this case. But of course, we would be very glad if you manage to track down where the problem comes from (by, e.g., manually evaluating your .emacs line by line). ;)

  8. Frank Fischer repo owner

    I still can't reproduce the bug. Which version of auto-complete do you use? Does the bug occur without undo-tree (should be loaded by evil anyway).

  9. legrostdg reporter

    The bug occurs with undo-tree, but I used an old version of auto-complete (0.2). I've installed the git version and it seems to work! Sorry for the inconvenience :(

  10. Log in to comment