Terminal and pipes

2017-09-15 Thread Lifepillar
How does one launch piped commands in Vim terminal? The naïve: call term_start('ls | fzf') does not work. I guess that I should connect two jobs using out_io and in_io, but is that possible? Thanks, Life. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type

clicked cword

2017-09-15 Thread Xavier Noria
I'd like to map to :tag , handy when doing a walkthrough where you don't type. But is the word under the cursor. Is there a way to get the clicked word or identifier? Bonus points if the cursor doesn't move. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type

Re: Don't load specific keymap when pasting

2017-09-15 Thread Steve
Hi Tony, Thank you for your answer. Unfortunately, it's way beyond my understanding. I was thinking about something much more automatic, like: Vim AI: hey, Steve wants to paste something, let's disable temporarily his keymap, and once pasted, reactivate it. Something like catching the

Re: Don't load specific keymap when pasting

2017-09-15 Thread Tony Mechelynck
You can also disable keymaps temprarily while pasting. Toggling keymaps is Ctrl-^ in Insert mode or ":let = !" (without the quotes) in Normal mode; and if your keyboard (like my Belgian AZERTY) doesn't give easy access to Ctrl-^ you can remap it to something else: I use F8, as follows (this

Re: Terminal and pipes

2017-09-15 Thread Lifepillar
On 15/09/2017 20:43, Bram Moolenaar wrote: Lifepillar wrote: How does one launch piped commands in Vim terminal? The naïve: call term_start('ls | fzf') does not work. I guess that I should connect two jobs using out_io and in_io, but is that possible? You need to do this with a

Re: Terminal and pipes

2017-09-15 Thread Bram Moolenaar
Lifepillar wrote: > How does one launch piped commands in Vim terminal? > The naïve: > > call term_start('ls | fzf') > > does not work. I guess that I should connect two jobs using > out_io and in_io, but is that possible? You need to do this with a shell: call term_start(['sh',

Re: Don't load specific keymap when pasting

2017-09-15 Thread Steve
Hi Christian, Le 15-09-2017, à 09:39:26 +0200, Christian Brabandt a écrit : So the question is how could I do to not have this behaviour when copy-pasting? Depends on how you paste. If you paste from the clipboard (and your vim is compiled with clipboard support) this shouldn't happen. vim

Re: Don't load specific keymap when pasting

2017-09-15 Thread Christian Brabandt
On Fr, 15 Sep 2017, Steve wrote: > Hello, > > I have these line in ~/.vim/keymap/touchesfr.vim > > loadkeymap > « « > » » > ? ? > ! ! > : : > ; ; > > because in French you need a non-breaking space before or after a double > punctuation. Works great when editing text. But I often want to >

Don't load specific keymap when pasting

2017-09-15 Thread Steve
Hello, I have these line in ~/.vim/keymap/touchesfr.vim loadkeymap « « » » ? ? ! ! : : ; ; because in French you need a non-breaking space before or after a double punctuation. Works great when editing text. But I often want to copy-paste an URL and if it contains one of those double