Debian8安装Vim8

Posted 谕猛子

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Debian8安装Vim8相关的知识,希望对你有一定的参考价值。

1 安装vim需要的库
apt-get build-dep vim-gtk
apt-get install libncurses5-dev mercurial
 
2 下载Vim8
apt-get install git
git clone https://github.com/vim/vim.git
 
3 编译安装
cd vim &&
echo ‘#define SYS_VIMRC_FILE "/etc/vimrc"‘ >> src/feature.h &&
echo ‘#define SYS_GVIMRC_FILE "/etc/gvimrc"‘ >> src/feature.h &&
./configure --prefix=/usr/local/vim8 --with-features=huge \
            --enable-multibyte --enable-fontset --enable-xim \
            --enable-pythoninterp --enable-perlinterp \
            --enable-rubyinterp --enable-luainterp \
            --enable-cscope --enable-sniff \
            --enable-gui=gtk2 \
            --with-compiledby="busor" &&
make &&
make install
ln -s /usr/local/vim8/bin/vim /usr/local/bin/vim &&
ln -s /usr/local/vim8/bin/vimtutor /usr/local/bin/vimtutor &&
ln -s /usr/local/vim8/bin/gvimtutor /usr/local/bin/gvimtutor &&
ln -s /usr/local/vim8/bin/xxd /usr/local/bin/xxd &&
ln -s vim /usr/local/bin/vi &&
ln -s vim /usr/local/bin/view &&
ln -s vim /usr/local/bin/vimdiff &&
ln -s vim /usr/local/bin/gvimdiff &&
ln -s vim /usr/local/bin/gview &&
ln -s vim /usr/local/bin/gvim
 
4 验证
[email protected]:~$ vim --version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Sep 16 2016 13:56:45)
Included patches: 1-5
Compiled by busor
Huge version with GTK2 GUI.  Features included (+) or not (-):
+acl             +file_in_path    +mouse_sgr       +tag_old_static
+arabic          +find_in_path    -mouse_sysmouse  -tag_any_white
+autocmd         +float           +mouse_urxvt     -tcl
+balloon_eval    +folding         +mouse_xterm     +termguicolors
+browse          -footer          +multi_byte      +terminfo
++builtin_terms  +fork()          +multi_lang      +termresponse
+byte_offset     +gettext         -mzscheme        +textobjects
+channel         -hangul_input    +netbeans_intg   +timers
+cindent         +iconv           +num64           +title
+clientserver    +insert_expand   +packages        +toolbar
+clipboard       +job             +path_extra      +user_commands
+cmdline_compl   +jumplist        +perl            +vertsplit
+cmdline_hist    +keymap          +persistent_undo +virtualedit
+cmdline_info    +lambda          +postscript      +visual
+comments        +langmap         +printer         +visualextra
+conceal         +libcall         +profile         +viminfo
+cryptv          +linebreak       +python          +vreplace
+cscope          +lispindent      -python3         +wildignore
+cursorbind      +listcmds        +quickfix        +wildmenu
+cursorshape     +localmap        +reltime         +windows
+dialog_con_gui  +lua             +rightleft       +writebackup
+diff            +menu            +ruby            +X11
+digraphs        +mksession       +scrollbind      -xfontset
+dnd             +modify_fname    +signs           +xim
-ebcdic          +mouse           +smartindent     +xpm
+emacs_tags      +mouseshape      +startuptime     +xsmp_interact
+eval            +mouse_dec       +statusline      +xterm_clipboard
+ex_extra        +mouse_gpm       -sun_workshop    -xterm_save
+extra_search    -mouse_jsbterm   +syntax          
+farsi           +mouse_netterm   +tag_binary      
   system vimrc file: "/etc/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "/etc/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/local/vim8/share/vim"

以上是关于Debian8安装Vim8的主要内容,如果未能解决你的问题,请参考以下文章

Debian8.5安装

Debian8 安装wordpress博客

debian8最小化安装,字符界面的中文配置

Debian8安装Vim8

Debian8.3安装flash插件,备用~~~

debian8安装谷歌浏览器