Re: how to display current syntax and highlight items

2019-02-14 Thread Paul
On Tue, Feb 12, 2019 at 11:33:46AM -0500, Marvin Renich wrote: I have looked through index.txt (especially g commands), syntax.txt, and usr_06.txt, but I could not find any reference to displaying the name of the current syntax item and/or highlight item of the character under the cursor. I am p

Command history scrolling after less

2019-02-14 Thread Paul
":" normally scrolls through command history. However, after I pipe the buffer to less, that no longer happens. With or without any LESS* environment variables set: 1. vim -Nu NONE 2. : " Fine 3. " To cancel the scrolling from step 2 4. :w !less 5. Press "q", "enter", or whatever to get back

Re: how to display current syntax and highlight items

2019-02-14 Thread Marvin Renich
* Magnus Woldrich [190212 11:38]: > Here you go: > https://github.com/trapd00r/configs/blob/master/vim/nancy/000-functions.vim#L159 Thanks! That gives the info I want, and it also gave me the clue to find the help (synID) and the original tip that I was looking for: Tip 99 on the old «https://ww

How to execute an external command asynchronously in gVim 8.1 without starting a new cmd every time and append the output to an existing buffer

2019-02-14 Thread joaobzzr
I want to execute a batch file and display the output on a new buffer. I know I can use !start for this, but I can't figure out how to make it reuse the same command-line instead of starting a new one every time. I managed to get close by using :terminal instead with send_keys(), checking if th

Re: termguicolors and xterm

2019-02-14 Thread Chris Jones
On Sat, Jan 19, 2019 at 05:43:24PM EST, Chris Jones wrote: > I came across a new 'termguicolors' option in Vim. > > I took a closer look using KDE's Konsole and gnome-terminal and it > appears to work out of the box: just a matter of adding a ":set > termguicolors" statement to your ~/.vimrc and

How to execute an external command asynchronously in gVim 8.1 without starting a new cmd every time and append the output to an existing buffer

2019-02-14 Thread joaobzzr
I want to execute a batch file and display the output on a new buffer. I know I can use !start for this, but I can't figure out how to make it reuse the same command-line instead of starting a new one every time. I managed to get close by using :terminal instead with send_keys(), checking if th

Re: Command history scrolling after less

2019-02-14 Thread Gary Johnson
On 2019-02-14, Paul wrote: > ":" normally scrolls through command history. However, after > I pipe the buffer to less, that no longer happens. With or without > any LESS* environment variables set: > > 1. vim -Nu NONE > 2. : " Fine > 3. " To cancel the scrolling from step 2 > 4. :w !less > 5. P

mksession restore just deleted buffer

2019-02-14 Thread nivaemail
Hi, In _vimrc sessionoptions are defined as is : set sessionoptions=help,winsize,winpos,buffers I have two buffers in buffers' list and after buffer deleting the second one, restarting vim, it is always in the buffers's list. I don't understand why it appears again. Thank you NiVa -- --

Re: Command history scrolling after less

2019-02-14 Thread Gary Johnson
On 2019-02-14, Gary Johnson wrote: > On 2019-02-14, Paul wrote: > > ":" normally scrolls through command history. However, after > > I pipe the buffer to less, that no longer happens. With or without > > any LESS* environment variables set: > > > > 1. vim -Nu NONE > > 2. : " Fine > > 3. " To ca