Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> 關於 Linux

CentOS 6.2 打造 Vim 開發環境:插件安裝全紀錄(上)

編輯:關於 Linux

Vim 是 Linux 下最強大的文字編輯器,但預設功能較簡陋。本文記錄在 CentOS 6.2 上從 Ubuntu 下載插件包、透過 SFTP 傳輸、建立目錄結構、逐步編譯安裝 ctags、cscope、Taglist、NERDTree、WinManager 等十餘款經典插件的完整過程(含多頁內容)。

前置準備

  • 在有外網的 Ubuntu (192.168.16.230) 下載所有 .vim 插件壓縮包
  • 透過 SFTP 上傳至 CentOS /usr/local/src
  • 建立 Vim 目錄結構:
    mkdir -p ~/.vim/{plugin,doc,tags,syntax}

第一款插件:Exuberant Ctags

tar zxvf ctags-5.8.tar.gz
cd ctags-5.8
./configure && make && make install
# 執行檔安裝至 /usr/local/bin/ctags

ctags 產生的 tags 檔案可供 Vim 快速跳轉函式定義,是程式開發必備工具。

後續頁面將繼續介紹 cscope、Taglist、NERD_tree、bufexplorer、minibufexpl、omnicppcomplete 等插件安裝與 .vimrc 設定細節。

Copyright © Windows教程網 All Rights Reserved