前言
这是开发中可能使用到的一类软件。
通用IDE
VIM
极客大佬才玩的东西,我一般都不怎么用,╮(╯▽╰)╭
VIM安装
安装vim,可以直接执行以下命令行:
apt-get install vim
注意:vim安装完后有提供对应的文档教程,具体使用方法是:
vimtutor
后就可以打开文档教程进行学习对应的vim指令。
VIM配置
当提到VIM配置的时候,就不得不说我们vim强大的自定义性,以及庞大的插件库。当我们使用了较多的插件的时候,我们就会发现插件真的很难管理(安装和卸载都很麻烦)。所以就不得不说VIM的插件管理器Vundle了。
Vundle安装和配置插件
好了,直接上安装和使用教程:
1、克隆我们需要的Vundle到你的用户目录下
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
2、配置属于你的专属的.vimrc
文件。
call vundle#begin()
" 这里是插件放置位置
call vundle#end() " required
这个是完整的配置。
set nocompatible "be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/syntastic' " 语法检测工具
Plugin 'scrooloose/nerdcommenter' "注释代码工具 \cc注释当前行 \cu 撤销注释当前行 \cs sexily注释 \cA 行尾注释,切换成输入模式
Plugin 'scrooloose/nerdtree' "树状结构文件夹目录
Plugin 'majutsushi/tagbar'
Plugin 'jiangmiao/auto-pairs' " 括号自动匹配
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
" filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
"powerline部分"
set rtp+=~/.local/lib/python2.7/site-packages/powerline/bindings/vim/
set guifont=Sauce\ Code\ Powerline:h14.5
set laststatus=2
set encoding=utf-8
set t_Co=256
set number
set fillchars+=stl:\ ,stlnc:\
set term=xterm-256color
set termencoding=utf-8
set background=dark
set modelines=0
set backspace=2 "设置更好的删除"
syntax on "自动语法高亮"
"用浅色高亮当前行"
autocmd InsertLeave * se nocul
autocmd InsertEnter * se cul
set smartindent "智能对齐"
set autoindent "自