dahu / vim-fanfingtastic

Find a char across lines
113 stars 5 forks source link

dt* and df* are broken #11

Closed Twinside closed 11 years ago

Twinside commented 11 years ago

Hello,

Thank you for your useful plugin, but I got some weird corner case, when trying to use the df" or dt" (or any other char) with fanfingtastic, only the last character is deleted, not the whole content :

"a example string"
           _

dt" result in

"a example strin"
                _

instead of

"a example "
           _

and df" result in

"a example string
                _

instead of

"a example 
          _

Also, a weird "beep" arise when using vt* command.

dahu commented 11 years ago

Vincent, I am unable to reproduce any of these failures. In all of the examples above, I get the expected results. Are you using the latest version of fanfingtastic? What filetype are you running your experiments in? Does :verb omap t show that it's coming from fanfingtastic.vim?

Twinside commented 11 years ago

I'm effectively running the latest version of the plugin (commit 93776b5 (HEAD, master) added to omaps so that . repeats are quiet too"). I've ran in the trouble with the "OCaml" file type and the "no-filetype" (the default). Here are the mapping :

:verb omap t
o  t             <Plug>fanfingtastic_t
    Last set from ~\vimfiles\bundle\vim-fanfingtastic\plugin\fanfingtastic.vim

:verb map t
o  t             <Plug>fanfingtastic_t
    Last set from ~\vimfiles\bundle\vim-fanfingtastic\plugin\fanfingtastic.vim
x  t             <Plug>fanfingtastic_t
    Last set from ~\vimfiles\bundle\vim-fanfingtastic\plugin\fanfingtastic.vim
n  t             <Plug>fanfingtastic_t
    Last set from ~\vimfiles\bundle\vim-fanfingtastic\plugin\fanfingtastic.vim

:verb map f
o  f             <Plug>fanfingtastic_f
    Last set from ~\vimfiles\bundle\vim-fanfingtastic\plugin\fanfingtastic.vim
x  f             <Plug>fanfingtastic_f
    Last set from ~\vimfiles\bundle\vim-fanfingtastic\plugin\fanfingtastic.vim
n  f             <Plug>fanfingtastic_f
    Last set from ~\vimfiles\bundle\vim-fanfingtastic\plugin\fanfingtastic.vim

Here is my vim version :

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Sep 14 2012 13:24:15)
MS-Windows 32-bit GUI version with OLE support
Included patches: 1-661
Compiled by digitectNO@SPAMdancingpaper.com
Huge version with 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 +gettext/dyn -hangul_input +iconv/dyn +insert_expand 
+jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap +lua/dyn +menu +mksession 
+modify_fname +mouse +mouseshape +multi_byte_ime/dyn +multi_lang -mzscheme +netbeans_intg +ole 
+path_extra +perl/dyn +persistent_undo -postscript +printer +profile +python/dyn -python3 +quickfix 
+reltime +rightleft -ruby +scrollbind +signs +smartindent -sniff +startuptime +statusline -sun_workshop 
+syntax +tag_binary +tag_old_static -tag_any_white -tcl -tgetent -termresponse +textobjects +title 
+toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore 
+wildmenu +windows +writebackup -xfontset -xim -xterm_save -xpm_w32 
system vimrc file: "$VIM\vimrc"
    user vimrc file: "$HOME\_vimrc"
2nd user vimrc file: "$VIM\_vimrc"
    user exrc file: "$HOME\_exrc"
2nd user exrc file: "$VIM\_exrc"
system gvimrc file: "$VIM\gvimrc"
    user gvimrc file: "$HOME\_gvimrc"
2nd user gvimrc file: "$VIM\_gvimrc"
    system menu file: "$VIMRUNTIME\menu.vim"
Compilation: gcc -O3 -fomit-frame-pointer -freg-struct-return -fno-strength-reduce -DWIN32 -DHAVE_PATHDEF -DFEAT_HUGE  -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -DFEAT_PERL -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL="perl58.dll" -DFEAT_PYTHON -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL="python27.dll" -DFEAT_LUA -DDYNAMIC_LUA -DDYNAMIC_LUA_DLL="lua51.dll" -DDYNAMIC_GETTEXT -DDYNAMIC_ICONV -DFEAT_MBYTE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -DFEAT_GUI_W32 -DFEAT_CLIPBOARD -DFEAT_OLE -march=i386 -Iproto -I/cygdrive/c/strawberry/perl/lib/CORE -I/cygdrive/c/PROGRA~2/Lua/5.1/include -s -mno-cygwin
Linking: gcc -s -o gvim.exe  -luuid -lole32 -lwsock32 -mwindows -lcomctl32 -lversion -loleaut32 -lstdc++

I also tried with the latest patched version of vim (version 1036) my runtimepath is :

C:\Users\Vince/vimfiles
C:\Users\Vince\vimfiles\bundle\Align
C:\Users\Vince\vimfiles\bundle\AnsiEsc
C:\Users\Vince\vimfiles\bundle\Ateme
C:\Users\Vince\vimfiles\bundle\DoxygenToolkit
C:\Users\Vince\vimfiles\bundle\DrawIt
C:\Users\Vince\vimfiles\bundle\L9
C:\Users\Vince\vimfiles\bundle\LanguageTool
C:\Users\Vince\vimfiles\bundle\MatchTag
C:\Users\Vince\vimfiles\bundle\TagHighlight
C:\Users\Vince\vimfiles\bundle\VimExplorer
C:\Users\Vince\vimfiles\bundle\Webrexp
C:\Users\Vince\vimfiles\bundle\alternate
C:\Users\Vince\vimfiles\bundle\bufexplorer
C:\Users\Vince\vimfiles\bundle\color-atom
C:\Users\Vince\vimfiles\bundle\color-bclear
C:\Users\Vince\vimfiles\bundle\color-gravity
C:\Users\Vince\vimfiles\bundle\color-jellybeans
C:\Users\Vince\vimfiles\bundle\ctrlp
C:\Users\Vince\vimfiles\bundle\cuteHaskell
C:\Users\Vince\vimfiles\bundle\eq
C:\Users\Vince\vimfiles\bundle\flex4
C:\Users\Vince\vimfiles\bundle\gundo
C:\Users\Vince\vimfiles\bundle\haskellmode
C:\Users\Vince\vimfiles\bundle\hilinks
C:\Users\Vince\vimfiles\bundle\indent-guides
C:\Users\Vince\vimfiles\bundle\manpageviewer
C:\Users\Vince\vimfiles\bundle\matchit
C:\Users\Vince\vimfiles\bundle\multiplesearch
C:\Users\Vince\vimfiles\bundle\nerdcommenter
C:\Users\Vince\vimfiles\bundle\nerdtree
C:\Users\Vince\vimfiles\bundle\ocaml-annot
C:\Users\Vince\vimfiles\bundle\omnicppcomplete
C:\Users\Vince\vimfiles\bundle\repeat
C:\Users\Vince\vimfiles\bundle\rfc
C:\Users\Vince\vimfiles\bundle\scratch
C:\Users\Vince\vimfiles\bundle\srcexpl
C:\Users\Vince\vimfiles\bundle\surround
C:\Users\Vince\vimfiles\bundle\tagbar
C:\Users\Vince\vimfiles\bundle\taglist
C:\Users\Vince\vimfiles\bundle\vim-aldmeris
C:\Users\Vince\vimfiles\bundle\vim-avisynth
C:\Users\Vince\vimfiles\bundle\vim-codeoverview
C:\Users\Vince\vimfiles\bundle\vim-colors-solarized
C:\Users\Vince\vimfiles\bundle\vim-compot
C:\Users\Vince\vimfiles\bundle\vim-cuteErrorMarker
C:\Users\Vince\vimfiles\bundle\vim-cuteTodoList
C:\Users\Vince\vimfiles\bundle\vim-docbook
C:\Users\Vince\vimfiles\bundle\vim-easymotion
C:\Users\Vince\vimfiles\bundle\vim-eddie
C:\Users\Vince\vimfiles\bundle\vim-extradite
C:\Users\Vince\vimfiles\bundle\vim-fanfingtastic
C:\Users\Vince\vimfiles\bundle\vim-fugitive
C:\Users\Vince\vimfiles\bundle\vim-haskellConceal
C:\Users\Vince\vimfiles\bundle\vim-haskellFold
C:\Users\Vince\vimfiles\bundle\vim-hoogle
C:\Users\Vince\vimfiles\bundle\vim-modelica
C:\Users\Vince\vimfiles\bundle\vim-ocamlconceal
C:\Users\Vince\vimfiles\bundle\vim-powershellCall
C:\Users\Vince\vimfiles\bundle\vim-pushd
C:\Users\Vince\vimfiles\bundle\vim-scala
C:\Users\Vince\vimfiles\bundle\vim-syntax-blame
C:\Users\Vince\vimfiles\bundle\vim-syntax-haskell-cabal
C:\Users\Vince\vimfiles\bundle\vim-visual-increment
C:\Users\Vince\vimfiles\bundle\vimwiki
C:\Users\Vince\vimfiles\bundle\xptemplate
C:\Users\Vince\Tools\CMD\vim/vimfiles
C:\Users\Vince\Tools\CMD\vim
C:\Users\Vince\Tools\CMD\vim/vimfiles/after
C:\Users\Vince\vimfiles\bundle\Ateme\after
C:\Users\Vince\vimfiles\bundle\omnicppcomplete\after
C:\Users\Vince\vimfiles\bundle\vim-docbook\after
C:\Users\Vince\vimfiles\bundle\vim-haskellConceal\after
C:\Users\Vince\vimfiles\bundle\vim-ocamlconceal\after
C:\Users\Vince\vimfiles\bundle\vim-scala\after
C:\Users\Vince/vimfiles/after
C:/Users/Vince/vimfiles/bundle/xptemplate/personal
C:\Users\Vince/vimfiles/personal
C:\Users\Vince/.vim/personal

I don't really know what might go wrong :-/

dahu commented 11 years ago

Wow... what a list of plugins! o_O I wonder if any of them are causing a failure...? You could try https://github.com/dahu/bisectly to find out. Your original example was "an example string". Do you get the same error with: an example string (outside of quotes)?

Twinside commented 11 years ago

Ok I found it, the faulty was.... an old version of repeat :-( I got the 1.0 version, and updating it to the latest (from the git repository) fixed the problem

Sorry to have bothered you :]

dahu commented 11 years ago

Cool. Well done.