Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to enter the @ symbol using "vi" editor 1

Status
Not open for further replies.

rcbatlinux

Technical User
Mar 30, 2001
80
US
I need to enter the @ symbol in "vi" editor yet it uses it as an ed command. Any ideas how to literally use the @ symbol in vi?

Rick
 
Perhaps you've tried this already, but try escaping it using the escape character '\'. For example, \@

Hope this helps.

- Stu
 
Try an 'stty -a' on your box, and you'll find that it says something like "kill = @" - the @ symbol has been set to a line-kill character. I'm not sure how this affects vi.

If you don't want to be bothered by this problem again,
set the line-kill character to something else:
'stty kill ^u' (replace ctrl-u by whatever your preference is.)

Could someone tell me how the stty kill option affects vi?
 
The \@ works like a charm. All I need thank you for the responses.

Rick
 
^v@ would also do it ...

^v then any character (including other control chars) inserts that character ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top