Showing posts with label vim. Show all posts
Showing posts with label vim. Show all posts

Thursday, January 16, 2014

YouCompleteMe (YCM) for vim

https://github.com/Valloric/YouCompleteMe#ubuntu-linux-x64-super-quick-installation


1. Install Vundel
2. add Bundle 'Valloric/YouCompleteMe' to .vimrc and let use Vundel to install it
3. goto YouCompleteMe folder and ./install.sh














[Note] test on ubuntu 13.10

Monday, February 04, 2013

vim color on cygwin

http://raibledesigns.com/rd/entry/adding_color_to_vim_and
http://awwsheezy.com/tag/cygwin-vim-colors/



Sunday, September 23, 2012

vim 縮排


2. 直接輸入 0ggVG=(第一個字是數字零,注意大小寫,畫面上不會出現你輸入的內容),輸入後按 Enter,排版完成。

依照 bluecat 的說明,這一串代表的意義如下:0:回到行首(移到該行第0個字元)gg:回到檔案開頭(←因為有這個,我覺得第一個0應該可以省略?)V:視覺選取-列模式G:到檔案結尾=:重新排版

預設的內縮是 8 字元,有點太多,所以在 command mode(按 Esc 讓游標跳到畫面下方),輸入下列指令:      set shiftwidth=2
Related Posts Plugin for WordPress, Blogger...