Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
Bruno Heridet edited this pageJun 16, 2020 ·6 revisions

In kakoune, many prompts or commands require a regex:

  • search/,?
  • selects
  • splitS
  • keep<a-k>
  • not keep<a-K>

The regex engine used by kakoune is a custom one, based on an ECMAScript standard. More infoin the documentation

This page lists common patterns you may need to better express your intent.

You can set user mappings to pre-fill prompts with the ones you need often. Here's an example withsearch and the\Q\E mentioned below:

map global user / ':exec /<ret>\Q\E<left><left>'

(<left><left> move the cursor back where you need it to be)

Case insensitive search

It is possible to make case insensitive regex by prefixing the expression with(?i).

Disable regex during search

Use theQuote flags, by surrounding your query with\Q and\E. Everything in between will be treated literally.

Remove non-ASCII characters from a buffer

%s[^\x00-\x7F]<ret>d

See also

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp