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

Migrating from Vim popular plugins

d2weber edited this pageOct 1, 2022 ·25 revisions

This page lists how tasks performed by popular Vim plugins can be executed by kakoune native commands.

Plugins

tabular

https://github.com/godlygeek/tabular

Easily align text.

vim usage

from

one = 1two = 2three = 3four = 4

:Tab/=

to

one   = 1two   = 2three = 3four  = 4

kakoune usage

  • select all buffer%
  • select all= chars withs=
  • confirm selection with<cr>
  • use the align command&

vim-exchange

https://github.com/tommcdo/vim-exchange

Easy text exchange operator for Vim.

vim usage

cxOn the first use, define the first {motion} to exchange. On the second use, define the second {motion} and perform the exchange.

kakoune usage

Let's say we want to exchange the words bananas and chocolate in the following sentence :

I like bananas but I prefer chocolate

  • select the wordbananas (without the trailing white space, for example by placing thecursor on the letterb and select until the end of the word using thee movement)
  • save this selection to the default mark register (^) withZ
  • select the wordchocolate
  • append the previous selection from the default mark register with<a-z> a
  • rotate the selections content with<a-)> forward or<a-(> backward

Note that this approach is not limited to only 2 selections.

vim-swap

https://github.com/machakann/vim-swap

Swap delimited items, like function arguments(foo, bar, quux) to(quux, foo, bar)

vim usage

new operator are available to do the swappingg< andg>

kakoune usage

  • select inside the parens with<a-i>(
  • split selection pressingS, then, (notice trailing white space) and confirm<cr>
  • rotate the selections content with<a-)>

vim-highlightedyank

https://github.com/machakann/vim-highlightedyank

Make the yanked region apparent!

vim usage

By adding this plugin, every time you yank something, like a text-object, it will briefly flash to visually confirm that you yanked what you intented.

kakoune usage

It is in kakoune's DNA to always highlight the current selections, so there's no surprise. It always matches your expectations.

vim-textobj-entire

https://github.com/kana/vim-textobj-entire

Entire content of buffer.

vim usage

It avoids theggVG dance. Let you do things likeyie to yank all buffer.

kakoune usage

Use the builtin%. To yank all buffer:%y

vim-textobj-indent

https://github.com/kana/vim-textobj-indent

vim usage

Add thei text object to select a block of lines which are similarly indented to the current line. Example to deletedii.

kakoune usage

Use the builtini text object. Example to delete<a-i>id

NERD Commenter / vim-commentary

https://github.com/scrooloose/nerdcommenterhttps://github.com/tpope/vim-commentary

vim usage

use the new commandgc followed by a move or a text-object to add comments.

kakoune usage

use thebuiltin commandscomment-block andcomment-line.

syntastic

https://github.com/vim-syntastic/syntastic

vim usage

syntastic runs an external tool in background to find syntax errors. it then updates the UI to show them

kakoune usage

use thebuiltin lint commands.When you provide the correct path to the external tool for a given language (exampleeslint for JavaScript files), it will list the errors in a dedicated buffer (similar to location list in vim), add error and warning flags in the gutter and also show inline infoboxes displaying error messages.

vim-gitgutter

https://github.com/airblade/vim-gitgutter

vim usage

vim-gitgutter displays signs like+ (green) or- (red) near line numbers indicating additions or deletions of code.

kakoune usage

use thebuiltin git commandgit show-diff

rainbow

https://github.com/luochen1990/rainbow orhttps://github.com/p00f/nvim-ts-rainbow

vim usage

This plugin help you read complex codes were composed of a mass of different kinds of parentheses by showing different levels of parentheses in different colors

kakoune usage

There areKak-rainbow,Kakoune-rainbow orKak-rainbower plugins.

vim-hexokinase

https://github.com/RRethy/vim-hexokinase

vim usage

The plugin for asynchronously displaying the colours in the file (#rrggbb,#rgb,rgb(a)? functions,hsl(a)? functions, web colours, custom patterns).

kakoune usage

TryKakoune-palette orColorcol plugins. If non satisfied you, check outthis discuss.

Bonus time

Kakoune also has manyplugins on its own!

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp