Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the reasons why Vim users like Kakoune text editors

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you the reasons why Vim users like Kakoune text editor, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

The Kakoune text editor is inspired by Vi. With a simple interface, short keyboard shortcuts, and independent editing and insertion modes, it does look and feel like Vi at first glance. However, the Kakoune editor has its own unique style in design and functionality, not so much another Vim as it is itself.

Installation

On Linux and BSD, you can install Kakoune from your distribution's software repository or port tree. For example, on Fedora, CentOS, or RHEL:

$sudo dnf install kakoune

On Debian, Ubuntu, or similar systems:

$sudo apt install kakoune

On macOS, you can use Homebrew:

$brew install kakoune

Alternatively, you can build from source code.

The command to start Kakoune is kak. You can start Kakoune to open an empty file, or you can include the file name to open it at startup:

$kak example.txt uses Kakoune

When you start Kakoune (without a file name), it opens mostly empty buffers in your terminal, except for a small status bar at the bottom of the window. Like Vim, Kakoune starts in "normal" mode, which takes the key as a command and does not enter text into the buffer. To enter insert mode, you must press I (for insert Insert) or a (for append Append).

In insert mode, Kakoune operates like any other editor. You type on the keyboard, and then the characters you enter are displayed in the buffer. In insert mode, you can use the arrow keys to browse the buffer.

Normal mode

In normal mode, you can issue navigation and text editing commands. This is the most obvious feature borrowed from the Vi tradition. Edit commands include copy, cut (in traditional Unix editing terminology, called "yank"), paste words and lines, undo, convert character case, and so on. Here are some basics:

D: copy and delete the current selection ("cut" in modern terminology)

C: copy and delete the current selection and enter insert mode

Esc+Alt+d: delete the current selection

Y: copy selection

P: paste

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report