Thus spake Bram Moolenaar on Sat, Apr 29, 2006 at 03:24:50PM +0200 or 
thereabouts: <[EMAIL PROTECTED]> [2006-04-29 14:35]:
> 
> cga (?) wrote:
> 
> > Are there any peculiarities associated with the '-' dash character in
> > vim?
> > 
> > I was experimenting with the '.' repeat command and I typed the
> > following:
> > 
> > +--------------------+--------------------------------------------+
> > !                    !                                            !
> > 
> > followed by an <esc> and a '.'
> > 
> > .. vaguely hoping to obtain this:
> > 
> > 
> > +--------------------+--------------------------------------------+
> > !                    !                                            !
> > +--------------------+--------------------------------------------+
> > !                    !                                            !
> > 
> > .. in order to eventually create a table of two columns and n rows with
> > minimal effort/typing.
> > 
> > Instead I got this:
> > 
> > +--------------------+-------------------------------------------+
> > !                    !
> > +--------------------+-------------------------------------------+
> > !¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬!¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬!!
> > 
> > iow the spaces on the second line of what I originally entered are
> > replaced by the 'NOT' character - not present on the US keyboard. 
> > 
> > also the last of my exclamation points appears to have been removed
> > from what I originally typed and now four of them appear on the second 
> > of the two lines added by the '.' command
> > 
> > naturally, I could use shift-V followed by a number of 'yp's to obtain
> > what I am looking for but I was just curious where this NOT ('¬' - 0xac)
> > character comes into the picture - and whether there is more to it
> > than the above triviality.
> 
> Weird.  I can't reproduce it.
> 
> What version of Vim?  

VIM - Vi IMproved 6.3 (2004 June 7, compiled Jul 30 2005 12:40:41)
Included patches: 1-71, 81-82
Compiled by [EMAIL PROTECTED]
Big version with GTK2 GUI.  Features included (+) or not (-):
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent 
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments 
+cryptv +cscope +dialog_con_gui +diff +digraphs +dnd -ebcdic +emacs_tags +eval 
+ex_extra +extra_search +farsi +file_in_path +find_in_path +folding -footer 
+fork() +gettext -hangul_input +iconv +insert_expand +jumplist +keymap +langmap
 +libcall +linebreak +lispindent +listcmds +localmap +menu +mksession 
+modify_fname +mouse +mouseshape +mouse_dec +mouse_gpm -mouse_jsbterm 
+mouse_netterm +mouse_xterm +multi_byte +multi_lang +netbeans_intg -osfiletype 
+path_extra -perl +postscript +printer +python +quickfix +rightleft -ruby 
+scrollbind +signs +smartindent -sniff +statusline -sun_workshop +syntax 
+tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse 
+textobjects +title +toolbar +user_commands +vertsplit +virtualedit +visual 
+visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup 
+X11 -xfontset +xim +xsmp_interact +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: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -DXTHREADS 
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include 
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include     -O2 -g -Wall  
-I/usr/X11R6/include   -I/usr/include/python2.3 -pthread   
Linking: gcc  -L/usr/X11R6/lib   -L/usr/local/lib -o vim   -Wl,--export-dynamic 
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft-1.0 
-lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0   -lXt 
-lncurses -lgpm -L/usr/lib/python2.3/config -lpython2.3 -lutil -lm -Xlinker 
-export-dynamic    

> What system?  

Linux turki 2.4.27.060305-2 #1 Sun Mar 5 03:40:55 EST 2006 i686 GNU/Linux

> Console or GUI?  

xterm (256 colors) + gnu/screen

Note: I was able to reproduce the same behavior under a plain 8/16
color term (aterm) outside gnu/screen so these aspects are probably not
relevant.

> What is 'encoding' set to?

set encoding?
encoding=latin-1

Another example:

1. abc
   ---


1¬¬abc
¬¬¬---

What I did:

. 'o' to open a new empty line after 'example:' (I was in normal mode)
. Escape and 'i' so vim 'forgets' about what I typed before.. then:

. I typed '1. abc' + Enter
. I typed three spaces and three dashes
. I hit Enter twice - cursor was indented to line up with the first dash
. I hit Escape - the cursor was back in column 1
. I hit '.'

Now an interesting side-effect of the above is that if I try to undo
this by hitting 'u' twice, there remains one '¬' a couple of lines
below my last 'sane' line ('Another example:').

Compare with:

abc
---

abc
---
I used pretty much the same actions as in the first example - ('o' to
open a new line, escape, 'i', typed abc, carriage return, three dashes,
carriage return, carriage return, escape, followed by the '.' command.

In this instance everything appears to work as expected - so it's not
the dash by itself - maybe the dot '.' has something to do with it..
maybe it's because my dashes in the first example are indented.. not
sure.
   

> 
> -- 
> Biting someone with your natural teeth is "simple assault," while biting
> someone with your false teeth is "aggravated assault."
>               [real standing law in Louisana, United States of America]
> 
>  /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
> ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
> \\\        download, build and distribute -- http://www.A-A-P.org        ///
>  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reply via email to