Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Vi Help
echeng66
post Jun 13 2003, 12:29 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 21
Joined: 2-June 03
Member No.: 913



I have mandrake 9.1 and the vi is actually vim. It is way to smart for me. I tried but unsuccessful in disabling autoindentation in C file. Since every often I cut and paste c code from another file, it autoindent every line.

How do I diable this? I copyt the example vimrc file to my home directory as .vimrc

I got rid of the line
set autoindent

I got rid of the line
filetype plugin indent on

It didn't help. Any ideas? Thanks.
Go to the top of the page
 
+Quote Post
Jay-Jay
post Jun 13 2003, 03:49 PM
Post #2


I Eat C Code for Breakfast
****

Group: Members
Posts: 162
Joined: 2-June 03
From: London (UK)
Member No.: 914



Hiya

Just to say that i find vim difficult to move around in and use on a day to day basis. I suggest if your having trouble using vim then use "nano -w" I'm tying to learn C so, but feel i'm quite a bit behind you. Have a look around nano and see what you think, and let me know. I'd be interested in hearing what you think.

Jay-Jay


--------------------
I have a new toothbrush that had rubber prongs to massage my gums while I brush. How odd! (Query of life)
Go to the top of the page
 
+Quote Post
echeng66
post Jun 13 2003, 06:28 PM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 21
Joined: 2-June 03
Member No.: 913



I like vi. Maybe is not that I like it but I have be using it for 18 years. I guess If I can't figure out how to fix that, I will need to learn emacs. Thanks for suggesting nano.
Go to the top of the page
 
+Quote Post
echeng66
post Jun 13 2003, 09:22 PM
Post #4


Whats this Lie-nix Thing?
*

Group: Members
Posts: 21
Joined: 2-June 03
Member No.: 913



Sorry for the posting. I figured out how to do it. I need to explictly say
set noautoindent
and
set nocindent
Go to the top of the page
 
+Quote Post
Jay-Jay
post Jun 14 2003, 02:35 AM
Post #5


I Eat C Code for Breakfast
****

Group: Members
Posts: 162
Joined: 2-June 03
From: London (UK)
Member No.: 914



That's great. Thanks for letting us know how you fixed it . . . Sorry that I couldn't be of much help.

Jay-Jay


--------------------
I have a new toothbrush that had rubber prongs to massage my gums while I brush. How odd! (Query of life)
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 11th December 2017 - 06:34 AM