【ubuntu】vim安装python自动补全插件(1)
2013-05-16 00:37
831 查看
转载自:http://tntcastle.net/2012/09/ubuntu%E4%B8%8B%E5%B0%86vim%E9%85%8D%E7%BD%AE%E4%B8%BApython-ide/
工欲善其事,必先利其器。
配置好了Django的环境,该把vim好好配置一下当做python的IDE来用。
在Windows下用惯了各种现成的工具,转到Linux下,一下没了头绪……好歹google出一些别人的心得,折腾来折腾去,也算是把开发环境配好了。
1. 安装完整的vim
# apt-get install vim-gnome
2. 安装ctags,ctags用于支持taglist,必需!
# apt-get install ctags
3. 安装taglist
#apt-get install vim-scripts
#apt-get install vim-addon-manager // 貌似我在安装vim-scripts的时候,已经附带安装了vim-addon-manager
# vim-addons install taglist
4. 安装pydiction(实现代码补全)
#wget http://www.pythonclub.org/_media/python-basic/pydiction-1.2.zip
#unzip pydiction-1.2.zip
// ~/.vim/after/ftplugin和~/.vim/tools/pydiction/目录默认不存在,需要自行创建
#cp pydiction-1.2/python_pydiction.vim ~/.vim/after/ftplugin
#cp pydiction-1.2/complete-dict ~/.vim/tools/pydiction/complete-dict
5. 编辑配置文件
# vim ~/.vimrc
至此,python IDE的环境就算是搭好了,来张完成图:
右边即为taglist窗口,按F8打开,使用Ctrl+w,再按w可以在code窗口和taglist窗口间切换。
附加:highlight
安装NERD_TREE 目录树(文件浏览,强烈推荐)
1.下载插件文件
http://www.vim.org/scripts/script.php?script_id=1658
解压文件到~/.vim/目录下,如果没有此目录,则要自己创建。
2.添加配置文件
在~/.vimrc 或 /etc/vim/vimrc文件里添加如下配置
则在VIM里按下F7就可打开关闭目录树。具体操作命令请查看插件doc目录下的帮助文件。
Auto Complete
http://www.vim.org/scripts/script.php?script_id=1879
过程同上。
最后,来张既有NERDTree,又有taglist的图。
工欲善其事,必先利其器。
配置好了Django的环境,该把vim好好配置一下当做python的IDE来用。
在Windows下用惯了各种现成的工具,转到Linux下,一下没了头绪……好歹google出一些别人的心得,折腾来折腾去,也算是把开发环境配好了。
1. 安装完整的vim
# apt-get install vim-gnome
2. 安装ctags,ctags用于支持taglist,必需!
# apt-get install ctags
3. 安装taglist
#apt-get install vim-scripts
#apt-get install vim-addon-manager // 貌似我在安装vim-scripts的时候,已经附带安装了vim-addon-manager
# vim-addons install taglist
4. 安装pydiction(实现代码补全)
#wget http://www.pythonclub.org/_media/python-basic/pydiction-1.2.zip
#unzip pydiction-1.2.zip
// ~/.vim/after/ftplugin和~/.vim/tools/pydiction/目录默认不存在,需要自行创建
#cp pydiction-1.2/python_pydiction.vim ~/.vim/after/ftplugin
#cp pydiction-1.2/complete-dict ~/.vim/tools/pydiction/complete-dict
5. 编辑配置文件
# vim ~/.vimrc
右边即为taglist窗口,按F8打开,使用Ctrl+w,再按w可以在code窗口和taglist窗口间切换。
附加:highlight
http://www.vim.org/scripts/script.php?script_id=1599Line mode Highlight current line Advance color for next line highlight Clear last line highlight Pattern mode Highlight word under cursor (whole word match) Highlight all lines having word under cursor (whole word match) Highlight word under cursor (partial word match) Highlight all lines having word under cursor (partial word match) Highlight last search pattern Highlight all lines having last search pattern Clear last pattern highlight Clear all highlights All above commands work in both normal & insert modes. also works in visual mode. (Select desired lines & hit ) python_fold自动折叠 http://vim.sourceforge.net/scripts/script.php?script_id=515 zo 展开 zc 收起 zn 全部展开 zN 全部折叠
安装NERD_TREE 目录树(文件浏览,强烈推荐)
1.下载插件文件
http://www.vim.org/scripts/script.php?script_id=1658
解压文件到~/.vim/目录下,如果没有此目录,则要自己创建。
2.添加配置文件
在~/.vimrc 或 /etc/vim/vimrc文件里添加如下配置
Auto Complete
http://www.vim.org/scripts/script.php?script_id=1879
过程同上。
最后,来张既有NERDTree,又有taglist的图。
相关文章推荐
- 【ubuntu】vim安装python自动补全插件(2)
- Ubuntu安装Vim的Python自动补全插件
- vim自动补全插件snipMate在ubuntu下的安装
- ubuntu下 安装vim的ruby 自动补全插件 ---Rsense
- ubuntu 14.04 安装vim YouCompleteMe自动补全插件 Linux C/C++高手必备
- mac os上的vim自动补全插件YouCompleteMe的安装过程
- Vim自动补全插件----YouCompleteMe安装与配置
- Vim自动补全插件----YouCompleteMe安装与配置
- vim 安装自动补全python代码功能
- vim安装自动补全插件
- Vim自动补全插件----YouCompleteMe安装与配置
- Ubuntu 16.04 vim YouCompleteMe自动补全的安装配置与使用
- Mac 安装Vim自动补全插件(YouCompleteMe)
- Debian squeeze安装vim自动补全插件snipMate.绝对可用
- CentOS7 Vim自动补全插件----YouCompleteMe安装与配置
- pydiction(vim的python语法补全插件)安装方法
- Vim 自动补全插件 YouCompleteMe 安装与配置
- Python之IDE开发工具-1 Python VIM 自动补全插件
- Vim自动补全插件----YouCompleteMe安装与配置
- 【vim环境配置】解决ubuntu上 由YouCompleteMe插件配置不当引起的 自动补全失效的问题