vim74的插件snipmate怎么安装
发布网友
发布时间:2023-05-25 00:29
我来回答
共1个回答
热心网友
时间:2024-11-22 14:21
install details
unzip snipMate.zip -d ~/.vim (or equivalent, e.g. $HOME\vimfiles on Windows)
Keep in mind this will overwrite any files included with older versions of snipMate, including the default *.snippets files for the included filetypes. If you don't want your snippets overwritten, just name them name them differently than the default snippets, e.g. c-mysnips.snippets.
NOTE: remember to add ":filetype plugin on" to your .vimrc, otherwise snippets will not work! This is one of the most common issue new users face when trying snipMate.
Remember to run ":helptags ~/.vim/doc" to enable the help.
总结一下snipMate的安装办法:
1.到http://www.vim.org/scripts/script.php?script_id=2540下载snipMate.zip
2.将snipMate.zip复制到~/.vim,用“unzip snipMate.zip”解压。如果没有~/.vim目录,自己创建。
3.修改~/.vimrc,增加这么一行:
filetype plugin on
4.启动Vim打开一个C文件,输入"int main<tab>"看看会发生什么。
参考:
http://www.vim.org/scripts/script.php?script_id=2540
http://blog.csdn.net/yuanlulu/article/details/6026798