kali下安在vim


1. 下載vim

git clone https://github.com/vim/vim.git
git pull
git fetch

2. 配置(How to enable +python feature in vim  [--enable-pythoninterp])

./configure --enable-multibyte  --enable-rubyinterp=dynamic --with-python3-config-dir=/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/  --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu/ --enable-pythoninterp  --enable-cscope --enable-gui=auto --with-features=huge --with-x --enable-fontset --with-compiledby=yugengde --enable-fail-if-missing

3. 編譯安裝

make
make install

注意的問題

(1)如果安裝失敗, 就將之前安裝的軟件進行卸載

make clean
make distclean
make uninstall

(2)替換之前的符號鏈接

rm /usr/bin/vim
ln -s /usr/local/bin/vim /usr/bin/vim

 (3)打開vim,終端出現

The ycmd server SHUT DOWN (restart with ':YcmRestartServer'). YCM core li...ompile YCM before using it. Follow the instructions in the documentation.

apt-get install cmake
cd ~/.vim/bundle/YouCompleteMe/
./install.sh

 (4)使用tab補全時出現   E121: Undefined variable: g:pydiction_location

cd ~/.vim/bundle/
git clone https://github.com/rkulla/pydiction.git 

編輯.vimrc文件

filetype plugin on 

let g:pydiction_location = '~/.vim/bundle/Pydiction/complete-dict'

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM