Fork me on GitHub
#vim
<
2022-10-04
>
grav18:10:24

How do I select an expression? And how do I kill it? I have viw selecting most expressions (like keywords, symbols), but it doesn't seem to work with strings and regexes

grav18:10:47

I have vaf selecting sexprs, but again not just the token that I'm in (not sure if this is the correct term)

grav18:10:34

@UPWHQK562 Thanks for the pointer - af does work, but as doesn't. How would I debug that (neovim, noob)

sheluchin18:10:10

Are you using some other plugins? IIRC there have been some plugins that lead to conflicts with as -- I think treesitter? There is also ae.

grav18:10:57

ae does work as well. Can I somehow see what could be causing conflicts? I do have treesitter installed.

grav18:10:35

Just tried disabling treesitter, and yes, as starts working. But doesn't do the best of jobs with escaping quotes and leading #

grav18:10:41

I guess that's a limit of vim-sexp

sheluchin18:10:24

I'm not aware of any shortcut to discovering conflicts. Good ol' debugging is all we have AFAIK.

👍 1
grav18:10:55

Phew ... still a bit of an uphill battle from IDEA+Cursive, but slowly getting there 😄

Martynas Maciulevičius18:10:36

Also try va( and vab And dab cab cib sab

Chase18:10:40

Do you happen to use this which key plugin: https://github.com/folke/which-key.nvim? I recently switched to that and when running :checkhealth at the end of the report I get a list of conflicting keymaps.

🆒 2
yes 1
Noah Bogart18:10:08

can also try :verbose map \ff to see what pops up

Noah Bogart18:10:09

where \ff is whatever keymap you're trying

karlis11:10:01

I'm using https://github.com/tpope/vim-surround too. A bit more generic plugin for non-Clojure work as well!

👍 1