博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Emacs & VIM
阅读量:6246 次
发布时间:2019-06-22

本文共 2837 字,大约阅读时间需要 9 分钟。

The famous crusade between VIM and Emacs is well-known, and when I firstly want to settle down on one side of the battle, I really don't know which side I should choose. Since there seem to have no body all over the websites who can provide a impartial advise regardless of his predilection, so after a while I decided to make my own decision by comparisons.

  Firstly I tried VIM, and unlike the usual editors such as windows system text editor, or UltraEdit or MSwords, it has different modes to switch, and only by typing "i" or "a" under command mode can it switch to insert mode. I really felt dejected when I typed keyboard many times with nothing displayed on the screen except the annoying sound "d~~, d~~" . But after I got used to its basic commands, I understood why so many advanced programmers like it: this is a editor which you can use it efficiently without moving you hands away from keyboard, therefore you can totally throw your mouse away. Besides, the commands it uses is really efficient, e.g., the moving cursor commands "hjkl", the delete commands "dd", the finding position commands, "0,$,*,%", etc. In a word, you can do all your jobs with only limited keys you must press. 

  Then I tried Emacs, first difference with VIM you notice is that you can input texts with no need to switch between different modes. But if you want to do the same job in VIM, you must press more buttons, the number of keyboard buttons you need to press is basicly two times more than VIM, eg, the moving cursor commands in VIM is "hjkl", while in Emacs, they are "<c-b>,<c-f>,<c-p>,<c-n>". No wonder some people jokes that Emacs = Esc + Mata + Alt + Ctrl + Shift. Unlike VIM which totally focus on plain text editing, Emacs is more like an OS system, it can run shell command within it, it can manage the files in you PC, it also has some games planted in, such as the famous "Tetris", you can use it to browse the internet, listen to music, and even make coffee. Some people wrote a blog describing his life as "Living in Emacs".

  One thing the two editors have in common is the good extensibility, by adding necessary plugins, you can turn the two editors into powerful IDEs. You can write and run different kinds of computer language in the two editors, such as C, java, python, ruby, perl, fortran, latex, tex, etc, almost every kinds of language. 

  So how do I choose? I haven't decided yet, but as a an amateur in computer programming, I think Emacs is more suitable for me. VIM is more suitable for professional programmer, and Emacs can be used as a dailly tools for different kinds of job. But if I want to write a text file more quick, I might use VIM instead. Hopefully one day, I can make some contribution to the development of these two editors, and development of GNU project

转载于:https://www.cnblogs.com/dbydbcl/p/3416834.html

你可能感兴趣的文章
在C#下的SQL模糊查询语句 (Visual Studio)
查看>>
第三章 广域通信网
查看>>
xhtml+css基础知识2
查看>>
我的友情链接
查看>>
Java环境变量配置
查看>>
Magent搭建Memcached集群
查看>>
SQL Server远程备份报错:Operating system error 1326
查看>>
域名转移和域名DNS修改
查看>>
域名查找及错误检查
查看>>
JavaScript 字符串处理详解
查看>>
Linux 查看系统硬件信息(实例详解)
查看>>
Linux系统开发8 线程
查看>>
我的友情链接
查看>>
linux安装过程对硬盘进行分区
查看>>
linux安装eclipse集成开发环境
查看>>
像少年啦飞驰
查看>>
Advanced+Apple+Debugging(1)
查看>>
EIGRP实验 3 :EIGRP 拓扑、路由以及汇聚
查看>>
我的友情链接
查看>>
计算网速
查看>>