![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| mail format problem: | ali560045 | Shell Programming and Scripting | 5 | 06-04-2008 09:52 AM |
| To convert multi format file to a readable ascii format | gaur.deepti | UNIX for Dummies Questions & Answers | 5 | 03-25-2008 03:03 PM |
| CSV format problem | ccwq | Shell Programming and Scripting | 10 | 08-06-2007 03:16 AM |
| format problem | bebop1111116 | High Level Programming | 5 | 10-10-2006 11:41 AM |
| serial no. format problem | unknown2205 | UNIX for Dummies Questions & Answers | 6 | 12-05-2005 11:45 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi, there. Everyone had a great Thanksgiving? I have a slice format problem when I am using vim to edit c++ source code. I don't know how to discribe the problem exactly. You see, usually when I use the command "vi hello.cpp" to write a code, it will have the format like this: Code:
#include <iostream>
using namespace std;
int main()
{
cout << "hello, world!" << endl;
cin.get();cin.get();
return 0;
}
Recently, I don't know what I did, when I do the same thing, it becomes like this: Code:
#include <iostream>
using namespace std;
int main()
{
cout << "hello, world!" << endl;
cin.get();cin.get();
return 0;
}
I mean I could use <tab> to move around the code, but it would be unconvnient. Besides, usually when I used an open parenthesis or bracket, it would remind me to close it. Now the warning is gone, too. Could anyone help me change vim back to the original setting? |
|
|||||
|
Take a look in your home directory for a hidden file .exrc This is the vi customization file. Did you by chance delete it? or unwittingly modify it?
Here is a link for more information on setting it up and for customizing your vi options. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|