Linux 开发软件

前言

这是开发中可能使用到的一类软件。

通用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 "自
  • 3
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值