{"id":14617,"date":"2026-09-11T01:00:00","date_gmt":"2026-09-11T05:00:00","guid":{"rendered":"https:\/\/www.both.org\/?p=14617"},"modified":"2026-09-04T17:26:20","modified_gmt":"2026-09-04T21:26:20","slug":"why-gvim-is-my-new-favorite-editor","status":"publish","type":"post","link":"https:\/\/www.both.org\/?p=14617","title":{"rendered":"GVim is my new favorite editor"},"content":{"rendered":"<div class=\"pld-like-dislike-wrap pld-template-1\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"\" data-post-id=\"14617\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                        <i class=\"fas fa-thumbs-up\"><\/i>\r\n                <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><\/div>\n<p class=\"wp-block-paragraph\">I like using all kinds of editors, including the original <strong>ed<\/strong> editor, GNU Emacs, FED on FreeDOS, Edit on classic DOS, Mousepad on Xfce, and Vim on Linux. It\u2019s hard to pick a favorite, but I find I\u2019ve been using Vim for more things. I just like how Vim is like classic <strong>vi<\/strong> but with more modern features, especially code highlighting. And my fingers have \u201clearned\u201d the Vim commands, which means I can be more productive without switching to the mouse to scroll, select text, or use a menu. I can just <em>type<\/em> and it works.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">More recently, I decided to experiment with GVim, the graphical version of the Vim editor. And you know, <em>I really like it<\/em>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Download and run GVim<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">After installing, I found GVim in my desktop\u2019s menus; just click it to launch GVim. You can also run <strong>gvim<\/strong> from the command line; this will automatically start GVim as a background process, so it doesn\u2019t \u201ctie up\u201d your terminal window while you edit in the GVim window.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"910\" height=\"759\" src=\"http:\/\/www.both.org\/wp-content\/uploads\/2026\/09\/gvim-retrobox.png\" alt=\"gvim with the retrobox theme\" class=\"wp-image-14616\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Note that GVim reads the same \u201csettings\u201d file as regular Vim, so GVim started up with my \u201cretrobox\u201d theme. My <em>~\/.vim\/vimrc<\/em> file has these settings, which includes setting the color scheme to \u201cretrobox\u201d:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>colorscheme retrobox\nset guifont=IBM\\ Plex\\ Mono\\ weight=450\\ 14\nset nohlsearch\nset autoindent\nset tabstop=4<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">I prefer the \u201cretrobox\u201d theme; with Vim in a terminal, \u201cretrobox\u201d uses muted colors with a slight \u201corange\u201d hue, similar to what you might see on old-style amber monitors. I like \u201cretrobox\u201d because it\u2019s easy on my eyes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With GVim, \u201cretrobox\u201d also uses an off-white background color, which I found pleasant to look at. It\u2019s not glaring white. Try exploring GVim with the different color themes; you can set a color theme with the <code>colorscheme<\/code> command in Vim or GVim. In GVim, you can also use the <strong>Edit &gt; Color Scheme<\/strong> menu action to try a new color theme.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I also added a new <code>guifont<\/code> entry to my <em>vimrc<\/em> file to set the GUI font to <a href=\"https:\/\/fonts.google.com\/specimen\/IBM+Plex+Mono\">IBM Plex Mono<\/a> at 14-point. The \u201c450\u201d font weight gives text that is between regular (400) and \u201cmedium\u201d (500) font weights.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">IBM Plex Mono is my current favorite font for working in a terminal or editor, because it\u2019s so easy to read and the italic type variant looks nice when displayed in an editor. You might also recognize IBM Plex Mono as similar to the original IBM Selectric typewriter \u201cball\u201d font, which is another reason that I like using it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Modern but retro<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">GVim gives me the same commands as Vim, but in a window with modern menus. If I can\u2019t remember how to do something as a Vim command, I can use the menus to do it. For example, just use your mouse as usual to activate the menus, such as this example with the <strong>File<\/strong> menu:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"910\" height=\"759\" src=\"http:\/\/www.both.org\/wp-content\/uploads\/2026\/09\/gvim-file-menu.png\" alt=\"opening the File menu in gvim\" class=\"wp-image-14614\" style=\"width:910px;height:auto\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">I\u2019ve started using GVim to edit all of my files, from source code to markup text. I\u2019m still using the \u201cretrobox\u201d theme, which I think provides a good balance between readability and clear highlighting. Here\u2019s an example of writing a sample C program using GVim:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"910\" height=\"759\" src=\"http:\/\/www.both.org\/wp-content\/uploads\/2026\/09\/gvim-c.png\" alt=\"editing a C source file in gvim\" class=\"wp-image-14613\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Note that variables, keywords, regular code, quoted text, pre-processor instructions, and comments use different highlighting, while remaining easy to read. The off-white background also means I\u2019m not staring into a bright white screen for hours at a time.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I find the \u201cretrobox\u201d theme also works well for highlighting markup systems, like this sample Groff file:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"910\" height=\"759\" src=\"http:\/\/www.both.org\/wp-content\/uploads\/2026\/09\/gvim-groff.png\" alt=\"editing a groff document in gvim\" class=\"wp-image-14615\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">More to explore<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">GVim is developed as part of Vim, so you can find it on the <a href=\"https:\/\/www.vim.org\/\">Vim website<\/a>, but most users will probably want to install a package. I run Fedora Linux, which provides the <strong>vim-X11<\/strong> package. To install GVim, just install <strong>vim-X11<\/strong> like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo dnf install vim-X11<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you use Vim, try GVim to run it in its own application window.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you use Vim, try GVim to run it in its own application window<\/p>\n","protected":false},"author":33,"featured_media":3514,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[5,219],"tags":[91,220],"class_list":["post-14617","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-vim","tag-linux","tag-vim"],"modified_by":"Jim Hall","_links":{"self":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/14617","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/users\/33"}],"replies":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14617"}],"version-history":[{"count":3,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/14617\/revisions"}],"predecessor-version":[{"id":14620,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/14617\/revisions\/14620"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/media\/3514"}],"wp:attachment":[{"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14617"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}