vim

grav 2022-10-04T18:22:24.603139Z

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

grav 2022-10-04T18:23:47.036949Z

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

sheluchin 2022-10-04T18:25:33.562759Z

See https://github.com/guns/vim-sexp

grav 2022-10-04T18:27:34.731989Z

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

sheluchin 2022-10-04T18:29:10.169709Z

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.

grav 2022-10-04T18:29:57.996169Z

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

grav 2022-10-04T18:31:35.185119Z

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

grav 2022-10-04T18:31:41.870299Z

I guess that's a limit of vim-sexp

sheluchin 2022-10-04T18:31:57.679889Z

See https://github.com/nvim-treesitter/nvim-treesitter/issues/2966

👍 1
Martynas Maciulevičius 2022-10-04T18:33:08.375969Z

You may want to try https://github.com/kylechui/nvim-surround

👍 1
sheluchin 2022-10-04T18:33:24.215519Z

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

👍 1
grav 2022-10-04T18:33:55.129209Z

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

Martynas Maciulevičius 2022-10-04T18:37:36.531599Z

Also try va( and vab And dab cab cib sab

Chase 2022-10-04T18:43:40.875009Z

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
1
2022-10-04T18:48:08.130219Z

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

2022-10-04T18:49:09.922699Z

where \ff is whatever keymap you're trying

karlis 2022-10-05T11:01:01.554959Z

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

👍 1