VIM: Is this a bug of "vim" ?

VIM: Is this a bug of "vim" ?

Post by Gerhard Bos » Sun, 14 Apr 1996 04:00:00



Hi,
please save this file on your linux box and test it with the
command line:
/usr/bin/vim < filename >

The line vi: and some behind it will be interpreted as
vi: command line options, reading the file from the end
vi: end to to the first line. Please test this.
vi: Lets have a party
vi: You are a nice guy testing this,

By the way: vi : this is line, which does not create any trouble

--
====================================================================

problems reading news. If you are interested in the replys I can
send you a summary by email.
====================================================================
// EOJ
Mit freundlichen Gruessen, Gerhard

#include <std/disclaimer.h>
====================================================================
           Gerhard Bosch
Equipe Dynamique de l' Atmosphere Habitee              0   ____   0
Division Mecanique, Energetique et Environnement        \ / __ \ /          
Ecole Central de Nantes - 1, rue de la Noe             --/ (__) \--      
44072 Nantes Cedex 03, France                           =\      /=  
-------------------------------------                     -|--|-
voice: (33) 40 37 16 00, ext. 26 31    \  O               -|--|-
  FAX: (33) 40 74 74 06  ~~~~~\_________\/ )_________/~~ | |##| |

 http: //ifh-hp6.bau-verm.uni-karlsruhe.de/Bosch/index.html ##

       mz - sidecars - old motorcycles - anything interesting
======================================================================

 
 
 

VIM: Is this a bug of "vim" ?

Post by Gerhard Bos » Sun, 14 Apr 1996 04:00:00


 Hi,
 please save this file on your linux box and test it with the
 command line:
 In the original posting I started with "vi:" in the 1. Column
 of the line. This does not work. Also something line -vi: Does
 not make any trouble. There seems to be a problem with the
 contents of a file and the options given to vim.

 My setup: slackware 1.2.13, bash -v and and xterm
 (I would like to mention that I have no net access with the
  linux box and I hope this  apologizes the first incomplete posting.)

 /usr/bin/vim < filename >

 The line vi: and some behind it will be interpreted as
 vi: command line options, reading the file from the end
 vi: end to to the first line. Please test this.
 vi: Lets have a party
 vi: You are a nice guy testing this,

 By the way: vi : this is line, which does not create any trouble

 --
 ====================================================================

 problems reading news. If you are interested in the replys I can
 send you a summary by email.
 ====================================================================
 // EOJ
 Mit freundlichen Gruessen, Gerhard

 #include <std/disclaimer.h>
 ====================================================================
            Gerhard Bosch
 Equipe Dynamique de l' Atmosphere Habitee              0   ____   0
 Division Mecanique, Energetique et Environnement        \ / __ \ /          
 Ecole Central de Nantes - 1, rue de la Noe             --/ (__) \--      
 44072 Nantes Cedex 03, France                           =\      /=  
 -------------------------------------                     -|--|-
 voice: (33) 40 37 16 00, ext. 26 31    \  O               -|--|-
   FAX: (33) 40 74 74 06  ~~~~~\_________\/ )_________/~~ | |##| |

  http: //ifh-hp6.bau-verm.uni-karlsruhe.de/Bosch/index.html ##

        mz - sidecars - old motorcycles - anything interesting
 ======================================================================

 
 
 

VIM: Is this a bug of "vim" ?

Post by Mike Br » Mon, 15 Apr 1996 04:00:00



> The line vi: and some behind it will be interpreted as
> vi: command line options, reading the file from the end
> vi: end to to the first line. Please test this.
> vi: Lets have a party
> vi: You are a nice guy testing this,

if you have the file /usr/doc/vim/reference.doc, you should look thru
it.  If not, I quote from that file:

6. If you start editing a new file, and the 'modeline' option is set, a
   number of lines at the beginning and end of the file are checked for the
   string "vi:", "vim:" or "ex:". The text after it is considered to be the
   arguments for a ":set" command, separated with colons or spaces. For
   example:
                "vi:noai:sw=3 ts=6"
   The number of lines that are checked can be set with the 'modelines'
   option. If 'modeline' is not set or 'modelines' is 0 no lines are
   checked.
   The string "vi:", "vim:" or "ex:" must be preceded with a blank or begin
   at the start of a line. This minimizes the chance that a normal word like
   "lex:" is caught.

--
(   Michael D. Bray       | 'I know engineers, they love to change things.' )

(-------------------------|-------------------------------------------------)
(       GO MAGIC!!!       |  http://www.oir.ucf.edu/~mike  |     Peace      )

 
 
 

1. "X Error of failed request" when opening a file using VIM

When I open a file using Vim, it reports the following error
and exits:
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  20 (X_GetProperty)
  Resource id in failed request:  0x80000d
  Serial number of failed request:  7
  Current serial number in output stream:  7

What could be the problem and
What is the remedy for this ?

I am not sure whether this problem is Solaris or VIm related. Hence, I
am posting to both the newsgroups.

Thanks!

2. Misc. Graphics Utility

3. "~" with vim ??

4. Good system and network admin book

5. GETSERVBYNAME()????????????????????"""""""""""""

6. mod_timer fix for sch_cbq.c

7. VIM: Possible to turn off multi-level undo "feature" ?

8. bash I/O

9. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""

10. VIM ques: Using mouse for copy & paste in vim

11. hi , how to use "map" to input a string quickly in " vim " or "vi"??

12. Type "(", ")" and "{", "}" in X...

13. "System too big" & details on console.c "Illegal asm or bug".