這裏顯示兩個版本的差異處。
| Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
|
editor:vim [2010/01/31 16:15] wenpei |
editor:vim [2016/01/02 00:07] (目前版本) sars |
||
|---|---|---|---|
| 行 82: | 行 82: | ||
| | :r <name> |插入指定檔案的內容| | | :r <name> |插入指定檔案的內容| | ||
| | :n |下個檔案| | | :n |下個檔案| | ||
| + | |||
| + | ====== Insert Mode ====== | ||
| + | ===== 自動補齊 ===== | ||
| + | http://www.openfoundry.org/index.php?option=com_content&task=view&id=2215&Itemid=334 | ||
| + | |||
| + | | C-x C-l |行補齊| | ||
| + | | C-x C-n |以目前檔案做關鍵字補齊| | ||
| ====== tabs ====== | ====== tabs ====== | ||
| 行 122: | 行 129: | ||
| 另一種,會出現分割視窗。 | 另一種,會出現分割視窗。 | ||
| :TOhtml | :TOhtml | ||
| + | |||
| + | ===== 清除 html tag ===== | ||
| + | %s/<\_[^>]*>//g | ||
| ====== 在文件前加上行號 ====== | ====== 在文件前加上行號 ====== | ||
| 行 131: | 行 141: | ||
| ====== Plugins ====== | ====== Plugins ====== | ||
| + | ===== Vundle ===== | ||
| + | https://github.com/VundleVim/Vundle.vim | ||
| + | |||
| + | 管理外掛的工具 | ||
| + | |||
| + | ===== vimagit ===== | ||
| + | https://github.com/jreybert/vimagit | ||
| + | |||
| + | 和 git 結合方便操作 git | ||
| + | |||
| ===== snipMate ===== | ===== snipMate ===== | ||
| http://www.vim.org/scripts/script.php?script_id=2540 | http://www.vim.org/scripts/script.php?script_id=2540 | ||
| 行 155: | 行 175: | ||
| http://ctags.sourceforge.net/ | http://ctags.sourceforge.net/ | ||
| + | |||
| + | ===== nerd tree ===== | ||
| + | http://www.catonmat.net/blog/vim-plugins-nerdtree-vim/ | ||
| + | |||
| + | Allows you to explore the file system and open files and directories directly from vim. | ||
| ====== Reference ====== | ====== Reference ====== | ||
| Vim Cookbook:http://www.oualline.com/vim-cook.html | Vim Cookbook:http://www.oualline.com/vim-cook.html | ||
| - | ===== COSCUP 2009 by c9s ===== | + | COSCUP 2009 by c9s:http://www.slideshare.net/c9s/vim-hacks |
| - | http://www.slideshare.net/c9s/vim-hacks | + | |
| + | Vim Hacks (OSSF) by c9s:http://www.slideshare.net/c9s/vim-hacks-ossf | ||
| ===== vimrc ===== | ===== vimrc ===== | ||