rectangular (block) paste from clipboard ?

2017-08-02 Thread M Kelly
Hi, Anyone know of a way to block paste from the external clipboard buffer ? I can paste but its not block paste. For example, I use tmux and block-copy selection to clipboard but cannot get this to block paste in vim. thx, m -- -- You received this message from the "vim_use" maillist. Do not

Re: terminal - back to terminal from normal ?

2018-05-14 Thread M Kelly
Would something like this work as a toggle ? nnoremap ( == 'terminal') ? 'i' : '\' -mark -- -- 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 http://www.vim.org/maillist.php ---

terminal - back to terminal from normal ?

2018-05-14 Thread M Kelly
Hi, When in a terminal I can do or to get into normal mode. But is there a way to get back to terminal mode ? No matter what I try and search for I cannot seem to find it. thx, mark -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below

Re: terminal - back to terminal from normal ?

2018-05-14 Thread M Kelly
> Any command that would start Insert mode, e.g. 'a' or 'i'. Well ok, thats just too darn obvious! thx as always, mark -- -- 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

mapping ?

2018-05-13 Thread M Kelly
Hi, Any idea why this doesn't work ? nnoremap :conf qa If I don't use the but some other non-ctrl char it works fine. I keep getting a msg: Type :qa! and press to abandon all changes and exit Vim On this and also whenever I just type ctrl-c thx, mark -- -- You received this message

Re: mapping ?

2018-05-13 Thread M Kelly
> Are you in windows OS? If it is, it will confilct with windows OS shortkey. Hi, no, sorry should have added that. I'm on Linux, Ubuntu 16.04 LTS +hwe -- -- 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

vim quit except when terminal(s) active

2018-05-10 Thread M Kelly
Hi, Any help with an autocmd so that when I quit vim it does not really quit if at least one terminal is still active ? Otherwise the current window goes hidden and then when I exit the terminal the previous window/buffer suddenly reappears. thx always for vim and all your support, mark --

Re: vim quit except when terminal(s) active

2018-05-11 Thread M Kelly
Hi, I think I solved it with this - function! s:TermQuit() quit! endfunction tnoremap :call TermQuit() take care, -mark -- -- 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

autocmd terminal set signcolumn=no

2018-05-15 Thread M Kelly
Hi, I set signcolumn=yes in my .vimrc. When starting a terminal the sign column is not displayed, but then going into normal mode for this terminal shows it again. I tried this - au BufWinEnter * if == 'terminal' | set signcolumn=no | endif but it does not work. Any idea how to automatically

Re: autocmd terminal set signcolumn=no

2018-05-15 Thread M Kelly
Hi, I just read about the TerminalOpen event, when I use: au TerminalOpen * set signcolumn=no it works :-) thx, mark -- -- 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

execute "conf qa" or ":conf qa"

2018-06-10 Thread M Kelly
Hi, It seems that sometimes I see cmds in an execute statement without a leading colon, as in: execute "conf qa" And sometimes I see the colon, as in: execute ":conf qa" Is there a rule or reason why ? Just wanting to understand it properly. I would have thought I need a colon always since

Re: terminal mode bracketed paste ?

2018-06-16 Thread M Kelly
Hi, > In this situation t_BE and t_BD are empty, thus bracketed paste is not > supported. Thanks for looking into it. Adding this - if =~ "screen" let _BE = "\e[?2004h" let _BD = "\e[?2004l" exec "set t_PS=\e[200~" exec "set t_PE=\e[201~" endif is a good solution for me. thank you

terminal mode normal mode mapping ?

2018-06-16 Thread M Kelly
Hi, Is there a way to map keys only when in normal mode from a terminal ? thx, -m -- -- 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 http://www.vim.org/maillist.php --- You received

Re: terminal mode bracketed paste ?

2018-06-15 Thread M Kelly
> Vim does not enables bracketed paste mode if TERM=screen. > To enable bracketed paste mode when vim runs in tmux, you may add following > setting into .vimrc. > > if =~ "screen" > let _BE = "\e[?2004h" > let _BD = "\e[?2004l" > exec "set t_PS=\e[200~" > exec "set t_PE=\e[201~"

Re: terminal mode bracketed paste ?

2018-06-15 Thread M Kelly
> How exactly do you paste? first - to get into normal mode V, select a few lines moving around yank back to terminal mode then - paste with ctrl-shift-v or with mouse middle button thx, -m -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below

Re: terminal mode bracketed paste ?

2018-06-15 Thread M Kelly
> I cannot reproduce this when running Vim in a terminal window. > What do you run, zsh? How do you start it, with ":term zsh" or with > ":term" while 'shell' is set to "zsh"? > > And what terminal is Vim running in and what is 'term' set to? Hi, just :terminal my shell is zsh

Re: terminal mode normal mode mapping ?

2018-06-17 Thread M Kelly
> Is there a way to map keys only when in normal mode from a terminal ? Hi, I think something like this works - nnoremap( == 'terminal') ? 'i' : '' thx, -m -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to.

terminal mode bracketed paste ?

2018-06-14 Thread M Kelly
Hi, It seems for me bracketed paste is not enabled in terminal mode. If I copy a few lines then paste into my zsh outside of vim (in tmux) then bracketed paste is enabled and the lines are not executed until I hit enter. But if in terminal mode I paste then each line is executed. Is this

Re: execute "conf qa" or ":conf qa"

2018-06-11 Thread M Kelly
> So if the operand of :execute starts with a colon, that colon is not harmful, > but it isn't necessary either. Thank you so much Tony for explaining that. -mark -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to.

vimdiff exit when files are identical?

2018-05-28 Thread M Kelly
Hi, Is there a variable for how many diffs are present after starting vimdiff ? I'd like to exit immediately with status of 0 if there are no differences between the files I pass into vimdiff. thx for any suggestions, -mark -- -- You received this message from the "vim_use" maillist. Do not

Re: vimdiff exit when files are identical?

2018-05-30 Thread M Kelly
> Another way would be to check the fold regions. Any pointer/info/tip on how to determine the non-fold region is empty ? thx, mark -- -- 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: :terminal mode ques

2017-12-29 Thread M Kelly
> > Off course you can. Type CTRL+\ CTRL+N and the terminal buffer will become > > a regular buffer without ending the job. Then you can yank, mark or do > > whatever you need. > > > > > > To go back to Terminal mode just type A. > > ok, yes, but this is more effort than before. In more

timer / job / window / tab

2018-01-15 Thread M Kelly
Hi, I am creating a timer that starts a job at a regular interval. When the job is finished I update a variable with some of the job output with a ch_read(). I would like to update the statusline with this variable, but that means each vim process and also each tab / window have their own

Re: :terminal mode ques

2017-12-28 Thread M Kelly
Hi again, Also I cannot seem to select any text with the mouse in terminal mode. I understand I cannot edit the terminal buffer but I do still want to cut/paste from the mouse to the command line from time to time. Anyone know of a way to make this work ? thanks again as always to everyone for

Re: :terminal mode ques

2017-12-28 Thread M Kelly
> Off course you can. Type CTRL+\ CTRL+N and the terminal buffer will become a > regular buffer without ending the job. Then you can yank, mark or do whatever > you need. > > > To go back to Terminal mode just type A. ok, yes, but this is more effort than before. In more detail, if I am in a

:terminal mode ques

2017-12-27 Thread M Kelly
Hi, I am using :terminal and it is great!, thank you. I have two questions if anyone can help - 1). is there a way to get vim to exit if the only buffer was a terminal in the current window and that job ends ? 2). is there a way to start several :terminal windows but have them hidden and then

Re: :terminal mode ques

2017-12-27 Thread M Kelly
> 1). is there a way to get vim to exit if the only buffer was a terminal in > the current window and that job ends ? Perhaps something related to autocmd BufLeave ... to close/end vim ?? -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the

if only true in first file ?

2018-03-27 Thread M Kelly
Hi, In my .vimrc I have if let b:mckgitstatus = "diff" else autocmd BufReadPost,BufNewFile,FileReadPost * call MyGitStatus() autocmd BufUnload * call MyGitLeave() endif And in the first file window I do see "diff" status as expected. But the second file window does not have the "diff"

Re: if only true in first file ?

2018-03-27 Thread M Kelly
I added a check in my lightline git branch routine to check for diff and set the correct "diff" status there, so its fixed now. When I think about it, it makes sense this way. But at first I thought both files would go through the same .vimrc startup logic. take care, -mark -- -- You received

count folds ?

2018-09-30 Thread M Kelly
Hi, Is there a way in vim script to count the number of folds present ? thanks always for the vim universe, -mark -- -- 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: :Termdebug config/startup to hide debugged program window

2018-10-31 Thread M Kelly
> No, currently there is no option for it. But it makes sense. > > I wonder how best to specify this. I suppose it depends on what you > want to debug, thus a global flag is not that useful. Some flag on the > :Termdebug command is probably more useful. Yes, that would be great. thx, -m --

Re: :Termdebug config/startup to hide debugged program window

2018-11-01 Thread M Kelly
Hi, Is Termdebug a plug-in ? If so, I will stare at it next week and see if I can figure something out here. thx, -m On Wed, Oct 31, 2018, 6:30 PM M Kelly > No, currently there is no option for it. But it makes sense. > > > > I wonder how best to specify this. I suppose it

:Termdebug config/startup to hide debugged program window

2018-10-31 Thread M Kelly
Hi, I am using :Termdebug and was wondering if there was a way to remove the: 2 #a? "debugged program [active]"line 0 window/buffer at start up. I usually attach to a running process and do not use this window. Can I somehow hide it automatically ? thx always for the vim universe, -m --

yank to reg intermittent problem

2018-09-25 Thread M Kelly
Hi, When I yank a line (yy) I see the msg "1 line yanked" (I have report=0) and I have clipboard set to: clipboard=unnamedplus,autoselect,exclude:cons\|linux But - maybe once out of 20 time or so - the + register does not show the data. Even if I use "+y instead of yy its the same - works fine

Re: display warning msg a little longer or until another keypress

2019-01-04 Thread M Kelly
Hi, In search.c if I add the ui_delay() call in three places, it pretty much does what I am looking for: give_warning((char_u *)_(top_bot_msg), TRUE); + ui_delay(p_mat * 100L, TRUE); And then I set matchtime=3 for example. Cool imho if there could be some kind of wrapscan/warning timeout

Re: mappings when in vim from terminal not the same

2018-12-16 Thread M Kelly
Tony, hi > When in Terminal-Job mode, _only_ the mappings defined by tmap or > :tnoremap are active. OTOH, these mappings are active nowhere else. If I start a bash as a terminal job, and in that bash I start vim (I know circular and maybe not ok, but its what I did), then I still have some

remap C-\ to a different C- key ?

2018-12-17 Thread M Kelly
Hi, Is it possible to remap C-\ to a different C- key ? thx for all that is vim, -m -- -- 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 http://www.vim.org/maillist.php --- You received

Re: remap C-\ to a different C- key ?

2018-12-17 Thread M Kelly
Tony, hi Sorry for not being more precise - I mean make another key do what C-\ does, but my difficult point is that another program (like a window mgr etc.) might grab C-\ before vim, so I don't mean map C-x to C-\ for exmaple. thx, -m -- -- You received this message from the "vim_use"

Re: remap C-\ to a different C- key ?

2018-12-17 Thread M Kelly
Hi, If the window mgr grabs C-\ then I don't think it will work ? I did test but will test again, I propably messed something up. I think what I'm hoping for is if perhaps we knew something like: C-\ calls function foo() ... then I can unmap C-\ and map C-x (or S-F12) to call function foo() and

Re: remap C-\ to a different C- key ?

2018-12-17 Thread M Kelly
Hi, > window manager won't receive the key from inside Vim. So I think this is the issue - for me yes, the window mgr wins and I try to make sure it and vim do not use the same key sequences. thx, -m -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your

Re: remap C-\ to a different C- key ?

2018-12-17 Thread M Kelly
Hi, I made progress after finding my mistakes. I will map 'something else' to C-\ in terminal mode and command mode. Thank you again for your replies which help so much. take care, -m -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text

Re: search file for text in reg ?

2018-12-15 Thread M Kelly
Hi, > /a Tony, thanks, That is also great to know and I will use it. thank you and everyone for vim, -m -- -- 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: mappings when in vim from terminal not the same

2018-12-15 Thread M Kelly
Hi, One thing _I think_ is happening is my tmaps are being honored instead of (or perhaps before) my nmaps. Perhaps I can tunmap some maps in this case ? I'll post what I find. thx, -m -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the

search file for text in reg ?

2018-12-14 Thread M Kelly
Hi, Is there a way to search a file for the text that is in a register ? thx always for everything vim, -m -- -- 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: search file for text in reg ?

2018-12-14 Thread M Kelly
Hi, > :let @/=@a Awesome, thank you Tim. -m -- -- 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 http://www.vim.org/maillist.php --- You received this message because you are

Re: Talks on VimConf2018 are now published here.

2018-12-08 Thread M Kelly
Hi, Thank you. -m -- -- 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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups

Re: :wn to :x like map/abbrev ?

2018-12-08 Thread M Kelly
Hi, > Something like: > :update|next > perhaps? ok, cool. I didn't know about :update. (I could even maybe handle E163, E165 for the last one) take care, and thank you and everyone for vim, -m -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your

:wn to :x like map/abbrev ?

2018-12-06 Thread M Kelly
Hi, When editting many files I can just do :wn to save and go to next, but just curious, does anyone know of a mapping/abbrev so that :x acts like :x for one file (and the last file), but acts like :wn for the files in between ? Or really just saves curent and loads next w/o a prompt ? thx

Re: :wn to :x like map/abbrev ?

2018-12-06 Thread M Kelly
Hi, Thanks. I will look into that func, or something like it. > Making the one act like the other would confuse me. I think I'm really only asking for a :x to save and move on with out prompting. take care -m -- -- You received this message from the "vim_use" maillist. Do not top-post!

mappings when in vim from terminal not the same

2018-11-30 Thread M Kelly
Hi, Perhaps a bit circular, but I live in vim terminal a lot and when I start vim to edit a file from a terminal shell some of my mappings do not work as they do when starting vim outside of terminal (as from a standard zsh). For example I have this: nnoremap viW When in vim from terminal

Re: C-v to toggle between v-block/visual ?

2018-11-20 Thread M Kelly
> Can I get mode() as V or v and save it to restore ? I will try. Yes, perhaps with visualmode() :-) thx, -m -- -- 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: C-v to toggle between v-block/visual ?

2018-11-20 Thread M Kelly
> Something along this perhaps? > > xnoremap mode()=="\"?"V":"\" Thank you. To follow-up how do we know to V or v (how visual was originally started) ? Is that possible ? take care, -m -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below

Re: C-v to toggle between v-block/visual ?

2018-11-20 Thread M Kelly
Hi, > Thank you. To follow-up how do we know to V or v (how visual was originally > started) ? Is that possible ? Can I get mode() as V or v and save it to restore ? I will try. thx again, -m -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply

C-v to toggle between v-block/visual ?

2018-11-20 Thread M Kelly
Hi, Anyone know of a way to vnoremap to toggle between visual and v-block modes ? As it is now for me, from visual mode goes to v-block mode (which is great), but press again and it exits all visual modes, I would like it to just toggle it back to visual mode and update the selection. thx

display warning msg a little longer or until another keypress

2019-01-03 Thread M Kelly
Hi everyone, An example of this would be when I have shm-=s and I search for a string, when it wraps I get the warning msg "search hit BOTTOM, continuing at TOP" and I have changed my WarngingMsg highlight to make this easier to see, but without disabling wrapscan, I often find the warning msg

vimdiff + wrap line alignment

2019-03-16 Thread M Kelly
Hi, If I set wrap on for vimdiff (in all windows) and there is a wrapped line in one window long enough to wrap at least once more than the other window, the lines in the windows are no longer in alignment. For example, it would seem the "" line in one window to match the other's new line

scrolljump and paste ?

2019-05-10 Thread M Kelly
Hi, I set scrolljump=-50, it works well for me. But sometimes when I paste it is annoying when the cursor jumps. I have experimented with: au InsertEnter * let =1 au InsertLeave * let =-50 but this doesn't seem to affect pasting. Does anyone know of or have a suggestion for this ? Could I remap

Re: scrolljump and paste ?

2019-05-10 Thread M Kelly
> Thanks Tony. > Is there a way around the recursion of mapping p to call a function that > issues a p between setting scrolljump values ? Perhaps with an alias ? Hi, Something weird, like this ??? function! MyPaste() abort nnoremap p p let =1 execute "normal p" let =-50 nnoremap

Re: scrolljump and paste ?

2019-05-10 Thread M Kelly
> :map :set scrolljump=1p > :map :set scrolljump=1P > :map :set scrolljump=-50 Hi, Thanks Tony. Is there a way around the recursion of mapping p to call a function that issues a p between setting scrolljump values ? Perhaps with an alias ? thx, -mark -- -- You

Re: mutex ?

2019-08-21 Thread M Kelly
Hi, > Yes, things happen asynchronously, bit all in the same thread. > Thus you can use a normal variable as a flag. ok, cool. -m -- -- 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

mutex ?

2019-08-20 Thread M Kelly
Hi, Is there any suggestion for a mutex lock/unlock in vim ? I want to protect some logging code in my plugin from being executed concurrently. thx always for everything vim, -m -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you

Re: mutex ?

2019-08-20 Thread M Kelly
Hi, I use job channels and things run async as far as I can tell ? -m -- -- 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 http://www.vim.org/maillist.php --- You received this message

Failed to parse vim.desktop file msgs

2019-08-27 Thread M Kelly
Hi, I get many of these msgs on my system in syslog: Aug 27 15:02:15 gnome-session[]: (gnome-software:): As-WARNING **: failed to rescan: Failed to parse /usr/local/share/applications/vim.desktop file: cannot process file of type application/x-desktop Anyone know why ? I do not get

Re: Failed to parse vim.desktop file msgs

2019-08-29 Thread M Kelly
Hi, I checked it for invalid utf-8 and it was clean as far as I can tell. I'll keep digging. thx, -m -- -- 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 http://www.vim.org/maillist.php

CursorHoldV ?

2019-12-04 Thread M Kelly
Hi, Is there a way to have insert-mode and visual-mode auto return to normal-mode if nothing was typed/moved/etc. in updatetime ? I think I could use an autocmd for CursorHoldI to return to normal-mode, but is there a CursorHoldV or does CursorHold also work in visual-mode ? Is there another

Re: cmdline regex ques

2019-10-05 Thread M Kelly
Hi, I was able to use the 'Konfekt/vim-alias' plugin for this - :Alias q call\ Quit() :Alias q! call\ QuitBang() thx again everyone, -m -- -- 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,

cmdline regex ques

2019-10-04 Thread M Kelly
Hi, Does anyone know what would be the vim regex for getcmdline() =~ for both 'q' and 'q!' ? ie, something like: cnoreabbrev q (getcmdtype() == ':' && getcmdline() =~ '\s*q\s*$') ? 'call Quit()' : 'q' cnoreabbrev q! (getcmdtype() == ':' && getcmdline() =~ '\s*q!\s*$') ? 'call QuitBang()' :

Re: cmdline regex ques

2019-10-04 Thread M Kelly
Hi, I guess it evaluates as I type ? So no real way around this. Perhaps a cmap could trigger a cmdline substitution ? Maybe there is such a plugin already. thx, -m -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying

nested expr in a mapping

2020-02-13 Thread M Kelly
Hi, Is it posible to nest conditionals in a mapping, something like, just for demonstration: vnoremap vv (strlen(@y) == 1) ? ':let ...' : '("vcl" =~ getregtype("*")) ? 'some foo' : 'some bar' ' some more ... Can we do this ? Do I use ''' (3 single quotes) to embed quotes ? (and then 5

3-LeftMouse ques

2020-03-06 Thread M Kelly
Hi, I have a vmap for , and it works great. Is there a way to differentiate from ? Or is it just a fact of life that the will always go through the mapping first ? thx for everything vim, -m -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply

Re: viw / how to select a one char word ?

2020-02-05 Thread M Kelly
Hi, Yes, I'll wager this has something to do with my terminal and its terminfo capabilities. thx, -m On Monday, February 3, 2020 at 8:45:14 AM UTC-5, Tony Mechelynck wrote: > > On Mon, Feb 3, 2020 at 2:33 PM M Kelly > > wrote: > > > > Hi, > > >

join() a list with a newline char for an echo

2020-02-06 Thread M Kelly
Hi, If I have a list [ one, two, three ] is there a way to turn it into a single string with newlines after each element ? Such that an echo mylist would show it as mulitple lines, ie: one two three I have tried join( mylist, "\n") but it uses ^@ and "\r" uses ^M thx for everything vim, -m --

Re: viw / how to select a one char word ?

2020-02-03 Thread M Kelly
of cmds that always works. It is also weird the difference between my vim and with -u NONE about the viw. thx, -m On Monday, February 3, 2020 at 6:55:32 AM UTC-5, Boyko Bantchev wrote: > > On Mon, 3 Feb 2020 at 13:16, M Kelly > > wrote: > > > > Hi, > > > > Is t

viw / how to select a one char word ?

2020-02-03 Thread M Kelly
Hi, Is there a way to select a one char word ? lbve or viw or ? All my attempts seem to continue on to the beginning (or end) of the next word. Is it that a 'word' cannot be a single char ? thx for everything vim, -m -- -- You received this message from the "vim_use" maillist. Do not

Re: viw / how to select a one char word ?

2020-02-03 Thread M Kelly
wrote: > > On Mon, Feb 3, 2020 at 12:17 PM M Kelly > > wrote: > > > > Hi, > > > > Is there a way to select a one char word ? > > lbve or viw or ? All my attempts seem to continue on to the beginning > (or end) of the next word. > > Is it th

Re: viw / how to select a one char word ?

2020-02-03 Thread M Kelly
UTC-5, M Kelly wrote: > > Hi, > > Yes, thanks. > I was looking for a consistent way to select the whole word the cursor is > on, no matter how many chars it is. > This could then become a new mapping or mouse double-click etc. > > It seems viw, vaw, lbve are all goo

Re: join() a list with a newline char for an echo

2020-02-06 Thread M Kelly
; > On Friday, February 7, 2020 at 7:53:02 AM UTC+13, M Kelly wrote: > > > I have tried join( mylist, "\n") but it uses ^@ and "\r" uses ^M > > works fine for me, vim, gvim, and vim --clean. > > :let l = ["one", "two", "three&quo

Re: nested expr in a mapping

2020-02-14 Thread M Kelly
Hi, ok, thank you. I always thought there had to be quotes around each block, as in () ? 'foo' : 'bar' So I was trying \' and \\' and \" and \\" and extra quotes for each additional nested block to no success. I will remove all quotes and see if I can get it to work. take care, -m -- -- You

Re: nested expr in a mapping

2020-02-13 Thread M Kelly
Hi, I suppose I can call a function to do this :-) -m -- -- 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 http://www.vim.org/maillist.php --- You received this message because you are

Re: substitute() regex trim last newline from register ?

2020-01-15 Thread M Kelly
Tim, hi ok, awesome. I think this works now - "aygv:let @* = substitute(@a, "\\_s\\+$", "", "") thx so much! -m On Wednesday, January 15, 2020 at 8:47:54 PM UTC-5, Tim Chase wrote: > > On 2020-01-15 17:29, M Kelly wrote: > > Hi, > >

Re: substitute() regex trim last newline from register ?

2020-01-15 Thread M Kelly
if I could regex trim the last newline of "* or of "a and put it into "* thanks always for your help, -m On Wednesday, January 15, 2020 at 8:44:44 PM UTC-5, Tony Mechelynck wrote: > > On Thu, Jan 16, 2020 at 2:29 AM M Kelly > > wrote: > > > > H

substitute() regex trim last newline from register ?

2020-01-15 Thread M Kelly
Hi, In visual-line mode when I yank to the * register and then outside of vim paste - I am getting a newline at the end of the selection. This does not happen in visual block or char mode. Does anyone know of a way to load into * reg the same selection but have the last newline trimmed off ? ie

Re: substitute() regex trim last newline from register ?

2020-01-18 Thread M Kelly
Tony, hi I ended up using getregtype("*") along with the @*=substitute() to get a perfect solution for my use. Thank you again for this info. take care, -m On Wednesday, January 15, 2020 at 11:53:24 PM UTC-5, Tony Mechelynck wrote: > > On Thu, Jan 16, 2020 at 3:08 AM M

Re: 3-LeftMouse ques

2020-03-06 Thread M Kelly
Hi, I think I can work around it, but I suppose I was asking if these events are like a key mapping with ttimeoutlen etc. Like if we received 2 events but not the 3rd in a small amout of time then it does the 2 mapping and if it receives the 3rd within the timeout then it does the 3 mapping ?

Re: vmap inline conditional ques

2020-04-08 Thread M Kelly
Andy, hi Wow, so cool. All I can say is incredible. I learn so much from the great people and replies here. take care, -m -- -- 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: vmap inline conditional ques

2020-04-08 Thread M Kelly
Thank you again Andy. I'm going to refactor some of my other routines now that I learned your better way to do these sort of things. -m -- -- 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

vmap inline conditional ques

2020-04-07 Thread M Kelly
Hi, Is there a way to do an inline conditional such as for demonstration: vnoremap':let [line_start, col_start] = getpos("v")[1:2] :let [line_end, col_end] = getpos(".")[1:2] (line_end > line_start) ? "ge" : "b"' I can do something in a function but that has several exe 'normal ...'

new from nofile ?

2020-04-09 Thread M Kelly
Hi again, If my buftype=nofile then I cannot seem to create a new window with new or vnew, ok. I can change my buftype and then call new. Is there a special way to create a new regular buffer in a split from a nofile buffer ? Or a way to restore the old buftype for the orig buffer right after

Re: new from nofile ?

2020-04-09 Thread M Kelly
Hi, ok, I think I can use: call setbufvar(prev_bufid, "", "nofile") to set it back. thx, -m -- -- 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 http://www.vim.org/maillist.php --- You

Re: visual select in Co mode ?

2020-03-25 Thread M Kelly
Hi, To be clear I do not mean the colour of highlighing anything in the command-line. I mean highlighing other text above the command-line. Like for example if you were to enter command-mode with a '/' and then use the mouse to highlight some text above to then paste in the command-line. thx,

visual select in Co mode ?

2020-03-25 Thread M Kelly
Hi, My visual selection works great in normal, visual and insert modes, but when I enter command mode via a '/' or ':' then I can no longer select with the mouse the same way. It seems as tho I am using x selection (ie like shift+mouse) instead of visual selection. I tried changing imaps to

Re: visual select in Co mode ?

2020-03-25 Thread M Kelly
Hi, What colour would the highlighting be when in command-mode ? It is not the same as hi Visual setting. thx, -m -- -- 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: visual select in Co mode ?

2020-03-25 Thread M Kelly
Hi, Thank you Tony. -m -- -- 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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups

Re: visual select in Co mode ?

2020-03-25 Thread M Kelly
Hi, I added: set clipboard^=autoselectml guioptions+=A and now I can drag/double click and paste to the command-line. Would be cool if the highlight colour matched visual but no problem :-) thanks again always for all your great info and help, -m -- -- You received this message from the

Re: visual mode popup menu ?

2020-04-30 Thread M Kelly
Andy, hi I think it does work if I add the exe normal gv in the popup func. cool! thx, -m -- -- 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 http://www.vim.org/maillist.php --- You

Re: visual mode popup menu ?

2020-04-30 Thread M Kelly
Andy, hi again I was thinking of something like - call popup_menu(g:menulist, #{ title: 'MyMenuTitle:', filter: 'MyFilter', callback: 'MyCallback' }) I would highlight some code and then press a key to trigger the popup menu and select some option from that menu, but when the menu pops I

visual mode popup menu ?

2020-04-26 Thread M Kelly
Hi, Is there a way to be in visual mode with some text highlighted and popup a menu and keep the highlighted text during and after the popup menu ? thx, -m -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For

clipbaord internals ques

2020-05-17 Thread M Kelly
Hi, Just curious, what is the mechanism by which vim saves to the clipboard ? For example if I am on a X11 system but in termnal vim and I have clipboard set to unnamed and I highlight in visual mode some lines and then y(ank) them - does vim use OSC 52 ? Or does it (even tho its the terminal)

popup_menu and mouse item select ??

2020-05-10 Thread M Kelly
Hi, When using popup_menu / popup_create, is it possible to use the mouse to select an item ? My filter has: ``` if a:key == 'q' || a:key == 'x' || a:key == '\' || a:key == '\' call popup_close(a:id, 0) return 1 elseif a:key == "\" ``` But I never receive the mouse key

Re: viminfo do not save registers, but clipboard still set at startup ?

2020-06-05 Thread M Kelly
Hi, Tony, thanks always for your info. My point is the X11 selection and clipboard are empty and my viminfo does not contain any register info, yet after starting vim the + and * regsiters contain info. This seems a bit odd to me since: 1). I did not save register info and I've confirmed my

  1   2   >