About
Swaroop C H is 29 years of age. He is a coder and startupper. He has previously worked at Yahoo!, Adobe, his own startup and Infibeam.
Views
Support
Personal tools
COLLECTION
Collection
Vim zh-tw:安裝
From Notes
我們來看怎麼安裝 Vim。
Contents |
Windows
如果你是用 Microsoft Windows,以下的步驟會教你如何在電腦上安裝最新版本的 Vim 7。
- 到 http://www.vim.org/download.php#pc
- 下載 "Self-installing executable" (自我安裝執行檔,gvim72.exe 是寫這篇文章時的最新版本)
- 用滑鼠在檔案上點兩下,之後的步驟就跟安裝其他 Windows 軟體一樣。
Mac OS X
假如是用 Mac OS X,系統已經內建了終端機版的 Vim。打開 Finder → 應用程式 → 工具程式 → 終端機。在終端機裡輸入 vim 後按 enter,你會看到 Vim 的歡迎畫面。
如果想用圖形化介面的 Vim,可以到 the Cocoa-based MacVim project 下載最新版本。在檔案上點兩下(假設是 MacVim-7_2-stable-1_2.tbz),解縮壓後會產生 MacVim-7_2-stable-1_2 資料夾。打開資料夾,把 MacVim 複製到應用程式這個資料夾。想要更深入瞭解 MacVim,例如怎麼從終端機開啟 MacVim,請看 macvim 參考手冊:
- 點一下 Finder → 應用程式 → MacVim。
- 輸入 :help macvim 後按 Enter。
Linux/BSD
系統是 Linux 或 *BSD 的話,那麼至少已經安裝了一個終端機精簡版本的 Vim。打開像是 konsole 或是 gnome-terminal 的終端機軟體,執行 vim,接著就會看到歡迎畫面。
如果出現 vim: command not found 之類的訊息,表示系統沒有安裝 Vim。這樣的話你就得用各發行版本特定的工具來安裝,比如說 Ubuntu/Debian Linux 的 aptitude、Fedora Linux 的 yum 或是 FreeBSD 的 pkg_add 和 port 等等。安裝套件的方法請參考你使用的發行版本的文件或是論壇。
想要圖形化介面的話,安裝 vim-gnome 套件或是 gvim。
總結
不同的安裝方法有不一樣的執行方式,可以在 shell 裡執行 vim 或是從作業系統的選單中打開圖形化介面的 Vim 軟體。
安裝好 Vim,從下一章開始,我們來學怎麼用。
Please add your comments by clicking on the 'Discussion' link in the left sidebar.