Ubuntu下配置C++编辑器VIM
来源:互联网 发布:有道网络已断开 编辑:程序博客网 时间:2024/06/05 16:57
1、复制配置文件到本用户环境下,再新建一个.vim文件夹,并创建bundle子文件夹
sudo cp /etc/vim/vimrc /home/wangy/.vimrc
sudo mkdir /home/wangy/.vim
sudo mkdir /home/wangy/.vim/bundle
sudo mkdir /home/wangy/.vim/bundle/vundle
bundle的配置文件如下:
"新增的配置放在这里set nocompatible " be iMprovedfiletype off " required!set rtp+=~/.vim/bundle/vundle/call vundle#rc()" let Vundle manage Vundle" required!Bundle 'gmarik/vundle'" My Bundles here:"" original repos on githubBundle 'tpope/vim-fugitive'Bundle 'Lokaltog/vim-easymotion'Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}Bundle 'tpope/vim-rails.git'" vim-scripts reposBundle 'L9'Bundle 'FuzzyFinder'" non github repos" Bundle 'git://git.wincent.com/command-t.git'" Bundle 'https://github.com/scrooloose/nerdtree.git'" ...filetype plugin indent on " required!"" Brief help -- 此处后面都是vundle的使用命令" :BundleList - list configured bundles" :BundleInstall(!) - install(update) bundles" :BundleSearch(!) foo - search(or refresh cache first) for foo" :BundleClean(!) - confirm(or auto-approve) removal of unused bundles"" see :h vundle for more details or wiki for FAQ" NOTE: comments after Bundle command are not allowed..
2、安装NERDTree
Bundle 'https://github.com/scrooloose/nerdtree.git'
用法如下:
nmap <F5> :NERDTree<CR> 快捷键
:NERDTree 开启
ctrl+w 可以在左右窗口切换
p 到上层目录,P到根目录
o 打开文件或目录,q 退出插件
3、安装tagbar
首先安装ctags,sudo apt-get install ctags
Bundle 'https://github.com/majutsushi/tagbar.git'
配置文件如下:
" tagbar设置----------------" 快捷键nmap <F4> :TagbarToggle<CR>let g:tagbar_width = 20 " tagbar's width, default 20" let g:tagbar_left = 1 " on the left sidelet g:tagbar_right = 1 " on the right sidelet NERDTreeIgnore=['\.pyc', '\.pyo', '\.swp', '\~'] " ignore *.py[co], *.sw p and *~使用方式F4快捷键,退出为q
4、其他插件
Bundle 'https://github.com/scrooloose/nerdtree.git'
Bundle 'https://github.com/majutsushi/tagbar.git'
Bundle 'https://github.com/terryma/vim-multiple-cursors.git'
Bundle 'https://github.com/upsuper/vim-colorschemes.git'
Bundle 'https://github.com/vim-scripts/cppcomplete.git'
0 0
- Ubuntu下配置C++编辑器VIM
- ubuntu下vim编辑器vim+taglist+ctags的配置
- ubuntu配置vim编辑器
- ubuntu 下vim编辑器的安装和配置
- ubuntu下配置vim
- Ubuntu下Vim配置
- Ubuntu下VIM配置
- Ubuntu Vim编辑器安装和配置
- Linux下vim配置,使vim编辑器作为Latex编辑器
- ubuntu下vim文本编辑器的使用
- ubuntu下vim编辑器的安装
- ubuntu 下安装 vim 编辑器的问题解决
- ubuntu系统下使用vim 文本编辑器
- Ubuntu下vim编辑器中文乱码解决
- ubuntu下如何正确使用vim编辑器
- 在Ubuntu下配置VIM
- 在Ubuntu下配置VIM
- ubuntu下vim配置使用
- HTML文件结构
- Spark 学习笔记
- 某些mysql like查询也是可以使用到索引的
- 沿海信标台站的坐标系统的问题
- 基于Mesos和Docker的分布式计算平台
- Ubuntu下配置C++编辑器VIM
- Linux安装mysql5.5(ubuntu14.04)
- Opencv学习笔记(六)SURF学习笔记
- 【SDCC讲师专访】首席架构师徐海峰眼中的架构和出色的架构师
- android canvas.drawText()的研究
- 国内外Android大牛Blog
- 字符与编码
- 初学python,爬虫开刀
- struct的用法--------C语言结构体(struct)常见使用方法(转载)