官术网_书友最值得收藏!

Setting up on Linux

Linux machines come with Vim installed, which is great news! However, it might be rather out of date, and Vim 8 introduces some much-needed optimizations. Pull up your Command Prompt, and run the following code:

$ git clone https://github.com/vim/vim.git
$ cd vim/src
$ make
$ sudo make install

If you're running into issues as you're installing Vim, you might be missing some dependencies. If you're using a Debian-based distribution, the following command should add common missing dependencies : $ sudo apt-get install make build-essential libncurses5-
$ sudo apt-get install make build-essential libncurses5-dev 
  libncursesw5-dev --fix-missing

This will make sure you’re on the latest major and minor patch of Vim. If you don’t care for being on the cutting edge, you can also update Vim using a package manager of your choice. Different Linux distributions use different package managers; the following list includes some common ones:

You can see in the preceding table that Vim uses package names for different repositories. Packages like vim-gtk on Debian-based distributions or vim-enhanced on CentOS come with more features enabled (like GUI support for instance).

Do keep in mind that package manager repositories tend to lag behind from anywhere between a few months to a few years.

That’s it, you’re now ready to dive into the world of Vim! You can start the editor by typing the following command:

$ vim

On modern systems, you can also start Vim by invoking vi. However, it's not always the case: on older systems the two are different binaries. Vi is Vim’s predecessor (Vim stands for Vi improved). Today, it’s merely an alias pointing to Vim. There are no reasons to use Vi over Vim, unless, for some reason, you're unable to install the latter.

主站蜘蛛池模板: 永定县| 甘谷县| 襄城县| 内江市| 陇川县| 大冶市| 黎川县| 常熟市| 饶河县| 普洱| 罗平县| 西昌市| 陆丰市| 兰考县| 鸡西市| 蒲城县| 建宁县| 永平县| 育儿| 湄潭县| 吉林省| 沽源县| 剑河县| 斗六市| 五峰| 淮南市| 若尔盖县| 郑州市| 南华县| 陆良县| 剑河县| 米林县| 左贡县| 色达县| 屏山县| 南皮县| 呼和浩特市| 灌阳县| 梅州市| 凤城市| 合肥市|