说说vim
用vim也有很长一段时间了,这里说说我对vim的一些见解吧。
近两年出现了一些vim插件管理的方案,比如
但是做得还不够,这里可以对比看看PHP
近几年的发展,我们需要 Composer 这样的包管理器,和 Packagist 这样的检索网站,vimpusher 是个不错的尝试,另外还需要像 clojure-toolbox 这样的网站,vim官方的那个太不好用了就那么几个分类。
再说说vimscript
,我想还是有许多像我一样的人不喜欢它的语法,不过有一些人用它写出了很复杂的插件,比如 unite 和 ctrlp,我唯一认真阅读过的vim插件源码 lusty 是用ruby
写的,我自己后来学着用lua
重写了一个,算是了解了下vim插件的编写。
最后再说说vim插件编写中的一些问题:
vim没有提供一个良好的按键捕获机制,通常都是使用map
命令来实现,这样就导致了不同插件之间按键冲突,所以你需要很好地恢复覆盖掉的映射关系,这点在lusty
代码中可以见到。
vim不能很好地创建一个特殊的buffer
,你很容易混淆一些选项到底是局部的还是全局的,你需要巧妙地设置 b:undo_ftplugin
变量,例如 vim-markdown 中的。
vim的窗口状态保存恢复机制不是很好用。
vim没有内建的MRU
支持,你需要监听 BufEnter
BufDelete
BufWipeout
自己做。
当然了,vim仍然是我最喜欢的编辑器。
声明:除非注明,本博客所有文章皆为原创,转载请注明出处,谢谢。
Mar 04, 2013 02:43:14 PM
说起来,vim最赞的还是对操作的抽象呀
比如Paratical Vim的作者的review(不过其实很多东西在Pratical Vim中提到了)
http://vimcasts.org/blog/2013/01/vim-london-january-in-review/
Mar 04, 2013 02:49:01 PM
@zaeneas: 总之vim再向好的方向发展,最喜爱的还是它独特的按键模式。
Mar 04, 2013 06:30:03 PM
getchar() 函数可以捕获按键的,你可以试试。
Feb 22, 2024 07:45:23 PM
In any game, you depend on the currency of the game to survive and make progress in the virtual world. V bucks are the in-game currency of this giant game. V Bucks are the bane of existence when it comes to the digital world of Fortnite
May 02, 2024 06:44:17 AM
It is a fantastic post – immense clear and easy to understand. I am also holding out for the sharks too that made me laugh.
May 02, 2024 06:54:36 AM
I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much.
May 02, 2024 07:01:40 AM
This is incredible you did an amazing job!!! Thanks for sharing. I recommend to all of you to check out my page to explore and learn more about reaction time test.
May 02, 2024 01:57:49 PM
Interesting topic for a blog. I have been searching the Internet for fun and came upon your website. Fabulous post. Thanks a ton for sharing your knowledge! It is great to see that some people still put in an effort into managing their websites. I'll be sure to check back again real soon.
May 02, 2024 01:58:38 PM
Interesting topic for a blog. I have been searching the Internet for fun and came upon your website. Fabulous post. Thanks a ton for sharing your knowledge! It is great to see that some people still put in an effort into managing their websites. I'll be sure to check back again real soon.
May 02, 2024 01:59:13 PM
Excellent article plus its information and I positively bookmark to this site because here I always get an amazing knowledge as I expect. Thanks for this to share with us
May 02, 2024 01:59:50 PM
I want you to thank for your time of this wonderful read!!! I definately enjoy every little bit of it and I have you bookmarked to check out new stuff of your blog a must read blog!
May 02, 2024 02:00:25 PM
This is my first time i visit here. I found so many entertaining stuff in your blog, especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the leisure here! Keep up the good work. I have been meaning to write something like this on my website and you have given me an idea. also, you can check Test Your Color Vision.
May 02, 2024 02:01:57 PM
you wrote about family . that's a very nice . I am really happy to say it’s an interesting post to read. I learn new information from your article, you are doing a great job. Keep it up and visit my blog bin search.
May 02, 2024 02:02:46 PM
I must say, this Blog is a fantastic addition to an already outstanding theme. Keep up the good work guys, it's amazing what you come up with for the Opencart community.
May 02, 2024 02:03:18 PM
It is a very good weblog and very engaging too. Nice paintings! That’s no longer actually so much coming from an beginner writer like me, but it’s all I may just say after diving into your posts. Nice grammar and vocabulary. Not like other blogs. You actually understand what you?re talking about too. Such a lot that you just made me need to explore more.
May 02, 2024 02:03:54 PM
Hello, It was really great that you shared the information on this topic with us, rarely the people choose such a topic for article, the information you provide is good updated and so much useful to us the things you explain in details its interesting part of your article, I enjoyed your article, I am also writing the article on reaction time test . this is very intresting topic I hope you also like my topic so you can definitely visit our website Credit card generator.
May 02, 2024 02:04:34 PM
Superb i really enjoyed very much with this article here. Really its a amazing article i had ever read. I hope it will help a lot for all. Thank you so much for this amazing posts and please keep update like this excellent article.thank you for sharing such a great blog with us. expecting for your updates on bin search.
May 02, 2024 02:06:50 PM
I have visit first time on your blog this is very nice and useful information for me. Thank you ! I have also shared some more information about.. this is very intresting topic you can visit on my blog reaction time test.
May 02, 2024 02:07:32 PM
I have visit first time on your blog this is very nice and useful information for me. Thank you ! I have also shared some more information about.. this is very intresting topic you can visit on my blog reaction time test.
May 02, 2024 02:08:35 PM
Yavoo, I recently came across your article and have been reading along. I want to express my admiration of your writing skill and ability to make readers read from the beginning to the end. I would like to read newer posts and to share my thoughts with you.
May 02, 2024 02:09:08 PM
It is a very good weblog and very engaging too. Nice paintings! That’s no longer actually so much coming from an beginner writer like me, but it’s all I may just say after diving into your posts. Nice grammar and vocabulary. Not like other blogs. You actually understand what you?re talking about too. Such a lot that you just made me need to explore more.
May 02, 2024 02:09:46 PM
This content is written very well. Your use of formatting when making your points makes your observations very clear and easy to understand. Thank you.
May 02, 2024 02:10:31 PM
Yavoo, I recently came across your article and have been reading along. I want to express my admiration of your writing skill and ability to make readers read from the beginning to the end. I would like to read newer posts and to share my thoughts with you.
May 02, 2024 02:28:18 PM
It is a fantastic post – immense clear and easy to understand. I am also holding out for the sharks too that made me laugh.
May 02, 2024 02:28:48 PM
It is a very good weblog and very engaging too. Nice paintings! That’s no longer actually so much coming from an beginner writer like me, but it’s all I may just say after diving into your posts. Nice grammar and vocabulary. Not like other blogs. You actually understand what you?re talking about too. Such a lot that you just made me need to explore more.
May 02, 2024 04:45:46 PM
This is actually good to read the content of this blog. here is very general and the huge knowledgeable platform has been known by this blog. Kindly I share the most useful topic which is important for every user.
May 02, 2024 04:46:25 PM
I want you to thank for your time of this wonderful read!!! I definately enjoy every little bit of it and I have you bookmarked to check out new stuff of your blog a must read blog!
May 02, 2024 04:47:22 PM
This is my first time i visit here. I found so many entertaining stuff in your blog, especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the leisure here! Keep up the good work. I have been meaning to write something like this on my website and you have given me an idea.
May 02, 2024 06:08:02 PM
This is incredible you did an amazing job!!! Thanks for sharing. I recommend to all of you to check out my page to explore and learn more about reaction time test.
May 02, 2024 06:23:50 PM
This is actually good to read the content of this blog. here is very general and the huge knowledgeable platform has been known by this blog. Kindly I share the most useful topic which is important for every user.
May 02, 2024 06:57:11 PM
I have visit first time on your blog this is very nice and useful information for me. Thank you ! I have also shared some more information about.. this is very intresting topic you can visit on my blog reaction time test.
May 02, 2024 07:40:55 PM
This content is written very well. Your use of formatting when making your points makes your observations very clear and easy to understand. Thank you.
May 02, 2024 07:42:44 PM
Thank you because you have been willing to share information with us. we will always appreciate all you have done here. I also have something for you. you can gay test.
May 02, 2024 07:43:26 PM
Really impressed! Everything is very open and very clear clarification of issues. It contains truly facts. Your website is very valuable. Thanks for sharing. I also found this useful information about gay test.
May 02, 2024 07:44:09 PM
This is my first time i visit here. I found so many entertaining stuff in your blog, especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the leisure here! Keep up the good work. I have been meaning to write something like this on my website and you have given me an idea. also, you can check Test Your Color Vision.
May 02, 2024 08:01:15 PM
Really I enjoy your site with effective and useful information. It is included very nice post with a lot of our resources.thanks for share. i enjoy this post.
May 02, 2024 08:06:12 PM
I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading. Nice blog, I will keep visiting this blog very often Color Blind Test.
May 02, 2024 08:06:46 PM
Really impressed! Everything is very open and very clear clarification of issues. It contains truly facts. Your website is very valuable. Thanks for sharing. I also found this useful information about gay test.
May 02, 2024 08:14:15 PM
think this is a really good article. You make this information interesting and engaging. You give readers a lot to think about and I appreciate that kind of writing.
May 02, 2024 08:28:39 PM
Great article with excellent idea!Thank you for such a valuable article. I really appreciate for this great information..