LinuxCommandLibrary

gvim

GUI version of Vim

TLDR

Open file in GUI vim

$ gvim [file]
copy
Open multiple files in tabs
$ gvim -p [file1] [file2]
copy
Open in read-only mode
$ gvim -R [file]
copy
Open with diff mode
$ gvim -d [file1] [file2]
copy
Open at specific line
$ gvim +[42] [file]
copy

SYNOPSIS

gvim [options] [files]

DESCRIPTION

gvim is the GUI version of Vim. It provides all Vim functionality with graphical menus, mouse support, and system clipboard integration.
The editor supports the same commands and plugins as terminal Vim. It offers visual features like toolbar, scrollbars, and configurable fonts.

PARAMETERS

FILES

Files to edit.
-p
Open files in tabs.
-o
Open files in horizontal splits.
-O
Open files in vertical splits.
-R
Read-only mode.
-d
Diff mode.
+ NUM
Start at line number.
-c CMD
Execute command after start.
--help
Display help information.

CAVEATS

Requires X11/Wayland or Windows GUI. Larger memory footprint than vim. GUI features configurable in .gvimrc.

HISTORY

gvim was developed as part of Vim by Bram Moolenaar to provide a graphical interface for the editor.

SEE ALSO

vim(1), vi(1), nvim(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community