Vi: How to insert control character 0 (null) ?

Vi: How to insert control character 0 (null) ?

Post by Anders Ekfeld » Sat, 10 Nov 2001 23:27:41



Which key kombination is used to insert control character 0 (null) ?

Thanks
Newbie

 
 
 

Vi: How to insert control character 0 (null) ?

Post by Matej Cep » Sun, 11 Nov 2001 00:26:15



> Which key kombination is used to insert control character 0 (null) ?

<Ctrl-V>000 in Insert mode.

Matej

--

138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488

The American Republic will endure, until politicians realize they
can bribe the people with their own money.
        -- Alexis de Tocqueville

 
 
 

Vi: How to insert control character 0 (null) ?

Post by Pepp » Sun, 11 Nov 2001 01:02:56



Quote:> Which key kombination is used to insert control character 0 (null) ?

Afaik, vi cannot handle nulls.

Vim, and possible others can. In vim it is '<C-V>000'.

Peppe   [who occasionally find vims null translation a pain]
--
                                      "Before you criticize someone, walk
Preben "Peppe" Guldberg  __/-\__       a mile in his shoes. That way, if

----------------------oOOo (_) oOOo--  - and barefoot."    --Sarah Jackson

 
 
 

1. insert 'return null' between two braces in Vi

From Rational Rose, the methods are generated as

public boolean func1(){

  // here

public String func2(){

  // here

I want to write

return null ;

wherever "// here" is shown ie. between the two braces.
There is no "// here" physically existing. But,I want to just to show
where the 'return null;' has to be inserted.

How do you do the above in Vi editor?

2. Netscape plugins

3. How do I insert special characters using vi?

4. Anyone know of benchmark site for Suns?

5. Inserting ascii characters in vi

6. Monthly Winners!

7. inserting sp. characters in VI

8. logging user log ins and outs

9. How to insert tab characters in vi ?

10. vi How to insert accented (french) characters?

11. Quoting Control-L (was Re: [slrn] How to insert spoiler character?)

12. Vim: position inserted character by macro in Insert mode

13. How do I display (hidden) control characters in a file with vi