如何为Windows,Ubuntu,Mint,Centos,Fedora下载和安装gVim?

vim is a popular text editor used to edit text, create applications and change configuration. vim is a Linux based tool where it is also cloned into other platforms like Windows, MacOS, BSD, etc. vim is a console, command-line based tool which is used with some keyboard shortcuts. Gvim is the graphical version of the vim which supports all vim features and adds extra GUI for vim usage. In this tutorial, we will learn how to download and install Gvim for different platforms like Windows, Ubuntu, Debian, Mint, CentOS, Fedora, RedHat.

vim是一种流行的文本编辑器,用于编辑文本,创建应用程序和更改配置。 vim是基于Linux的工具,在该工具中也可以克隆到Windows,MacOS,BSD等其他平台上。vim是基于控制台的命令行工具,与某些键盘快捷键一起使用。 Gvim是vim的图形版本,它支持所有vim功能并添加了额外的GUI以供vim使用。 在本教程中,我们将学习如何为Windows,Ubuntu,Debian,Mint,CentOS,Fedora,RedHat等不同平台下载并安装Gvim。

下载并安装Windows (Download and Install For Windows)

Gvim supports Windows platform with Windows XP, Windows 7, Windows 8, Windows 10 and Windows Server operating systems. We can use the following link in order to download Gvim for Windows.

Gvim支持具有Windows XP,Windows 7,Windows 8,Windows 10和Windows Server操作系统的Windows平台。 我们可以使用以下链接来下载Windows版Gvim。

https://www.vim.org/download.php

https://www.vim.org/download.php

In the following screen, we can see that the current version of the vim and Gvim is 8.2. There is two Gvim versions which are Sel-installing executable and Zipped GUI executable which do not requires installation.

在以下屏幕中,我们可以看到vim和Gvim的当前版本为8.2。 有两个Gvim版本,它们是Sel-installing executableZipped GUI executable ,不需要安装。

Download GVim
Download GVim
下载GVim

We can also download from the following link directly. The size of the Gvim instaler named gvim82.exe is about 8.8 MB which will be downloaded very fast in most of the cases.

我们也可以直接从以下链接下载。 Gvim安装程序名为gvim82.exe的大小约为8.8 MB,在大多数情况下,下载速度非常快。

https://ftp.nluug.nl/pub/vim/pc/gvim82.exe

https://ftp.nluug.nl/pub/vim/pc/gvim82.exe

If we are using modern windows operating systems like Windows 8 or Windows 10 we will see a screen like below which will simply say that the applications are not signed by a truster publisher and whether we want to continue. We will simply click to Run anyway.

如果我们使用的是Windows 8或Windows 10等现代Windows操作系统,则将看到如下屏幕,该屏幕仅表示应用程序未由信任发布者签名,以及是否要继续。 我们只需单击以Run anyway

Run Gvim Installer
Run Gvim Installer
运行Gvim安装程序

We need some administrative rights which will be provided with the following screen by clicking Yes.

通过单击“ Yes我们需要一些管理权限,这些权限将随以下屏幕提供。

Admin for GVim
Admin for GVim
GVim管理员

We will select the installation language which is English by default which is ok for us.

我们将默认选择安装语言为English ,这对我们来说是可以的。

LEARN MORE  Vi and Vim Search and Replace Operations
了解更多Vi和Vim搜索和替换操作
GVim Select Installation Language
GVim Select Installation Language
GVim Select安装语言

In the following screen, we will simply click Yes.

在以下屏幕中,我们只需单击Yes

GVim Installation Start Screen
GVim Installation Start Screen
GVim安装开始屏幕

We will accept the Gvim license agreement by clicking I accept the terms of the License Agreement.

单击I accept the terms of the License Agreement我们将接受Gvim I accept the terms of the License Agreement

GVim Accept LicenseAgreement
GVim Accept LicenseAgreement
GVim接受许可协议

In the following screen, we will select the components and set some configuration.

在以下屏幕中,我们将选择组件并进行一些配置。

  • `Vim GUI and runtime files` provides Gvim and core files which can not be deselected.

    “ Vim GUI和运行时文件”提供了不能取消选择的Gvim和核心文件。
  • `Vim console program` will install vim console or command line version.

    “ Vim控制台程序”将安装vim控制台或命令行版本。
  • `Create .bat file` will install some automated bat files.

    “创建.bat文件”将安装一些自动化的bat文件。
  • `Create icons for Vim` will create Vim icons.

    “为Vim创建图标”将创建Vim图标。
  • `Add Vim Context Menu` will an item to the `Open with …` menu.

    “添加Vim上下文菜单”会将一项添加到“用...打开”菜单中。
  • `Create Default Config` will create the default configuration of the GVim.

    “创建默认配置”将创建GVim的默认配置。
  • `Create Plugin Directories` will create the vim plugin directories.

    `Create Plugin Directories`将创建vim插件目录。
  • `Native Language Support ` will install different languages for GVim.

    本机语言支持将为GVim安装不同的语言。
GVim Select Components To Install
GVim Select Components To Install
GVim选择要安装的组件

In the following screen, we will set some important GVim configuration which is stored in vimrc file.

在以下屏幕中,我们将设置一些重要的GVim配置,该配置存储在vimrc文件中。

  • `Vi/Vim Behavior` will set the vim configuration loading behavior.

    Vi / Vim Behavior将设置vim配置的加载行为。
  • `Mappings` will set keymaps or keyboard short cuts like Ctrl+V , Ctrl+C, etc.

    “映射”将设置键盘映射或快捷键,例如Ctrl + V,Ctrl + C等。
  • `Mouse` will set the mouse or touchpad left and right buttons.

    “鼠标”将设置鼠标或触摸板的左右按钮。
GVim Configuration
GVim Configuration
GVim配置

In the following screen, we will select the installation path or directory which is C:\Program Files (x86)\Vim.

在以下屏幕中,我们将选择安装路径或目录C:\Program Files (x86)\Vim

GVim Installation Path
GVim Installation Path
GVim安装路径

The installation process is like below where we can see details by clicking show details.

安装过程如下所示,我们可以通过单击show details信息来show details

When the installation is completed successfully we will see the following screen.

安装成功完成后,我们将看到以下屏幕。

GVim Installation Completed Successfully
GVim Installation Completed Successfully
GVim安装成功完成

The GVim is like below which contains very useful GUI for a command line or console-based tools.

GVim如下所示,其中包含用于命令行或基于控制台的工具的非常有用的GUI。

GVim On Windows
GVim On Windows
Windows上的GVim

下载并安装适用于Ubuntu,Debian,Mint (Download and Install For Ubuntu, Debian, Mint)

We can download and install GVim for deb based distributions like Ubuntu, Debian, and Mint by using apt command-line tool or GUI package manager. In this case, we will install from the command line where GVim is provided with the package name vim-gtk.

我们可以使用apt命令行工具或GUI软件包管理器为基于Deb的发行版(如Ubuntu,Debian和Mint)下载并安装GVim。 在这种情况下,我们将从命令行安装,其中GVim带有软件包名称vim-gtk

$ sudo apt install vim-gtk
Download and Install For Ubuntu, Debian, Mint
Download and Install For Ubuntu, Debian, Mint
下载并安装适用于Ubuntu,Debian,Mint

We can run from the start menu or just with gvim command from the command line like below.

我们可以从开始菜单运行,也可以仅使用gvim命令从命令行运行,如下所示。

$ gvim
GVim For Ubuntu, Debian, Mint
GVim For Ubuntu, Debian, Mint
GVim适用于Ubuntu,Debian,Mint

下载并安装CentOS,Fedora,RedHat (Download and Install For CentOS, Fedora, RedHat)

In rpm-based distributions, GVim package is named vim-X11 but we can use the term gvim as package name too.

在基于rpm的发行版中,GVim软件包名为vim-X11但我们也可以使用术语gvim作为软件包名称。

$ sudo dnf install gvim
 

翻译自: https://www.poftut.com/how-to-download-and-install-gvim-for-windows-ubuntu-mint-centos-fedora/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值