关键词:
目录
获取最新版 vim 源码
1 git仓库clone
git clone https://github.com/vim/vim.git
2, 源码包下载,里面有各个版本的vim压缩包
https://ftp.nluug.nl/pub/vim/unix/
Unix
The best way to install Vim on Unix is to use the sources. This requires a compiler and its support files. Compiling Vim isn‘t difficult at all. You can simply type "make install" when you are happy with the default features. Edit the Makefile
in the "src" directory to select specific features.
vim 配置选项
Optional Features:
--disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-fail-if-missing Fail if dependencies on additional features
specified on the command line are missing.
--disable-darwin Disable Darwin (Mac OS X) support.
--disable-smack Do not check for Smack support.
--disable-selinux Do not check for SELinux support.
--disable-xsmp Disable XSMP session management
--disable-xsmp-interact Disable XSMP interaction
--enable-luainterp=OPTS Include Lua interpreter. default=no OPTS=no/yes/dynamic
--enable-mzschemeinterp Include MzScheme interpreter.
--enable-perlinterp=OPTS Include Perl interpreter. default=no OPTS=no/yes/dynamic
--enable-pythoninterp=OPTS Include Python interpreter. default=no OPTS=no/yes/dynamic
--enable-python3interp=OPTS Include Python3 interpreter. default=no OPTS=no/yes/dynamic
--enable-tclinterp=OPTS Include Tcl interpreter. default=no OPTS=no/yes/dynamic
--enable-rubyinterp=OPTS Include Ruby interpreter. default=no OPTS=no/yes/dynamic
--enable-cscope Include cscope interface.
--enable-workshop Include Sun Visual Workshop support.
--disable-netbeans Disable NetBeans integration support.
--disable-channel Disable process communication support.
--enable-terminal Enable terminal emulation support.
--enable-autoservername Automatically define servername at vim startup.
--enable-multibyte Include multibyte editing support.
--enable-hangulinput Include Hangul input support.
--enable-xim Include XIM input support.
--enable-fontset Include X fontset output support.
--enable-gui=OPTS X11 GUI. default=auto OPTS=auto/no/gtk2/gnome2/gtk3/motif/athena/neXtaw/photon/carbon
--enable-gtk2-check If auto-select GUI, check for GTK+ 2 default=yes
--enable-gnome-check If GTK GUI, check for GNOME default=no
--enable-gtk3-check If auto-select GUI, check for GTK+ 3 default=yes
--enable-motif-check If auto-select GUI, check for Motif default=yes
--enable-athena-check If auto-select GUI, check for Athena default=yes
--enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
--enable-carbon-check If auto-select GUI, check for Carbon default=yes
--disable-gtktest Do not try to compile and run a test GTK program
--disable-icon-cache-update update disabled
--disable-desktop-database-update update disabled
--disable-largefile omit support for large files
--disable-acl No check for ACL support.
--disable-gpm Don‘t use gpm (Linux mouse daemon).
--disable-sysmouse Don‘t use sysmouse (mouse in *BSD console).
--disable-nls Don‘t support NLS (gettext()).
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-mac-arch=ARCH current, intel, ppc or both
--with-developer-dir=PATH use PATH as location for Xcode developer tools
--with-local-dir=PATH search PATH instead of /usr/local for local libraries.
--without-local-dir do not search /usr/local for local libraries.
--with-vim-name=NAME what to call the Vim executable
--with-ex-name=NAME what to call the Ex executable
--with-view-name=NAME what to call the View executable
--with-global-runtime=DIR global runtime directory in ‘runtimepath‘
--with-modified-by=NAME name of who modified a release version
--with-features=TYPE tiny, small, normal, big or huge (default: huge)
--with-compiledby=NAME name to show in :version message
--with-lua-prefix=PFX Prefix where Lua is installed.
--with-luajit Link with LuaJIT instead of Lua.
--with-plthome=PLTHOME Use PLTHOME.
--with-python-command=NAME name of the Python 2 command (default: python2 or python)
--with-python-config-dir=PATH Python‘s config directory (deprecated)
--with-python3-command=NAME name of the Python 3 command (default: python3 or python)
--with-python3-config-dir=PATH Python‘s config directory (deprecated)
--with-tclsh=PATH which tclsh to use (default: tclsh8.0)
--with-ruby-command=RUBY name of the Ruby command (default: ruby)
--with-x use the X Window System
--with-gnome-includes=DIR Specify location of GNOME headers
--with-gnome-libs=DIR Specify location of GNOME libs
--with-gnome Specify prefix for GNOME files
--with-motif-lib=STRING Library for Motif
--with-tlib=library terminal library to be used
配置示例
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-dev lua5.1 lua5.1-dev liblua5.1-dev libperl-dev git
./configure --with-features=huge --enable-luainterp=yes --enable-rubyinterp=yes --enable-perlinterp=yes --enable-pythoninterp=yes --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu --enable-python3interp=yes --with-python3-config-dir=/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu --enable-fontset=yes --enable-cscope=yes --enable-multibyte --enable-fail-if-missing --enable-gui=gtk2 --prefix=/usr/local --with-compiledby=‘Professional operations‘
参考文章
Joit简书
https://www.jianshu.com/p/48749100614d
https://www.cnblogs.com/shinemic/p/8409827.html
tip
The latest news about Vim can be found on the Vim home page: http://www.vim.org/
If you have problems, have a look at the Vim documentation or tips: http://www.vim.org/docs.php http://vim.wikia.com/wiki/Vim_Tips_Wiki
If you still have problems or any other questions, use one of the mailing lists to discuss them with Vim users and developers: http://www.vim.org/maillist.php
If nothing else works, report bugs directly: Bram Moolenaar [email protected]
centos6源码安装vim8(代码片段)
CentOS6源码安装vim8vim8相比vim7多了很多功能。不过需要源码来进行安装。移除旧版本的vimyumremovevim安装依赖库sudoyuminstall-yrubyruby-devellualua-develluajitluajit-develctagsgitpythonpython-develpython3python3-develtcl-develperlperl-develp 查看详情
安装vim8和vim-go插件(代码片段)
安装VIM8下载源码,编译安装,默认会安装到/usr/local/bin下:gitclonehttps://github.com/vim/vim.gitcdvim/srcmakemakeinstall如果make过程中报有关terminal的错误,并提示安装ncurses,则yum安装ncurses-devel后重新make和makeinstall:yuminstallncurses-devel安 查看详情
linux下vim代码编译器的使用(代码片段)
...ptinstallvim安装完毕之后再输入第一行代码,之后进入程序编译界面,输入我们需要的程序,例如:#include<stdio.h>intmain()printf("我是一个大傻子");然后按下键盘Esc,再输入wq:这样刚刚写下的代码就被保存好了,并且我们 查看详情
centos7下vim最新版本安装(代码片段)
...法,缺点是大部分软件并不是其官网上最新的版本。二、源码编译安装今天重点介绍这种方法,不过也挺简单的。1.通过git下载vim最新版gitclonehttps://github.com/vim/vim.git2.解决vim的依赖问题sudoyuminstall-yncurses-devel3.编译安装cdvim/src./con... 查看详情
为vim编译默认作者信息(代码片段)
vim/etc/vim/vimrcmap<F4>ms:callTitleDet()<cr>‘sfunctionAddTitle()callappend(0,"#!/bin/bash")callappend(1,"##############################################")callappend(2,"#Author:hanye")callappend(3,"#Email:hz7726@163.com")callappend(4,"#Lastmodified:".strftime("%Y/%m/%d/%H:%M"))callappen... 查看详情
从零开始配置vim(28)——代码的编译运行与调试(代码片段)
...长一段路要走,其中一个就是要为它配置代码的一键编译与运行功能。这里我们仍然以C和Python为例。一个是需要编译运行的一个是直接就可以运行的,这两个语言应该能代表大多数语言的情况。自动运行C语言 查看详情
centos7下vim最新版本安装(代码片段)
...面有一些软件并不是其官网上最新的sudoyuminstall-yvim二、源码编译安装,今天重点介绍这种方法,不过也挺简单的1.通过git下载vim最新 查看详情
ubuntu编译vim8.0(代码片段)
安装依赖库sudoapt-getinstalllibncurses5-devlibgnome2-devlibgnomeui-dev\\libgtk2.0-devlibatk1.0-devlibbonoboui2-dev\\libcairo2-devlibx11-devlibxpm-devlibxt-devpython-dev\\python3-devruby-devlua5.1lua5.1-dev 查看详情
apache_conf在ubuntu/mint上配置vim编译命令(代码片段)
vim编译器的相关知识(代码片段)
Vim编译器相关知识1.关于Vim编译器在热门Linux操作系统中都会默认安装一款超好用的文本编辑器——名字叫“vim”,vim是vi编辑器的升级版。vim具有程序编辑的能力,可以主动的以字体颜色辨别语法的正确性,方便程... 查看详情
vim-zsh-tmux环境配置(代码片段)
...到以后工作中可能会没有su权限,所以整体安装尽量采用源码编译的方式,但会比较吃配置,有些情况下编译还是比较花时间的,尽量不要在虚拟机中。ZSH原文地址有可能会出现的问题:Youmayneedtoinstallapackagecalled'curses-devel 查看详情
从零开始配置vim(28)——代码的编译运行与调试(代码片段)
...长一段路要走,其中一个就是要为它配置代码的一键编译与运行功能。这里我们仍然以C和Python为例。一个是需要编译运行的一个是直接就可以运行的,这两个语言应该能代表大多数语言的情况。自动运行C语言的配置在之... 查看详情
vim常用配置(代码片段)
编译vim8.2gitclonehttps://github.com/vim/vim.gitcdvim./configure--enable-python3interp--with-x--prefix=/usr/localmake-jsudomakeinstall./src/vim--version输出类似如下,确保+python3和+clipboard使能/src/vim 查看详情
linux环境基础开发工具使用(代码片段)
...基本操作vim正常模式命令集vim末行模式命令集vim配置Linux编译器-gcc/g++使用Linux编译器-gcc使用预处理(进行宏替换)编译(生成汇编)汇编(生成机器可识别代码)链接(生成可执行文件 查看详情
centos6.7源码编译安装vim8.0
参考网址:1、https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source源码编译安装Python-2.7.14、Python-3.3.7https://www.python.org/ftp/python/2.7.14/Python-2.7.14rc1.tgzhttps://www.python.org/ftp/py 查看详情
rpm管理工具(代码片段)
...nux软件包从内容上可以分为binarycode和sourcecode(二进制包和源码包)binarycode无需编译,可以直接使用sourcecode需要经过GCC,C++编译环境编译才能运行通常可以通过后缀区分binarycode和sourcecode.rpm结尾的软件包称之为binarycode.tar.gz.zip.rar结尾... 查看详情
linux篇第三篇——linux环境下的工具(yum+vim+gcc/g+++gdb)(代码片段)
...包管理器yum🌲介绍Linux下软件安装的几种方式:源码安装:源码安装会带来交叉编译的问题,源码在不同的环境下可能会有不同的效果,导致安装十分麻烦。这种安装方式用的比较少。rpm安装:rpm安装相对... 查看详情
源码编译三部曲(以nginx示例)(代码片段)
源码编译三部曲什么是源码编译为什么要选择源码编译rpm包与源码包区别源码编译三部曲预编译./configure编译make安装makeinstall启动nginx怎么卸载源码安装的软件nginx优化直接使用nginx二进制程序控制nginx全局使用nginx命令控制nginx使... 查看详情