* 考慮將 .vimrc 上傳到 GitHub。
* 只加入必要的設定和 plugin,附上說明。
* 沒有興趣把 vim 改造成 IDE。
$ cat ~/.vimrc
syntax on
* ''$HOME/.vimrc'' 是設定檔,''$HOME/.vim'' 目錄底下放 plugin。
* ''.vimrc''
* [[https://dougblack.io/words/a-good-vimrc.html|A Good Vimrc]]
* [[https://yanpritzker.com/the-cleanest-vimrc-youll-ever-see-20f6158f1f1f|The cleanest vimrc you’ll ever see]]
* plugin 由 [[https://github.com/VundleVim/Vundle.vim|Vundle]] 維護。
* [[https://blog.gtwang.org/linux/vundle-vim-bundle-plugin-manager/|Vundle:Vim Plugin 自動下載、安裝、更新與管理工具(Vim Bundle)]]
* [[http://stackoverflow.com/questions/41232925/vim-what-the-best-practice-to-sync-up-all-plugins-on-multiple-hosts|vim: what the best practice to sync up all plugins on multiple hosts]]
* [[http://vi.stackexchange.com/questions/613/how-do-i-install-a-plugin-in-vim-vi|How do I install a plugin in vim/vi?]]
===== UTF-8 編碼 =====
[[http://yzlin.blogspot.com/2007/12/notevim-encoding.html|Vim - Encoding]]
" 啟動後是使用 utf-8 編碼
set encoding=utf-8
" 新開的檔案預設是 utf-8 編碼
set fileencoding=utf-8
" 所有可能的檔案編碼
set fileencodings=utf-8,big5,euc-jp,gbk,euc-kr,utf-bom,iso8859-1
" 設定輸出到 terminal 的編碼
set termencoding=utf-8
" 將 unicode 中不確定的字符表示成雙字符,在 unicode 下才有用
set ambiwidth=double
===== ctags & cscope =====
$ sudo apt-get install ctags
* [[http://www.24m.org/wordpress/?p=56|小白兔跳跳跳~~ 用vim看程式的好工具 taglist]]
* [[http://stackoverflow.com/questions/5017500/vim-difficulty-setting-up-ctags-source-in-subdirectories-dont-see-tags-file-i|Vim: Difficulty setting up ctags. Source in subdirectories don't see tags file in project root]]
$ cd qemu-0.13.0/
$ ctags -R
* [[http://easwy.com/blog/archives/vim-cscope-ctags/|vi/Vim + Cscope/Ctags]]
* [[http://adrianhuang.blogspot.com/2007/09/trace-code-gvimctagscscope.html|Trace Code的好幫手: GVim+Ctags+Cscope]]
* [[http://stackoverflow.com/questions/563616/vim-and-ctags-tips-and-tricks|Vim and Ctags tips and tricks [closed]]]
* [[http://www.vim.org/scripts/script.php?script_id=4082|cscope.vim]]
===== 外掛 =====
* [[http://brainacle.com/how-to-write-vim-plugins-with-python.html|How to write vim plugins with python]]
* [[http://linuxtoy.org/archives/vimpress.html|Vimpress:使用 Vim 发布 WordPress 网志]]
* xmlrpc 发布协议你需要在你 blog 的控制面板中开启。该选项在控制面板的 "设置 -> 撰写" 一栏中。
* [[http://www.denisdeng.com/?p=1066|Vimpress插件安装使用小记]]
* [[http://wiki.yepn.net/vimpress|Vimpress 0.9 plus]]
* [[http://codex.wordpress.org/Writing_Code_in_Your_Posts|Writing Code in Your Posts]]
* [[http://codex.wordpress.org/Using_Smilies|Using Smilies]]
====== 外部連結 ======
* [[http://tips.webdesign10.com/vim-tutorials|Vim Tutorials]]
* [[go>vim taglist]]
* [[go>vim source insight]]
* [[http://c9s.blogspot.com/2007/08/vim-xml-plugin.html|Vim - XML Plugin]]
* [[http://www.vim.org/scripts/script.php?script_id=39|extended % matching for HTML, LaTeX, and many other languages
]]
* [[http://blog.csdn.net/ustc_dylan/article/details/3044252|手把手教你把Vim改装成一个IDE编程环境(图文)]]
* [[http://www.openfoundry.org/en/tech-column/2244|十個必用的 Vim Plugin]]
* [[http://www.devdaily.com/linux/vi-vim-delete-line-commands-to-end|vi/vim delete commands and examples]]