@ character forbid to write in vi.


 
Thread Tools Search this Thread
Operating Systems HP-UX @ character forbid to write in vi.
# 1  
Old 02-02-2011
@ character forbid to write in vi.

Hi ALL,

I'm encountering this problem on HP Shell (tcsh) environment.
Once I enter in vi to edit a file and add my sql script, like this:
sqlplus user/pass @promo.sql(tu run my script)
the @ character is not possible to write.
I push on the key but is not written inside.

Also in sqlplus mode I can edit the @ character but the character starts a new paragraph (new line) is there a specific settings that configures this?

Thanks.

Ciao
# 2  
Old 02-02-2011
Hi,

This works in my 'vim' version. In insert mode try to write the ascii code of the '@'char: <C-v>064
Code:
$ vim -h | head -1
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Sep 28 2010 07:15:55)

Regards,
Birei
# 3  
Old 02-02-2011
Hi

Take a look, at stty -a and search for kill. You can change it like
#stty kill ^U
# 4  
Old 02-03-2011
Are you sure you are on HP-UX? Mentioning "tcsh" make me wonder:
Code:
uname -a

Please post the output from:
Code:
echo $TERM
stty -a

If you have a file called ".exrc" in your home directory, please post the output from:
Code:
sed -n l .exrc

I completely forgot to ask:
Is this a US or UK QWERTY keyboard or something else like a French AZERTY keyboard?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sed searches a character string for a specified delimiter character, and returns a leading or traili

Hi, Anyone can help using SED searches a character string for a specified delimiter character, and returns a leading or trailing space/blank. Text file : "1"|"ExternalClassDEA519CF5"|"Art1" "2"|"ExternalClass563EA516C"|"Art3" "3"|"ExternalClass305ED16B8"|"Art9" ... ... ... (2 Replies)
Discussion started by: fspalero
2 Replies

2. Shell Programming and Scripting

Is it possible to write write multiple cronjobs in shellscript??

Hi All, I need the answer of below question? 1) How to write multiple cronjobs in shellscript? Is there any way or we cant write in shellscript... Regards, Priyanka (2 Replies)
Discussion started by: pspriyanka
2 Replies

3. Programming

How forbid use fork() in exec() program.

Hello World! I am writing code in C++ which have to launch another application X using exec(). I would like to set some limits on it using setrlimit etc... My problem is that i don't know how to forbid using fork() and strlimit by application X. How can i do it? (3 Replies)
Discussion started by: kzi
3 Replies

4. IP Networking

read/write,write/write lock with smbclient fails

Hi, We have smb client running on two of the linux boxes and smb server on another linux system. During a backup operation which uses smb, read of a file was allowed while write to the same file was going on.Also simultaneous writes to the same file were allowed.Following are the settings in the... (1 Reply)
Discussion started by: swatidas11
1 Replies

5. Shell Programming and Scripting

Deleting all characters from 350th character to 450th character from the log file

Hi All, I have a big log file i want to delete all characters (between 350th to 450th characters) starting at 350th character position to 450th character position. please advice or sample code. (6 Replies)
Discussion started by: rajeshorpu
6 Replies

6. Shell Programming and Scripting

read in a file character by character - replace any unknown ASCII characters with spa

Can someone help me to write a script / command to read in a file, character by character, replace any unknown ASCII characters with space. then write out the file to a new filename/ Thanks! (1 Reply)
Discussion started by: raghav525
1 Replies

7. UNIX for Dummies Questions & Answers

forbid file recovery

Hi there, When I want to make a file unrecoverable, I use the following command: foo:~$ shred -fuz filename The problem is that I deleted many files using: foo:~$ rm -f filename How can I make those files unrecoverable? Is there a command that shreds the disk free space? So that no file can... (2 Replies)
Discussion started by: chebarbudo
2 Replies

8. Shell Programming and Scripting

forbid the error message

In my system , there is a script seems have a minor problem but I can't find it out , now everytime run the script , it will generate some error message to the system log , is it possible to forbid it generate the error to the system log or put all these message to /dev/null ? thx (3 Replies)
Discussion started by: ust
3 Replies

9. UNIX for Dummies Questions & Answers

shell script: forbid extension

Rather new to unix, so please don't beat me! I'm trying to get a list of files into a variable that I can use throughout the rest of the script. The challenge is that I need to exclude a certain extension from the list, and I'm having trouble with it. For example: item_a item_a.exe... (3 Replies)
Discussion started by: Loriel
3 Replies

10. UNIX for Advanced & Expert Users

How can I forbid a user to go up his home directory

Hi everybody, How can I forbid a user to go up his home directory ? Thanks MarcoW (2 Replies)
Discussion started by: MarcoW
2 Replies
Login or Register to Ask a Question