gVim文本编辑器绿色便携版v8.2.5076

gVim文本编辑器绿色便携版v8.2.5076

  • 版本: v8.2.5076
  • 分类:打印软件
  • 大小: 10.8M
  • 时间:2022-06-14
  • windows下载
  • 软件介绍
  • 软件截图
介绍

Vim是从vi开发的文本编辑器。方便编程的功能,如代码补充、编译和错误跳转,在程序员中被广泛使用。Emacs并列成为类Unix系统用户最喜欢的编辑器。Vim第一个版本BramMoolenaar发表于1991年。最初的缩写是ViIMitation,随着功能的不断增加,正式名称改为ViIMproved。现在是慈善软件通过开源代码发布。(简介来自维基百科)

GVIM安装说明

A、下载GVIM

B、运行下载的安装程序,并按照说明一步一步正确安装即可我这里安装的路径是 C:\Program Files (x86)\Vim\


桌面图标:


2、安装vim插件管理工具vundle

注意:安装vundle前提需要先安装 git 和 配置curl

(1)、安装git客户端:msysgit

msysgit只是提供了git的核心功能,而且是基于命令行的

A、下载msysgit

B、运行下载的安装程序,并安装说明一步一步正确安装即可,需要注意的一点就是PATH环境选择界面;注意:在 adjusting your PATH environment (调整PATH环境)界面,我们选择第二个run git from the windows command prompt ;如图


C、安装完成,打开cmd 命令提示符,运行命令(git –version )检查git 版本号


D、msysgit 的安装路径是C:\Program Files (x86)\Git (我的安装路径)


(2)、配置 curl

在windows下安装curl与msysgit结合非常简单,只需要在git的cmd目录创建文件curl.cmd即可路径:C:\Program Files\Git\cmd\curl.cmd ,文件内容如下

@rem Do not use "echo off" to not affect any child calls.

@setlocal


@rem Get the abolute path to the parent directory, which is assumed to be the

@rem Git installation root.

@for /F "delims=" %%I in ("%~dp0..") do @set git_install_root=%%~fI

@set PATH=%git_install_root%\bin;%git_install_root%\mingw\bin;%git_install_root%\mingw64\bin;%PATH%

@rem !!!!!!! For 64bit msysgit, replace 'mingw' above with 'mingw64' !!!!!!!


@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%

@if not exist "%HOME%" @set HOME=%USERPROFILE%


@curl.exe %*

打开cmd 命令提示符,运行命令( curl –version )检查curl 版本号


好了,我们开始安装 vundle 了,也很简单

(2)、安装Vundle  (Vundle on Windows)

A、打开cmd 命令提示符,只要运行一条命令即可,我们将vundle安装到 C:\Program Files (x86)\Vim\vimfiles 目录,目录如下:

git clone https://github.com/gmarik/Vundle.vim.git C:\Program Files (x86)\Vim\vimfiles\bundle\Vundle.vim


B、添加一个gvim目录的 环境变量 $VIM ,步骤 :我的电脑->属性->高级系统设置->高级->环境变量->新建 ;如图


C、在vim启动设定文件_vimrc添加 bundle的配置 ,vim的启动设定文件 _vimrc (在linux文件名是 .vimrc , 在windows下面是 _vimrc);这里直接配置一个全局的 _vimrc 文件,路径:C:\Program Files (x86)\Vim\_vimrc , 添加如下内容

"插件管理

set rtp+=$VIM\vimfiles\bundle\Vundle.vim\

call vundle#begin()

"let Vundle manage Vundle, required

Plugin 'VundleVim/Vundle.vim'

"my bundle plugin

call vundle#end()

filetype plugin indent on

在Github vim-scripts 用户下的repos,只需要写出repos名称在Github其他用户下的repos, 需要写出”用户名/repos名”不在Github上的插件,需要写出git全路径

D、Bundle 插件管理器使用

相关命令安装插件:BundleInstall更新插件:BundleUpdate清除不再使用的插件:BundleClean列出所有插件:BundleList查找插件:BundleSearch

例如安装插件打开一个gvim, 运行:BundleInstall 或者在命令行运行 vim +BundleInstall +qall安装完成后插件就能用了


展开
软件截图