centos7 應用筆記 vim8 1 安裝

2021-10-02 21:55:10 字數 1964 閱讀 6786

# 安裝 libtermcap、ncurses、libevent、readline庫 (編譯 vim & tmux 所依賴的庫)

yum -y install libtermcap-devel ncurses-devel libevent-devel readline-devel

# 安裝 libxt gtk3=devel (編譯 vim 所依賴的庫)

yum -y install libxt-devel.x86_64

yum -y install gtk3-devel.x86_64

為了以後可以使用 python 的擴充套件。需要在編譯的時候指定 python 的配置目錄。

# get config path of python2.7 

whereis python

> python: /usr/bin/python /usr/bin/python2.7 /usr/bin/python3.6 /usr/bin/python3.6m /usr/bin/python2.7-config /usr/bin/python3.6m-config /usr/bin/python3.6m-x86_64-config /usr/bin/python3.6-config /usr/lib/python2.7 /usr/lib/python3.6 /usr/lib64/python2.7 /usr/lib64/python3.6 /etc/python /usr/include/python2.7 /usr/include/python3.6m /usr/share/man/man1/python.1.gz

# get config path of python3.6

python3-config --configdir

> /usr/lib/python3.6/config-3.6m-x86_64-linux-gnu

# download vim8.1

cd /tmp

axel -n 10

tar xjvf vim-8.1.tar.bz2

cd /tmp/vim81/

# config vim8.1

# features=huge (使用最大特性)

# enable python 2.7 interp(啟用 ython 2.7 直譯器)

# enable python 3.6 interp(啟用 ython 3.6 直譯器)

# enable netbeans (啟用 netbeans)

# enable cscope (啟用 cscope)

# enable gui with gtk3 (啟用 clipboard 功能)

# enable multibyte (啟用 中文字元)

./configure --with-features=huge \

--enable-pythoninterp --enable-python3interp \

--enable-netbeans --enable-cscope --enable-gui=gtk3 --enable-multibyte \

--with-python-config-dir=/usr/lib64/python2.7/config \

--with-python3-config-dir=/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu

# compile

make -j 16

# check compling

echo

$?# remove old vim

yum erase vim.common

# install vim8.1

make -j 16 install

# 需要重新登陸終端。vim8.1 才可以生效。

centos7使用筆記

檢視核心版本 uname a 檢視發行版本 cat etc elease 設定靜態ip cd etc sysconfig network scripts 看到類似這樣的乙個檔案 ifcfg eno16777736 vim ifcfg eno16777736 修改如下 bootproto改為stati...

CentOS7使用筆記

在centos7中用的全新服務啟動管理器 systemctl 在centos6做服務的啟停用service systemctl 代替service chkconfig 在centos6中只需要把啟動的服務檔案放到 etc ini.d目錄下就可以了,但是在centos7中怎麼處理了?檢視服務列表狀態 ...

centos7應用筆記 鍵盤重影射

我的鍵盤右shift鍵無法使用了。想使用右alt鍵代替。查詢了一下 xmodmap 命令可以實現該功能。以下是我的配置方法的記錄。建立乙個 xmodmap 配置檔案 etc xmodmap.config xmodmap 配置檔案內容 swap alt r and shift r remove shi...