Questions tagged [kakoune]

Kakoune is a free and open-source modal text editor; Vim-inspired, but selection-first.

13 questions
11
votes
5 answers

How do I yank to system clipboard in Kakoune?

If I yank a word in kakoune, how do I paste it into another editor (e.g. gedit)? I have read How to make vim paste from (and copy to) system's clipboard? since vim is very similar but kakoune does not have any * register.
Ford O.
  • 1,394
  • 8
  • 25
6
votes
2 answers

How do I select multiple lines going upwards on Kakoune?

In Vim I would enter visual mode with V then just move the cursor up (with k). In kak I can select a line with x and I can extend the selection downwards by pressing X multiple times or by moving the cursor down while still pressing shift with J,…
fiatjaf
  • 11,479
  • 5
  • 56
  • 72
6
votes
1 answer

What is the "*debug* buffer" in Kakoune?

I'm just starting with the Kakoune editor and somehow I was shown the message error during startup, see *debug* buffer for details when I loaded a file with kak. I don't know if I'm too stupid to ask this, but I don't know how do I "see debug…
fiatjaf
  • 11,479
  • 5
  • 56
  • 72
5
votes
1 answer

How do I create a Kakoune colorscheme?

I'm trying the Kakoune editor and I can't find any colorscheme that I like available for it on the internet. Is it hard to create a Kakoune colorscheme? Maybe I could port one of the vim ones?
fiatjaf
  • 11,479
  • 5
  • 56
  • 72
4
votes
1 answer

I have a lot of selections hanging around. How do I reduce them to a single one?

After any Kakoune operation which results in multiple selections (like a global search with %s, for example), I get multiple selections and when move up and down or left or right they all move. How do I get back to having just my primary single…
fiatjaf
  • 11,479
  • 5
  • 56
  • 72
3
votes
1 answer

Change an argument in kakoune

Is there any easy way to select/change/delete an argument in kakoune? For example, if I have int foo(int arg1, int arg2) and I would like to select int arg1. In spacemacs I can do this with via. How do I do this in kakoune?
Blubber
  • 1,375
  • 1
  • 15
  • 32
2
votes
1 answer

Kakoune: How to map "jump forward" and "jump back" in goto mode (e.g. map 'gp' to )

I use the dvorak keyboard, and I'd like to reduce strain from reaching for the control key when using and (to jump backward or forward). I think the ',' and 'p' keys are perfect when combined with the goto menu (e.g. when hitting 'g'…
Dan
  • 31
  • 3
1
vote
2 answers

In Kakoune, is there a way to type something over and over?

In Vim, you can go 30i= to type 30 = signs. (This is handy for taking notes, becaus I like to put a bunch of equals signs under different section headers.) Is there a way to do this in Kakoune? A numerical prefix on an insert session only types…
1
vote
2 answers

How to select surrounding parentheses?

How do I select the surrounding parentheses similar to vim-surround? I know I can do ( or m to select the text in between, but how do I get two cursors at the end?
Blubber
  • 1,375
  • 1
  • 15
  • 32
0
votes
0 answers

Kakoune module never loaded

As I was adding modules to my Kakoune modal code editor such as kakship, kak-rainbow, kks or alacritty.kak, I realized that these were never actually loaded by and therefore I never had access to the functions (commands ?) defined by these modules.…
Loqasku
  • 1
  • 1
0
votes
1 answer

kak-lsp Log shows `Language server is not initialized`

I have installed kak-lsp successfully with plug.kak. I have placed the kak-lsp.toml in ~/.config/kak-lsp/kak-lsp.toml. For the rustlang part it looks like this: [language.rust] filetypes = ["rust"] roots = ["Cargo.toml"] command = "sh" args = ["-c",…
ino
  • 1,002
  • 1
  • 8
  • 25
0
votes
1 answer

Passing selections to external commands as arguments rather than piping in kakoune

I am trying to send code to SBCL directly from Kakoune. I've settled on using tmux for this, the SBCL instance runs in a tmux instance with a given session name. The tmux command for passing in the key inputs is as follows: tmux send-keys -t…
Charlim
  • 521
  • 4
  • 12
0
votes
2 answers

How do I disable auto-indent on Kakoune?

I don't like text editors that perform auto-indentation in my code, because of various reasons, but Kakoune seems to be hardcoded to do that? Is it possible to disable it? I couldn't find any defined "hooks" for indent, just for autocomplete.
fiatjaf
  • 11,479
  • 5
  • 56
  • 72