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"

时间: 2024-09-30 00:30:39

Debian8安装Vim8的相关文章

Ubuntu16.04安装vim8

Ubuntu16.04安装vim8 在Ubuntu16.04下编译安装vim8,并配置vim-plug插件管理器,以及安装YouCompleteMe等插件. 安装依赖 sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev python-de

CentOS6源码安装vim8

CentOS6源码安装vim8 vim8相比vim7多了很多功能. 不过需要源码来进行安装. 移除旧版本的vim yum remove vim 安装依赖库 sudo yum install -y ruby ruby-devel lua lua-devel luajit luajit-devel ctags git python python-devel python3 python3-devel tcl-devel perl perl-devel perl-ExtUtils-ParseXS pe

安装VIM8和vim-go插件

安装VIM8 下载源码,编译安装,默认会安装到/usr/local/bin下: git clone https://github.com/vim/vim.git cd vim/src make make install 如果make过程中报有关terminal的错误,并提示安装ncurses,则yum安装ncurses-devel后重新make和make install: yum install ncurses-devel 安装vim-go插件 执行如下命令安装plug.vim插件管理器和vim

CentOS7环境下安装VIM8 并支撑python3

CentOS7环境下安装VIM8并支撑python3 在CentOS7环境下打造pythonIDE的时候发现系统自带的vim因为版本低对python的支持不够,导致安装插件的时候总是出错,所以干脆把原系统中的vim删除后源码安装vim8并配置支持python3 删除系统中原有的vim yum -y remove vim* 利用yum命令将系统中的vim删除 源码安装vim 先进入你想放安装包的路径 cd /usr/local/share 我这里就放在了这个路径下,你们视情况而定 下载vim源码包

Ubuntu16.04下编译安装vim8

在Ubuntu16.04下编译安装vim8,并配置vim-plug插件管理器,以及安装YouCompleteMe等插件. 安装依赖 sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev python3-dev ruby

centos7源码安装vim8.0

centos 6和7通过yum安装的vim版本仍为7.4,若想尝鲜,可获取源码包编译安装. 准备工作 1.检查vim旧版本,若已存在,将其卸载. $ vim$ yum remove vim* -y 2.安装终端字符处理库nucrses $ yum install ncurses-devel -y 编译安装 $ cd /usr/local/src/$ wget https://codeload.github.com/vim/vim/tar.gz/v8.0.0134$ tar zxf v8.0.01

Centos7 安装vim8

一.卸载旧版本的vim yum -y remove vim* 二.安装终端字符处理库ncurses yum -y install ncurses-devel 三.下载Vim8 wget https://github.com/vim/vim/archive/v8.0.1772.tar.gz 四.编译安装 //解压文件 tar -zxvf v8.0.1772.tar.gz //切换目录 cd vim-8.0.1772 //指定安装路径 ./configure --prefix=/usr/local/

Debian8 安装wordpress博客

首先要安装 php5-gd 已保证wordpress可以正常安装 下载Wordpress wget http://wordpress.org/latest.tar.gz 解压 tar -xzvf latest.tar.gz 为WordPress创建一个数据库和用户 在连接数据库之后(我用的是MariaDB) 执行以下命令 create database wordpress; #创建数据库 create user [email protected]; #创建用户 set password for

Debian8安装要点记录

在Windows7上安装Debian, 实现双系统 和安装Ubuntu双系统的步骤几乎一样, 稍微复杂一点 (Windows7下安装Ubuntu)http://forum.ubuntu.org.cn/viewtopic.php?t=392854 另外现在很少有光驱了, 这里只说一下从硬盘(或U盘)的步骤 1, 选择需要下载的镜像, http://cdimage.debian.org/cdimage/(镜像的选择和说明看官网上都有说明), 我个人推荐使用网络安装的最小镜像或者包含xfce的镜像.