Emacs's first words: the comparison between Emacs and Vim

Source: Internet
Author: User


<title>Emacs's first words: the comparison between Emacs and Vim</title>Emacs's first words: the comparison between Emacs and Vim


Half a year ago, when I first started using Linux, I heard that Linux didn't use the IDE. It's all about using Vim/emacs. Scratched started Baidu, then did not know Google, looking for various tutorials, various statements. Finally, a conclusion that vim is better than Emacs is useful. Baidu paste the number of vim more than Emacs? Vim or Linux comes with it.



Learned the basic vim operation, found that fast is fast point, running C + + file is still very troublesome, every time also to get in another terminal to get away. It's too much trouble to get down. No, there's Emacs. You can continue to use vim anyway. So it's a lot more natural than vim to go to the introductory tutorial on Emacs. Check the history, this goods is very good .... Scratched and started looking for various configuration files. Aware of GitHub, a long time later on the CSDN to see a Daniel's configuration quite suitable for the novice. After use, although there is discomfort, but still insisted on using. Emacs-one-year Oh, but he used the Vim+emac version, I deleted some evil configuration, or more accustomed to the operation of Emacs. Playing code is also very comfortable.



In order to use Emacs, I learned a little scheme, but no use, haha. The Constitution and interpretation of the computer program of God's book.



The personal feeling of Emacs is to write code to compare violence, and vim is .... What do you say, I'm just a vim starter.



Anyway like Emacs, Firefox browser has Firemas,shell style default is emacs mode.



And my VIM configuration:


:inoremap <C-F> <Right>
:inoremap <C-B> <Left>
:inoremap <C-A> <Home>
:inoremap <C-E> <End>
:nnoremap <C-F> <Right>
:nnoremap <C-B> <Left>
:nnoremap <C-A> <Home>
:nnoremap <C-E> <End>
:nnoremap <C-K> d$
:nnoremap <C-J> i<Enter>
:nnoremap :WQ :wqall
:nnoremap :wq :wqall
:nnoremap ; :
:inoremap <C-n> <down>
:inoremap <C-p> <up>
:inoremap <C-k> <Esc>d$a
:inoremap <C-d> <Delete>
:inoremap <C-h> <Backspace>
:nnoremap <C-n> <down>
:nnoremap <C-p> <up>
:nnoremap <C-k> <Esc>d$a
:nnoremap <C-d> <Delete>
:nnoremap <C-h> <Backspace>


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.