学习Vim有什么好处? [英] What are the benefits of learning Vim?

查看:43
本文介绍了学习Vim有什么好处?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为一名程序员,我在键盘上花费了很多时间,并且在过去的12年中,或多或少地一直在使用它。如果有一段时间我一直不习惯某些事情,那是由于一些最常见的代码编辑任务,我在编码时遇到的这些烦人且几乎无意识的持续微中断。像是简单的副本&从不同的行(甚至同一行)粘贴,或从当前位置上移或下移1或2行需要太多的键入操作或涉及使用箭头键...当我要移动时,情况会变得更糟进一步-我最终使用了鼠标。现在想象一下在笔记本电脑上的相同场景。



我一直在考虑学习VIM,但是掌握它所需的时间总是让我想退后一步。



我想听听那些了解它的人的话,如果它最终成为了你不能没有的生活之一。



在工作中,我使用VS2008,C#和R#,它们一起使编辑代码比以往更快,更容易,但是即使如此,我还是觉得完全不必使用鼠标。 / p>

甚至没有箭头键。

解决方案

我去过也使用vi和vim已有20年了,我仍在学习新事物。



David Rayner的最佳Vim技巧网站是一个不错的列表,尽管一旦您对Vim有所了解,它可能会更有用。

我还想提及 ViEm u 网站,其中包含有关 vi / vim提示(尤其是文章< a href = http://www.viemu.com/a-why-vi-vim.html rel = noreferrer>为什么,哦,为什么这些疯子会使用vi?(存档版本


As a programmer I spend a lot of hours at the keyboard and I've been doing it for the last 12 years, more or less. If there's something I've never gotten used to during all this time, it's these annoying and almost unconscious constant micro-interruptions I experience while coding, due to some of the most common code editing tasks. Things like a simple copy & paste from a different line (or even the same line), or moving 1 or 2 lines up or down from the current position require too much typing or involve the use of the arrow keys ...and it gets worse when I want to move further - I end up using the mouse. Now imagine this same scenario but on a laptop.

I've always considered learning VIM but the amount of time needed to master it has always made me want to step back.

I'd like to hear from people who have learnt it and if it ends up being one of those things you cannot live without.

At work, I use VS2008, C# and R#, which together make editing code a lot faster and easier than ever, but even so I think I could enjoy not having to use the mouse at all.

And not even the arrow keys.

解决方案

I've been using vi and vim also for some 20 years, and I'm still learning new things.

David Rayner's Best of Vim Tips site is an excellent list, though it's probably more useful once you have some familiarity with vim.

I also want to mention the ViEmu site which has some great info on vi/vim tips and especially the article Why, oh WHY, do those nutheads use vi? (archived version)

这篇关于学习Vim有什么好处?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆