Chain two job_start()?

2021-12-14 Thread RingoRangoRongo
Hi! Is it possible to pass the results from one job to another? Like, if i have to 'ls -la ~ | grep vim', and don't want to invoke shell with 'sh -c "exec ls -la ~ | grep vim"' -- then, I'd define jobs like this: let com1 = ["ls", "-la", expand("~/")] let com2 = ["grep", "vimrc"] Can start

Re: set iminsert: why global, not local?

2017-07-18 Thread RingoRangoRongo
On Tuesday, July 18, 2017 at 10:45:13 PM UTC+3, Christian Brabandt wrote: > known bug: > https://groups.google.com/d/msg/vim_dev/HpwZWJojl3E/4zCBH3qWQ5IJ Thanks, Christian! Now, having in mind this and also what Tony has said ("setting 'keymap' on a given buffer also sets 'iminsert' to 1 on

Re: set iminsert: why global, not local?

2017-07-18 Thread RingoRangoRongo
Thanks for your reply, Tony! 1-2. Then I AM missing something, I assume: http://i.imgur.com/1SqcHwW.gif Like, why the Russian keymap — even though set locally via "setlocal iminsert=1" — applies to all buffers? 3. Well, I seem to understand why exactly this behavior happens ("characters

set iminsert: why global, not local?

2017-07-18 Thread RingoRangoRongo
Hi, Am I missing something, or is it impossible to set iminsert for a specific buffer only, not for Vim globally? I mean, I have "set keymap=russian-jcukenmac; set iminsert=0", and if I switch to the Russian keymap via , it does affect all open buffers. I tried creating a [conditional]

Re: Disabling persistent undo for a file mask

2017-02-23 Thread RingoRangoRongo
On Thursday, February 23, 2017 at 10:43:01 PM UTC+2, Christian Brabandt wrote: Thanks for the explanation, Christian! -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit

Re: Disabling persistent undo for a file mask

2017-02-23 Thread RingoRangoRongo
On Thursday, February 23, 2017 at 9:09:58 PM UTC+2, Charles Campbell wrote: > Just tried the attached minimal file along with the commands: […] Well, you are also setting noundofile. And while this is a solution to my question (and I dothank you for it, and also blame myself for not thinking

Re: Disabling persistent undo for a file mask

2017-02-23 Thread RingoRangoRongo
Just confirmed same behaviour with VIM - Vi IMproved 7.3 (vim -u NONE): :set undolevels=1000 :set undofile :set undodir :autocmd BufNewFile,BufRead,BufWrite *.sec setlocal ul=-1 :sav test.sec " no undo file exists insert random text :w " undo file appears insert more random test :w " undo

Re: Disabling persistent undo for a file mask

2017-02-23 Thread RingoRangoRongo
On Thursday, February 23, 2017 at 6:10:27 PM UTC+2, Ben Fritz wrote: > Assuming this is reliably repeatable, before performing the :w command that > would create the undo file, do this to see what undolevels is and which > script last changed it: > > :verbose set undolevels? 0. empty buffer:

Re: Disabling persistent undo for a file mask

2017-02-22 Thread RingoRangoRongo
On Wednesday, February 22, 2017 at 5:21:20 PM UTC+2, Ben Fritz wrote: > What other commands do you have in your .vimrc to enable the undo file for > other file types? I'd guess you have an interference going on. Nothing except this: set undofile set undodir=~/.vim/tmp// No filetype is

Disabling persistent undo for a file mask

2017-02-21 Thread RingoRangoRongo
Hi! In order to disable persistent undo for a file mask I have the following command in my .vimdc: autocmd! BufRead,BufWrite *.sec setlocal ul=-1 However, I noticed the following strange behaviour: 1. I save an empty buffer with :saveas file.sec command: no undo file present 2. I add

English and Russian layouts vs mappings

2016-11-29 Thread RingoRangoRongo
Hi! Sicne I use both Russian and English keyboard layouts, obviously, I face the usual problem that pressing a Russian letter in Normal mode doesn't produce a command. Luckily, Vim has the `langmap` setting, which allows to tie my Russian keyboard layout with the English one. This makes