zoukankan      html  css  js  c++  java
  • vim 配置python开发环境

    插件管理工具vunble

    安装git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

    vim .vimrc 加入以下内容

    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'

    " The following are examples of different formats supported.

    " Keep Plugin commands between vundle#begin/end.

    " plugin on GitHub repo

    Plugin 'tpope/vim-fugitive'

    " plugin from http://vim-scripts.org/vim/scripts.html

    " Plugin 'L9'

    " Git plugin not hosted on GitHub

    " Plugin 'git://git.wincent.com/command-t.git'

    " git repos on your local machine (i.e. when working on your own plugin)

    " Plugin 'file:///home/gmarik/path/to/plugin'

    " The sparkup vim script is in a subdirectory of this repo called vim.

    " Pass the path to set the runtimepath properly.

    Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}

    " Install L9 and avoid a Naming conflict if you've already installed a

    " different version somewhere else.

    " Plugin 'ascenator/L9', {'name': 'newL9'}

    " 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

    目录管理器

    安装git clone https://github.com/scrooloose/nerdtree.git ~/.vim/bundle/nerdtree

    " 属性目录结构管理器

    Bundle 'The-NERD-tree'

    Bundle 'The-NERD-Commenter'

    " 设置打开tree快捷键:

    map <F2> :NERDTreeMirror<CR>

    map <F2> :NERDTreeToggle<CR>

    " 在 vim 启动的时候默认开启 NERDTree(autocmd 可以缩写为 au)

    "autocmd VimEnter * NERDTree

    配色方案

    下载配色文件 git clone https://github.com/tomasr/molokai.git   然后把里面的colors复制到.vim/下面

    在.vimrc中添加

    syntax on

    colorscheme  molokai

    set t_Co=265

    set background=dark

    状态栏

    在.vimrc中添加

    " Airline: 小巧美观的状态栏。

    Plugin 'bling/vim-airline'

    语法高亮

    在.vimrc中添加

    " MATLAB/MATLAB-fold: MATLAB 语法高亮及代码折叠插件。

    Plugin 'djoshea/vim-matlab'

    Plugin 'djoshea/vim-matlab-fold'

    tab代码补全

    下载文件http://www.vim.org/scripts/script.php?script_id=1643

    在.vimrc中执行:UseVimball ~/.vim然后添加 let g:SuperTabDefaultCompletionType="context"

    自动添加括号,引号

    在.vimrc中添加

    Plugin 'jiangmiao/auto-pairs'

    语法检测

    在.vimrc中添加

    Plugin 'scrooloose/syntastic'

    最后执行BundleInstall,PluginInstall

  • 相关阅读:
    理解闭包
    .net 应用程序执行过程
    Lambda 表达式
    栈的应用
    C# string
    自包含 与 自描述
    C# 值类型 与 引用类型
    C# 装箱 与 拆箱
    sql server分页的两种方法比较
    九月天开博日志
  • 原文地址:https://www.cnblogs.com/xianyin/p/8026622.html
Copyright © 2011-2022 走看看