 |
|
Swartz Creek, Michigan: Linux Voodoo offers Linux consulting (and support) services (both free and commercial), Linux compatible hardware and software reviews and sales, Linux servers and desktop, the Voodoo Linux distribution and hardening systems, Linux driver development, Linux news,chat, message boards, Linux embedded jobs, security advisories, Linux howto's and newbie information. linux download red hat directpc direct pc linux linux software linux driver linux tutorial linux mandrake mandrake linux linux command netapp linux mount windows source decss linux game linux hp suse linux linux downloads linux firewall linux server linux programming linux red hat wine linux linux ppt linux operating system embedded linux linux distribution corel linux free linux free linux download linux help force 10baset linux linux laptop reset linux scsi d kill tape /proc linux router linux pda linux wallpaper red hat linux download linux kernel linux router project linux iso linux howto linux how to linux os linux application linux certification linux web hosting linux hosting linux modem peanut linux nokia rs 232 linux modem setting linux for window linux free download linux documentation project linux sms1 linux call back linux problem reading directory linux boot disk linux theme linux cluster linux closing port linux security dialogic linux linux emulator linux training linux startup dual boot window 2000 linux linux magazine linux auto rpm realtek rtl8019 linux driver download robomon linux linux estrutura de diretorios 3c589d config linux timeservice linux linux samba linux dvd player linux .ppt mplayer near download and linux red hat linux 7.2 linux mail server free linux software linux hardwarelinux anti virus redmond linux linux modem driver linux vpn pic microcontroller linux programmer aol for linux linux review linux wireless
contact us: abuse@flonetwork.com webmaster@flonetwork.com info@webmaster@flonetwork.com spampoision@lnxvoodoo.com noc@sprint.net webmaster@lnxvoodoo.com wlad@lnxvoodoo.com michelle@lnxvoodoo.com ryan@lnxvoodoo.com bryan@lnxvoodo.com rambo@lnxvoodoo.com senioreditor@lnxvoodoo.com editor@lnxvoodoo.com
WOW on Linux, yes our gaming systems do include World of Warcraft for Linux! Linux Voodoo Gaming systems include one copy of World of Warcraft, 1 year paid subscription to Transgaming.com so you can play over 200 popular Windows games on our linux systems. Too good to be true? Try it out for yourself.
 |
Start shopping |
 |
|
|
|
 |
Formating automatically
One often has to restrict the column width to 80 or 75 or
whatever. One can set this quite easily by using the
command
To do this automatically just put the command in your .vimrc.
In addition to textwidth you may want the text to wrap at
a certain column. Often such choices are dictated by the
terminal one is using or it could just be by choice. The
command for such a case is
The above command makes the text wrap at 60 columns.
While coding in C, one often indents inner-blocks of
code. To do this automatically while coding, VIM has an
option called cindent. To set this, just use the command
By setting cindent, code is automatically beautified. To
set this command automatically, just add it to your .vimrc
VIM also allows you to auto-format comments. You can split
comments into 3 stages: The first part, the middle part
and the end part. For example your coding style
requirements may require comments to be in the following
style
/*
* This is the comment
*/
|
In such a case the following command can be used
:set comments=sl:/*,mb:*,elx:*/
|
Let me decipher the command for you. The commands has
three parts. The first part is sl:/*. This tells VIM that
three piece comments begin with /*. The next part tells
VIM that the middle part of the comment is *. The last
part of the command tells vim a couple of things. One that
the command should end with */ and that it should
automatically complete the comment when you hit just /.
Let me give another example. Lets say your coding
guidelines are as follows
/*
** This is the comment
*/
|
In such a situation you can use following command for comments
:set comments=sl:/*,mb:**,elx:*
|
to insert a comment just type /* and hit enter. The next line
will automatically contain the **. After you've finished
the comment just hit enter again and another ** will be
inserted. However to end the comment you want a */ and not
**/. VIM is quite clever here. You don't need to delete
the last * and replace it with /. Instead, just hit / and
VIM will recognise it as the end of the comment and will
automatically change the line from ** to */.
For more info hit
:h comments
| |