Vim for C Programmers

You don't have to move to an integrated development environment to get luxury coding features. From variable autocompletions all the way up to integration with ctags and make, Vim makes a C programmer's life easier and more productive.
Conclusion

Vim comes with rich help documentation. Type :help from inside of Vim to browse it. To go to a particular topic, press Ctrl-] on the turquoise-colored text. Vim's help documentation uses the navigation mechanism we saw using tags.

Resources for this article: www.linuxjournal.com/article/8455.

Girish Venkatachalam loves to play with open-source operating systems, such as OpenBSD, FreeBSD and Debian GNU/Linux. He also likes to go cycling when not hacking. He can be contacted at girish1729@gmail.com.

______________________

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Please Help

neo_nuggets's picture

Hello sirs,
I have Vim and Code Blocks and am very much new to Vim and would like to know how does one build and run a script? (Yes...I am a newbie).

Nice article, concise and

Anonymous's picture

Nice article, concise and useful.

Seems like the author was trying to educate newcomers without trying to impress readers with unix-speak. I hope I can find more of his articles.

(windows programmer).

Try c.vimYou can get this

Shankar's picture

Try c.vim
You can get this from vim.org
An amazing plugin for working with C files in gvim.

Editing between marks

Gary T's picture

Excellent article, here's another little tip for marks and replacing.

Mark two points in the file with say ma and mb, you can then replace between the marks with

:'a,'bs/foo/bar/

or a single mark and then you can do current position to the mark with

:.,'as/foo/bar/

I find this incredibly useful, hopefully you will to.

Adding a small note

jagadeeshbp's picture

The article was quite marvellous and useful.

I just wanted to add, for those who are new to vim, that most of the settings like "se nu" can be made to persist across logins by just putting that setting in .vimrc file in the user's home directory.

Geek Guide
The DevOps Toolbox

Tools and Technologies for Scale and Reliability
by Linux Journal Editor Bill Childers

Get your free copy today

Sponsored by IBM

Upcoming Webinar
8 Signs You're Beyond Cron

Scheduling Crontabs With an Enterprise Scheduler
11am CDT, April 29th
Moderated by Linux Journal Contributor Mike Diehl

Sign up now

Sponsored by Skybot