顯示具有 Vim 標籤的文章。 顯示所有文章
顯示具有 Vim 標籤的文章。 顯示所有文章

2016/01/30

[Git] error: There was a problem with the editor 'vi' [解決 SOLVED]

今天突然遇到 commit 訊息時出現

error: There was a problem with the editor 'vi'
之前倒沒有這個問題,不知道跟我最近在變更 VIM 設定有無關聯

git commit 是會預設取 vi 為編輯器



當然如果用 git commit -m 的方式就不會有這個問題

既然出現問題,還是手動指定一下好了

解決方法: 設定 git 預設編輯器即可



[Vim] 網頁開發必備外掛 emmet-vim

透過 vundle 外掛管理程式來裝 emmet-vim

安裝 vundle, 請參考 Vundle 安裝


開啟 ~/.vimrc 檔案

注意:請務必加在 vundle#begin/end 之間

Plugin 'mattn/emmet-vim'

存檔


在 Vim 下指令 :PluginInstall 即完成安裝

[Vim] Vim 外掛套件管理 Vundle.vim 安裝方法

用 GUI 的編輯器用習慣,因為常有一些套件可以增加工作效率

而 Vim 這個古老的編輯器也是經常使用,怎麼都沒想過要來加外掛呢?

最近看到 Vim 的加強功能,決定來把 Mac 上的 Vim 改裝一下,首先要裝套件管理程式 Vundle 先裝好~


Vundle 安裝 (路徑請裝至 ~/.vim/bundle/ 下)

git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim