Ubuntu下vim的简单配置
来源:互联网 发布:linux防火墙禁止ip 编辑:程序博客网 时间:2024/06/06 01:18
首先安装使用apt安装vim编辑器,
sudo apt install vim
然后安装vim的插件管理工具vundle
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
接着使用vim编辑配置文件,~/.vimrc文件中添加如下内容:
set nocompatiblefiletype off " required!set rtp+=~/.vim/bundle/vundle/call vundle#rc()Bundle 'gmarik/vundle'Bundle 'L9'Bundle 'The-NERD-tree'Bundle 'The-NERD-Commenter'filetype onfiletype indent onfiletype indent onfiletype plugin indent on "required!set number "显示行号set rulerset magicset history=100syntax enablesyntax onset ignorecase "搜索是忽略大小写set smartcaseset wildmenuset incsearchset hlsearchset lbrset mouse=aset selection=inclusiveset clipboard+=unnamedset rulerset nobackup "取消备份文件set noswapfileset nowritebackupset dy=lastlineset showmatchset showcmdset scrolloff=3set autowriteset magicset showtabline=1set autoreadset noebset novisualbellset autoindentset cindentset smartindentset expandtabset tabstop=4set shiftwidth=4set softtabstop=4set shiftround" F3启动/关闭nerdTreemap <F3> :NERDTreeMirror<CR>map <F3> :NERDTreeToggle<CR>
最后启动vim,并在命令模式中输入:BundleInstall进行安装
使用记录:
在vim 输入:NERDTree 命令即可将NERDTree调用出来,或者使用快捷键F3
输入:NERDTree /usr/local 命令即可切换路径。
本文参考自:http://blog.csdn.net/mengzhisuoliu/article/details/50433040
0 0
- Ubuntu下vim的简单配置
- Ubuntu环境下简单配置vim
- Ubuntu下Vim的配置
- ubuntu 下 vim 的配置
- ubuntu下vim的配置
- Ubuntu下Vim的配置
- ubuntu下vim的配置
- Ubuntu下vim的配置
- ubuntu下vim的简单使用记录
- ubuntu 下vim的简单设置
- ubuntu下配置vim
- Ubuntu下Vim配置
- Ubuntu下VIM配置
- 我的Ubuntu下的vim配置
- Ubuntu下vim+ctags的配置
- ubuntu下vim的配置和改造
- Ubuntu下的Vim配置(一)
- Linux Ubuntu下vim的配置
- 计算几何基础知识
- 剑指offer_22
- 利用chrome的Mobile emulation模拟手机网站自动化测试
- 区块链实践(一) 以太坊网络+geth搭建私有网络实战
- C++运算符重载
- Ubuntu下vim的简单配置
- 起步--安装
- 1002:写出这个数
- 【weex】第一次尝试,weex windows下的环境搭建到第一个完整的app
- ubuntu 安装 jdk 1.8
- 凸包算法
- 中介者模式 1
- 网络爬虫学习(二)
- 剑指offer_23