Linux command
kakoune 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Open a file
kak [path/to/file]
Open multiple files
kak [file1] [file2]
Open at a specific line
kak +[line] [path/to/file]
Start in a named session
kak -s [session_name] [path/to/file]
Connect to an existing session
kak -c [session_name]
Run in filter mode
echo "[text]" | kak -f '[commands]'
说明
Kakoune (invoked as kak) is a modal text editor inspired by Vim but designed around multiple selections as its central editing primitive. Instead of operating on a single cursor, most operations in Kakoune work on one or more selections simultaneously, enabling powerful text manipulation with fewer keystrokes. Kakoune follows the selection → action model (as opposed to Vim's action → motion), meaning you first select text (using regex, text objects, or other methods), see what's selected, and then apply an operation. The editor supports client-server architecture for collaborative editing, built-in syntax highlighting, and extensive extensibility through its scripting language.
参数
- -s _SESSION_
- Start a named session
- -c _SESSION_
- Connect to an existing session
- -f _COMMANDS_
- Run commands on stdin (filter mode)
- -e _COMMANDS_
- Execute commands after startup
- -n
- Don't load kakrc configuration
- -l
- List existing sessions
- -d
- Run as daemon (no UI)
FAQ
What is the kakoune command used for?
Kakoune (invoked as kak) is a modal text editor inspired by Vim but designed around multiple selections as its central editing primitive. Instead of operating on a single cursor, most operations in Kakoune work on one or more selections simultaneously, enabling powerful text manipulation with fewer keystrokes. Kakoune follows the selection → action model (as opposed to Vim's action → motion), meaning you first select text (using regex, text objects, or other methods), see what's selected, and then apply an operation. The editor supports client-server architecture for collaborative editing, built-in syntax highlighting, and extensive extensibility through its scripting language.
How do I run a basic kakoune example?
Run `kak [path/to/file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -s _SESSION_ do in kakoune?
Start a named session