09-05-2008
VI paste out of alignment
We have a guy at work who is trying to copy and paste from one file to another using vi and highlighting the code to copy with a mouse.
Source file:
xyz 123 abc 999
zyx 321 cba 999
xyz 123 abc 999
But when he pastes it he gets (I put the underlines in to show the layout they are just spaces on his screen):
__xyz 123 abc 999
____zyx 321 cba 999
______xyz 123 abc 999
So it looks to me like his tabs are setup wrongly. I tried the same operation using my user and it works fine for me and keeps it's oringinal alignment.
Any thoughts on what is wrong (and more importantly how to fix it!
)?
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
grep 'Dept' x.lst |awk -F"Name=" `{print $1" "$2" "$3}`
the output is coming like this
Krishna 1 2340 8383
Rohan 10 982 234
how can I align these numbers using shell script.
even i used typeset but it is useful for only zero-when-blank.... (1 Reply)
Discussion started by: krishna
1 Replies
2. UNIX for Dummies Questions & Answers
I copied a word file to my Unix directory, How do I line up my columns to the file I copied over? (3 Replies)
Discussion started by: nikncha
3 Replies
3. Shell Programming and Scripting
Dear Champs,
i have a file let a.txt having value
number text
00 123
012
145 456
...etc
i need number and text column vales should right align ??? how can i achive this ???
NOTE number is of max 3 char and text can take max 7 char...so if any records are less than above lengths... (2 Replies)
Discussion started by: manas_ranjan
2 Replies
4. UNIX for Dummies Questions & Answers
Hello,
Do we have any freeware which helps in alignment of code wrt spaces, sections etc?
Thanks (6 Replies)
Discussion started by: eagercyber
6 Replies
5. Shell Programming and Scripting
Hi,
I am having a file with with format.
however, for longer xml, the xml code has been truncated like this.
F1 |###################### |String1 |<XML><REQ><MSGTYPE>DBDIRECT</MSGTYPE><SYNC>0</SYNC><CLIENT>C11</CLIENT>NAME=MYNAME|JOB=MYJOB|
| ... (3 Replies)
Discussion started by: shellwell
3 Replies
6. Shell Programming and Scripting
Hi Gurus,
I've the following output from my scripting as shown below.
0.48 GB 0.29 GB 0.19 GB 60%
0.48 GB 0.29 GB 0.19 GB 60%
228.90 GB 89.47 GB 139.42 GB 39%
228.76 GB 72.37 GB 156.39 GB 31%
Is it possible to format this output into a proper... (16 Replies)
Discussion started by: superHonda123
16 Replies
7. HP-UX
HI all,
I tried to edit my files using HP-UX but my output tends to not align when I add another character in the files
to edit my files i used the command is as follow
chmod +w filename
vi filename
Help, :eek: (1 Reply)
Discussion started by: jasonhpwong
1 Replies
8. Shell Programming and Scripting
*1 flash read test(*do_test1*) PASS
*2 xxxxxxxxxxx flash write test(*do_test2) FAIL ------>xxxxx
*1 flash read test(*do_test1*) PASS
*2 xxxxxxxxxxx flash write test(*do_test2) FAIL ------>xxxxx
I want pass and Fail to be aligned
if each line uses printf or echo to print, is... (5 Replies)
Discussion started by: yanglei_fage
5 Replies
9. UNIX for Beginners Questions & Answers
Dear All,
I am in the beginning stage of learning shell scripting and preparing shell script on my own now.
I would like to get help from fellow mates here.
As I am trying to take O/P with space included from I/P table.
Kindly guide me to align given I/P table as Expected O/P.
... (5 Replies)
Discussion started by: Raja007
5 Replies