VIM是非常酷的编辑器,同时支持Windows, Mac, Linux多种平台。如果你不喜欢用IDE做开发的话,那么用VIM+GCC+GDB是比较好的选择。下面就来讲一下VIM的配置,这只是关于程序编辑方 面的,不涉及基本的操作。要想获得更多的信息,请访问VIM主页:
VIM的配置文件放在.vimrc(个人的), /etc/vimrc(系统全局的)。我们为了更好地进行开发,需要安装一些插件,下面是我的插件:
安装:1.先从网上抓下来:http://www.vim.org/scripts/script.php?script_id=1658
2.将文档解压缩至~/.vim目录。
启动:输入:NERDTree<Enter>, ok, 我们还可以绑定一个快捷键,$vim ~/.vimrc, 添加一行:nmap <F3> :NERDTree <CR>,这样每次按F3就可以启动NERDTree了,是不是很方便啊。
Taglist: 这个可厉害啦,它是一个源代码浏览器,支持C/C++, java, perl, python, tcl, sql, php, etc。
安装:1.先从网上抓下来:
http://www.vim.org/scripts/script.php?script_id=273
2.将文档解压缩至~/.vim目录。
启动:输入:Tlist<Enter>, 当然我们也要绑定一个快捷键,在.vimrc中加入以下几行:
nmap <F4> :Tlist<CR> “”"”"”"”"”"”"”"”"”"”"”"”"”"”"” ” Tag list (ctags) ” “”"”"”"”"”"”"”"”"”"”"”"”"”"”"” let Tlist_Show_One_File = 1 ” “不同时显示多个文件的tag,只显示当前文件的 let Tlist_Exit_OnlyWindow = 1 ” “如果taglist窗口是最后一个窗口,则退出vim let Tlist_Use_Right_Window = 1 OK, 以后按F4就可以启动Taglist了,也很方便的。
一些设置:
1、显示行号
在文件末端添加一新行,输入 set nu
2、语法高亮
在文件中找到 “syntax on 这一行,去掉前面的双引号”,双引号是注释的意思
3、自动缩进
在文件末尾添加一行,输入 set autoindent
在添加一行,输入 set cindent
其中 autoindent 是自动缩进; cindent是特别针对 C语言语法自动缩进
2021年7月26日 15:36
We have sell some products of different custom boxes.it is very useful and very low price please visits this site thanks and please share this post with your friends. soaptoday
2021年8月07日 13:59
so happy to find good place to many here in the post, the writing is just great, thanks for the post. maldives travel agent
2021年8月08日 15:06
This is my first time visit to your blog and I am very interested in the articles that you serve. Provide enough knowledge for me. Thank you for sharing useful and don't forget, keep sharing useful info: xe tải 2 tấn
2021年8月08日 23:36
I was surfing the Internet for information and came across your blog. I am impressed by the information you have on this blog. It shows how well you understand this subject. 1919 n. loop w., houston, tx 77008
2021年8月09日 23:51
wow, great, I was wondering how to cure acne naturally. and found your site by google, learned a lot, now i’m a bit clear. I’ve bookmark your site and also add rss. keep us updated. North American Bancard Agent
2021年8月13日 01:25 This is truly an practical and pleasant information for all. Thanks for sharing this to us and more power North American Bancard Agent
2021年8月14日 22:02
I don’t think many of websites provide this type of information. 먹튀검증
2021年8月15日 13:12
I need to to thank you for this very good read!! I definitely loved every little bit of it. I have you bookmarked to check out new things you post… rent a car beograd
2021年8月15日 19:12
Hey what a brilliant post I have come across and believe me I have been searching out for this similar kind of post for past a week and hardly came across this. Thank you very much and will look for more postings from you. crackstreams
2021年8月24日 02:03
You completed certain reliable points there. I did a search on the subject and found nearly all persons will agree with your blog. 파워볼
2021年8月25日 02:04
Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work! The story of computer networks
2021年8月26日 12:38
Very good points you wrote here..Great stuff...I think you've made some truly interesting points.Keep up the good work. debt collection dubai
2021年8月26日 18:57
Thanks for the best blog. it was very useful for me.keep sharing such ideas in the future as well. casinos portugal
2021年8月27日 23:07
Mmm.. good to be here in your article or post, whatever, I think I should also work hard for my own website like I see some good and updated working in your site. film izle
2021年8月28日 22:19
Regular visits listed here are the easiest method to appreciate your energy, which is why why I am going to the website everyday, searching for new, interesting info. Many, thank you! paintingexperts.org/
2021年8月29日 11:23
I appreciated your work very thanks merchant processing ISO
2021年8月29日 19:29
I truly like you're composing style, incredible data, thankyou for posting. Search Websites
2021年8月31日 14:37
I have read your excellent post. This is a great job. I have enjoyed reading your post first time. I want to say thanks for this post. Thank you... https://personalar.az/sahil-babayev-kimdir/
2021年8月31日 19:48
We have sell some products of different custom boxes.it is very useful and very low price please visits this site thanks and please share this post with your friends. Wells Fargo ISO Sponsorship
2021年9月01日 11:27
When traveling outside of the United States, you will need to know how to utilize the expedited US Passport service. When travel dates sneak up on you, you will need to expedite your application so that you will be allowed to travel. buy real registered passport
2021年9月01日 11:39
When you're on a weight loss journey or plan you don't need to eat rabbit food, anyone who says you do hasn't met me or my methods. This is especially true when it comes to healthy snacks. This article outlines some of my personal favourite healthy snacks for weight loss, all of these are nutritious, delicious and don't take much time to prepare at all. Nüsse gut zum Abnehmen
2021年9月01日 22:50
After reading your article I was amazed. I know that you explain it very well. And I hope that other readers will also experience how I feel after reading your article. voyance telephone
2021年9月02日 02:14
I just got to this amazing site not long ago. I was actually captured with the piece of resources you have got here. Big thumbs up for making such wonderful blog page! coarse ground coffee
2021年9月02日 18:42
Truly, this article is really one of the very best in the history of articles. I am a antique ’Article’ collector and I sometimes read some new articles if I find them interesting. And I found this one pretty fascinating and it should go into my collection. Very good work! Buy dihydrocodeine online
2021年9月03日 13:29
I have read your excellent post. This is a great job. I have enjoyed reading your post first time. I want to say thanks for this post. Thank you... linux web hosting
2021年9月03日 14:39
This is a good post. This post gives truly quality information. I'm definitely going to look into it. Really very useful tips are provided here. Thank you so much. Keep up the good works. Football prediction
2021年9月03日 18:57
Truly, this article is really one of the very best in the history of articles. I am a antique ’Article’ collector and I sometimes read some new articles if I find them interesting. And I found this one pretty fascinating and it should go into my collection. Very good work! detectives sevilla
2021年9月04日 11:22
I wanted to leave a little comment to support you and wish you a good continuation. Wishing you the best of luck for all your blogging efforts. tips on selling merchant services
2021年9月04日 22:07
I am overwhelmed by your post with such a nice topic. Usually I visit your blogs and get updated through the information you include but today’s blog would be the most appreciable. Well done! systemische paartherapie
2021年9月05日 19:02
Thanks for sharing this information. I really like your blog post very much. You have really shared a informative and interesting blog post . satta matka
2021年9月05日 19:07
New web site is looking good. Thanks for the great effort. satta
2021年9月07日 13:12
Most of the time I don’t make comments on websites, but I'd like to say that this article really forced me to do so. Really nice post! selling credit card processing
2021年9月09日 22:53
Great tips and very easy to understand. This will definitely be very useful for me when I get a chance to start my blog. https://topuniversitieslist.com/city/ica/
2021年9月10日 01:21
You make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers. white label payment processors
2021年9月11日 00:19
That is really nice to hear. thank you for the update and good luck. best merchant services to work for
2021年9月11日 01:20
Very informative post! There is a lot of information here that can help any business get started with a successful social networking campaign. merchant services sales representative
2021年9月11日 12:26
Cool stuff you have got and you keep update all of us. merchant services representative
2021年9月14日 13:27
Daily control of our skin will avoid skin blemishes. UBA Internet Banking
2021年9月14日 21:00
Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work.
2021年9月14日 22:35
Thank you for taking the time to publish this information very useful!
2021年9月15日 13:30
This is a good post. This post gives truly quality information. I’m definitely going to look into it. Really very useful tips are provided here. Thank you so much. Keep up the good works canada tourist visa
2021年9月16日 14:01
Mmm.. good to be here in your article or post, whatever, I think I should also work hard for my own website like I see some good and updated working in your site. North American Bancard Agent
2021年9月16日 18:37
I’ve read some good stuff here. Definitely worth bookmarking for revisiting. I surprise how much effort you put to create such a great informative website. North American Bancard ISO Program
2021年9月18日 17:17
It is quite an amazing and mind-blowing post by the user here.
2021年9月18日 17:22
I’m happy I located this blog! From time to time, students want to cognitive the keys of productive literary essay composing.
2021年9月19日 15:34
Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!Thanks free download udemy course
2021年9月20日 05:13
“A journey of a thousand leagues begins beneath one’s feet.” – Lao Tzu https://filmisongs.com/
2021年9月28日 18:40
Wonderful article, thanks for putting this together! This is obviously one great post. Thanks for the valuable information and insights you have so provided here.
2021年9月29日 18:46
Thanks for the valuable information and insights you have so provided here...
2021年10月11日 18:17
Amazing to see these all valuable things. That will bring all new things.
2021年11月30日 20:06
Thanks for your information, it was really very helpful:
2021年12月03日 19:27
<p>In today's world, people are actively fighting to keep drones from illegally entering prohibited private areas. Special <strong><a href="https://topsignaljammer.com/collections/gps-jammers">GPS jammer</a></strong> for drones help to solve this problem. What should normal people without special technology do to fight drones? Drones that interfere will be rescued. When used, the jammer effectively disables the drone's work.</p>
2021年12月18日 22:16
Its a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that "The content of your post is awesome" Great work.
2021年12月23日 22:01
Thank you for taking the time to publish this information very useful!
2021年12月28日 19:33
I love this blog!! The flash up the top is awesome!!
2022年1月17日 18:47
New web site is looking good. Thanks for the great effort.
2022年5月10日 22:11
Very interesting blog. Alot of blogs I see these days don't really provide anything that I'm interested in, but I'm most definately interested in this one. Just thought that I would post and let you know.
sry
2022年5月15日 20:22
I appreciated your work very thanks
dtfd
2022年5月23日 19:05
Im no expert, but I believe you just made an excellent point. You certainly fully understand what youre speaking about, and I can truly get behind that.
dsg
2022年6月13日 21:04
You are therefore cool! My partner and i do not assume I have learn anything like this prior to. So excellent to discover somebody with a few original thoughts on this subject matter. realy many thanks for beginning this up. this web site is something that’s needed on the web, someone using a bit of inspiration. beneficial project for delivering something a new comer to the internet! novelas online
2022年6月16日 15:28
You have remarked very interesting points ! ps nice site. Is Specialty Chemicals a Good Career Path
2022年6月17日 03:56
You have remarked very interesting points ! ps nice site. DoramasMp25
2022年6月25日 04:20 You have remarked very interesting points ! ps nice site. voyance telephone
2022年6月30日 04:40
You have remarked very interesting points ! ps nice site. Emisiuni Tv
2022年7月06日 04:50
You have remarked very interesting points ! ps nice site. thor love and thunder download
2022年8月04日 21:10
The post is written in very a good manner and it contains many useful information for me.
sf
2022年8月15日 03:39
This one is good. Keep up the good work I also visit here: and I get lot of information.
sfa
2022年8月15日 03:45
Thank you very much for keep this information.
sfa
2022年8月15日 03:53
I admit, I have not been on this web page in a long time... however it was another joy to see It is such an important topic and ignored by so many, even professionals. I thank you to help making people more aware of possible issues.
ds
2022年8月15日 22:05
Thanks for the post and great tips: even I also think that hard work is the most important aspect of getting success.
[Packers and Movers Navi Mumbai
](https://www.allianzpackers.com/packers-and-movers-in-navi-mumbai/
)
2022年8月15日 22:49
2022年8月15日 22:50
Thanks for the post and great tips: even I also think that hard work is the most important aspect of getting success. Packers and Movers Navi Mumbai
2022年8月15日 22:52
thanks this is good blog. Packers and Movers Bangalore
2022年8月15日 22:53
Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts. Packers and Movers Kanpur
2022年8月24日 00:00
It’s hard to search out knowledgeable individuals on this subject, but you sound like you realize what you’re speaking about! Thanks kgf 2 torrent download
2022年10月08日 01:34
I adore your blog site.. excellent colors & motif. Would you actually layout this excellent website on your own and also performed people rely on someone else to get it done for you? Plz react while I!|m planning to design and style my own blog site in addition to wish to find out where by you became this by. many thanks 代写essay
2023年1月18日 18:40
I just couldn't leave your website before telling you that I truly enjoyed the top quality info you present to your visitors? Will be back again frequently to check up on new posts. Things to do in Bradford
2023年1月23日 01:55
Nice post. I learn something on different blogs everyday. It can all the time be stimulating to read content from other writers and observe somewhat something from their blog
<a href= "https://accbuysell.com/buy-tinder-accounts/">Buy Tinder accounts</a>
2023年2月13日 01:08
I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. I hope to have many more entries or so from you. Very interesting blog.
2023年2月21日 18:28
I high appreciate this post. It’s hard to find the good from the bad sometimes, but I think you’ve nailed it! would you mind updating your blog with more information
dvgvs
2023年5月07日 14:04
When my partner and i acquired onto your internet site although acquiring thought fundamentally relatively little submits. Pleasant strategy for approaching, I will be bookmarking concurrently get sorts conclusion goes up up wards.