LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-10-2006, 09:47 AM   #1
LinuxNewbie999
Member
 
Registered: Oct 2006
Distribution: FreeBSD
Posts: 162

Rep: Reputation: 30
blank spacing in Vi


I doing programming in Vi, and i found that i cannot delete some blank spacing in my scource code. Is there anyway can delete it?

I also try to do pragramming in emacs, but the file is #abc.c#
What is the command to compile & run C program in emacs?
 
Old 11-10-2006, 11:10 AM   #2
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,780

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
To delete things in vi switch to command mode (press escape) navigate to the thing you want to delete and press x. Should work for any character including whitespace. You might want to go over the tutorial that comes with vim (run vimtutor).

Emacs also has a tutorial, press C-h t (that means hold control and type h, then release control and type t). #abc.c# looks like an autosave file. To compile:
Code:
M-x compile
to run any shell command use M-!. (M is for Meta which is probably alt on your keyboard).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl Array Spacing twistedpair Programming 2 02-18-2006 07:30 PM
Font Spacing darkjedi8359 Mandriva 1 01-12-2005 12:37 AM
Icon Spacing on Desktop Joseph_M Slackware 8 09-08-2004 06:32 PM
Icon Spacing. RoaCh Of DisCor Linux - Software 1 07-11-2004 06:43 PM
font spacing zeb_666 Linux - General 0 05-01-2004 10:29 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration