jpalardy / vim-slime

A vim plugin to give you some slime. (Emacs)
http://technotales.wordpress.com/2007/10/03/like-slime-for-vim/
MIT License
1.83k stars 223 forks source link

<C-c><Text object> #395

Open YodaEmbedding opened 9 months ago

YodaEmbedding commented 9 months ago

Feature request.

<C-c> followed by any arbitrary text object.

(Text objects)
<C-c>ip     send inner paragraph
<C-c>5j     send next 5 lines
<C-c>af     send outer function (via treesitter text object)
<C-c>ac     send outer class (via treesitter text object)

(Defaults)
<C-c><C-c>  send inner paragraph
<C-c>v      config
jpalardy commented 9 months ago

Hi @YodaEmbedding

Technically, you can already do all these by picking the object/motion before pressing <C-c><C-c>

If not, check these lines and how people might have mapped them already.

Let me know how that goes.

jiz4oh commented 9 months ago

there is a <Plug>SlimeMotionSend that you can map by yourself, there is my vimrc

nmap <silent> gz <Plug>SlimeMotionSend