rectangular (block) paste from clipboard ?
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 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: terminal - back to terminal from normal ?
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 --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
terminal - back to terminal from normal ?
Hi, When in a terminal I can door 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 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: terminal - back to terminal from normal ?
> 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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
mapping ?
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 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: mapping ?
> 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 information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
vim quit except when terminal(s) active
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 -- -- 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: vim quit except when terminal(s) active
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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
autocmd terminal set signcolumn=no
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 set signcolumn to no for new terminals ? If I manually, once already in the terminal, use :set signcolumn=no then I do not get the sign column when switching into normal mode for this terminal. 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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: autocmd terminal set signcolumn=no
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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
execute "conf qa" or ":conf qa"
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 I had thought the execute was being performed in 'normal' mode. But it seems to work without the colon, at least in some places. 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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: terminal mode bracketed paste ?
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 so much for vim, and thanks to everyone for all their support, -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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
terminal mode normal mode mapping ?
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 this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: terminal mode bracketed paste ?
> 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~" > endif Thank you, works great :-) 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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: terminal mode bracketed paste ?
> 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 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: terminal mode bracketed paste ?
> 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 TERM=screen-256color (all from within tmux) 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 this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: terminal mode normal mode mapping ?
> 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. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
terminal mode bracketed paste ?
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 possible ? Is there a config setting I can enable ? Any help appreciated. 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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: execute "conf qa" or ":conf qa"
> 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. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
vimdiff exit when files are identical?
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 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: vimdiff exit when files are identical?
> 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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: :terminal mode ques
> > 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 > non-vim shell I can type cd then click on a dir with the mouse and click > again to paste and its there. In vim terminal mode I would like to do the > same, if it is at all possible I am not sure. In a vim terminal I can type > cd then c-\ c-n then hold the mouse and drag across the dir then type i/a > then paste but it would be really awesome if I could use typical shell/term > mouse events when in vim terminal mode. Maybe go into visual mode (ie c-\ c-n) with a mouse click and then go back to terminal mode with another click ?? -- -- 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
timer / job / window / tab
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 'stream' of these timers and variables. Can I start a timer for each BufReadPost,BufNewFile,FileReadPost ? And then have a w: or t: variable for reading from each channel ? Anyone done anything similar that has suggestions ? thx -- -- 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: :terminal mode ques
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 their work and help, -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 --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: :terminal mode ques
> 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 non-vim shell I can type cd then click on a dir with the mouse and click again to paste and its there. In vim terminal mode I would like to do the same, if it is at all possible I am not sure. In a vim terminal I can type cd then c-\ c-n then hold the mouse and drag across the dir then type i/a then paste but it would be really awesome if I could use typical shell/term mouse events when in vim terminal mode. thx -- -- 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
:terminal mode ques
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 how would I switch from one to the other ? (ie I don't want tiled windows but just one and switch between them with a shortcut key) thanks for any insight, -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 --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: :terminal mode ques
> 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 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
if only true in first file ?
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" status, but my git stuff. Any idea why if does not work for the second file window ? thx always for vim and your support, -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 --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: if only true in first file ?
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 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
count folds ?
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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: :Termdebug config/startup to hide debugged program window
> 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 -- -- 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: :Termdebug config/startup to hide debugged program window
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 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 > > -- > -- > 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 a topic in the > Google Groups "vim_use" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/vim_use/QSfpGkv3uKk/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > vim_use+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
:Termdebug config/startup to hide debugged program window
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 -- -- 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
yank to reg intermittent problem
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 until once in a while does not. Any ideas ? Any suggestions for debugging ? Where in the code does the copy to + reg occur ? thx as 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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: display warning msg a little longer or until another keypress
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 or keypress to continue 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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: mappings when in vim from terminal not the same
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 tmaps active in that vim in its normal mode - or it acts that way. Anyway, it may be too much to bother with, but it was interesting. 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 this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
remap C-\ to a different C- key ?
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 this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: remap C-\ to a different C- key ?
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" 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: remap C-\ to a different C- key ?
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 then I get the same functionality from a different key sequence and the window mgr can grab C-\ all it wants. thx so much for your help, -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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: remap C-\ to a different C- key ?
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 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: remap C-\ to a different C- key ?
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 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: search file for text in reg ?
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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: mappings when in vim from terminal not the same
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 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
search file for text in reg ?
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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: search file for text in reg ?
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 subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Talks on VimConf2018 are now published here.
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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: :wn to :x like map/abbrev ?
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 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
:wn to :x like map/abbrev ?
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 always 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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: :wn to :x like map/abbrev ?
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! 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
mappings when in vim from terminal not the same
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 this does not work. Anyone have an idea ? Could some tmaps cause conflicts ?? Note this mapping does work ok if in normal mode from terminal. It just does not work inside vim when its started from terminal. thx always for the wonderful vim universe, -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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: C-v to toggle between v-block/visual ?
> 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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: C-v to toggle between v-block/visual ?
> 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 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: C-v to toggle between v-block/visual ?
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 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
C-v to toggle between v-block/visual ?
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 for the vim universe, -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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
display warning msg a little longer or until another keypress
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 disappears so fast that I didn't realize I wrapped until I see the line numbers, etc. Does anyone know of a way to get the warning msg to display a little longer or require an additional n/N or some such keypress to then continue on ? thx 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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
vimdiff + wrap line alignment
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 is only as long as the window width and not as long as the other window's new line ?? Anyone have any suggestion for keeping file lines aligned with wrap on in vimdiff ? thx as 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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
scrolljump and paste ?
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 'p' to set scrolljump=1 then p again ? thx for all things vim, -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 --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/f45c1434-05e6-479f-aed5-6d5745ac5253%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: scrolljump and paste ?
> 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 p :call MyPaste() endfunction nnoremap p :call MyPaste() 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 this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/0579b9ba-3bf9-43c0-bd5e-a9cec6e3bb00%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: scrolljump and paste ?
> :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 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/39251b0e-80af-4e7a-be7f-38536b4971cf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: mutex ?
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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/ce46d4fa-6226-4dcd-b98a-70889bc8534c%40googlegroups.com.
mutex ?
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 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/8ae59a73-3184-4c9d-b6b0-de5af2b30999%40googlegroups.com.
Re: mutex ?
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 because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/efe8dd3d-6628-440d-a656-fd02cc60fd4e%40googlegroups.com.
Failed to parse vim.desktop file msgs
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 this warning with gvim even though there is a very similar gvim.desktop file in the same dir. I am installing from master and the /usr/local/share/applications/vim.desktop file gets copied there from make install I am on ubuntu 16.04 with newer kernel. gnome-software verson is: 3.20.5 thanks for all 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 this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/75ad70e2-6de0-4806-bbcc-3e8b92c4ff63%40googlegroups.com.
Re: Failed to parse vim.desktop file msgs
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 --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/dff1f7c1-3820-4c4a-b0df-7a22106025f5%40googlegroups.com.
CursorHoldV ?
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 way to determine if there was a keypress or cursor movement whilst in visual-mode ? thanks 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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/1f9fa367-93f5-4442-9536-6e1a34cb21ff%40googlegroups.com.
Re: cmdline regex ques
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, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/a2a39da7-2d91-4fd5-94f2-70951e31b29a%40googlegroups.com.
cmdline regex ques
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()' : 'q!' But this clearly isn't right because the q! cmd is picked up by the q here. I think we need an exact match on the string between whitespace ? thx 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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/1420c08c-f339-4eb6-963e-41281cba7f61%40googlegroups.com.
Re: cmdline regex ques
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 to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/fa354de4-232d-44a0-9b25-91148f657617%40googlegroups.com.
nested expr in a mapping
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 for a 2nd level embed ...) ... ? thx as always, -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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/da6436ec-0159-4364-8ab0-90e9b075764d%40googlegroups.com.
3-LeftMouse ques
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 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/52828a28-339c-457b-ad64-16fd36d71f48%40googlegroups.com.
Re: viw / how to select a one char word ?
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, > > > > ok I found my error and fixed it. It was in a bad vmap I had for iw > > Thank you all, as always, for the info. > > Now I think 'viw' works well for me in all cases :-) > > I wish the one char word, when selected, changed colour but not a > problem. > > In my gvim the one-character visually selected word's Visual highlight > is visible during the "off" phase of the blinking cursor; and with > 'showcmd' on the number of characters (and bytes, if different) in the > selection is displayed near bottom right of the Vim screen. > > Best regards, > Tony. > -- -- 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/3f324d66-cb05-4088-a500-142d901d9345%40googlegroups.com.
join() a list with a newline char for an echo
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 -- -- 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/abac3a43-a328-402d-bdca-635f430d665c%40googlegroups.com.
Re: viw / how to select a one char word ?
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 good and work most of the time, but I cannot seem to find one set 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 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 ? > > If you are in a normal mode, typing ‘v’ (visually) selects the > character under the cursor. > Then, typing ‘y’ will yank that character (and take you back to the > normal mode). > Or instead, type ‘yl’ to the same end. > Either way you will have the character stored in the unnamed register. > Is this what you need? > -- -- 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/58a6756f-9851-4f5a-bf6d-f6094c333b92%40googlegroups.com.
viw / how to select a one char word ?
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 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/b72be123-6911-49bb-bae5-feae15f173a4%40googlegroups.com.
Re: viw / how to select a one char word ?
Tony, hi I have selection=inclusive. For me, if there is a sentence - a few words and my cursor is on the 'a' and I am in normal mode and I press 'viw' I get 'a f' visually highlighted/selected. It must be some plugin / mapping then, sorry. I just tried again with - vim -u NONE and now 'viw' will only include the 'a' - although the cursor does not change color indicating the selection. I am very curious where/how this is altered and will have to dig through my .vimrc and plugins. thx again for your help, mark On Monday, February 3, 2020 at 6:33:16 AM UTC-5, Tony Mechelynck 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 that a 'word' cannot be a single char ? > > > > thx for everything vim, > > -m > > When I do viw with the cursor on a one-letter word, that one-letter > word becomes visually selected. What is 'selection' set to? (":verbose > set sel?" will tell you the value and — if other than by default or > from the keyboard — where it was set.) > > My vimrc includes the following, BTW: > " :behave tonymec > if exists('+selectmode') > set slm=mouse,key > endif > if exists('+mousemodel') > set mousemodel=popup > endif > if exists('+keymodel') > set keymodel=startsel > endif > if exists('+selection') > set selection=inclusive > endif > > Best regards, > Tony. > -- -- 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/6999c838-0779-4fc2-bada-a6dd2a56a649%40googlegroups.com.
Re: viw / how to select a one char word ?
Hi, ok I found my error and fixed it. It was in a bad vmap I had for iw Thank you all, as always, for the info. Now I think 'viw' works well for me in all cases :-) I wish the one char word, when selected, changed colour but not a problem. take care, -m On Monday, February 3, 2020 at 7:03:18 AM 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 good and work most of the time, but I > cannot seem to find one set 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 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 ? >> >> If you are in a normal mode, typing ‘v’ (visually) selects the >> character under the cursor. >> Then, typing ‘y’ will yank that character (and take you back to the >> normal mode). >> Or instead, type ‘yl’ to the same end. >> Either way you will have the character stored in the unnamed register. >> Is this what you need? >> > -- -- 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/cd2c245d-5af3-4d74-b211-b414828f3242%40googlegroups.com.
Re: join() a list with a newline char for an echo
Hi, I agree that works - but my list is from a ch_read() and has ^@ (NL) at the end of each element and I just cannot seem to get this work. The join("\n") just puts the ^@ back everywhere. thx tho, -m On Thursday, February 6, 2020 at 6:35:57 PM UTC-5, John Little wrote: > > 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"] > :echo join(l, "\n") > one > two > three > Press ENTER or type command to continue > > Maybe you're on MS Windows? Used single quotes? Have some settings > causing trouble? (try with vim --clean). > > HTH, John Little > > -- -- 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/b5908d0a-4191-4347-a55c-b95266e78945%40googlegroups.com.
Re: nested expr in a mapping
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 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/16fe93d4-4447-457a-a9f0-1fd0a856745d%40googlegroups.com.
Re: nested expr in a mapping
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 subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/fc4865e6-2357-4a8c-ae7c-c5fe7796b27a%40googlegroups.com.
Re: substitute() regex trim last newline from register ?
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, > > > > 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 something like: > > let @* = substitute(@a, "\(.*\)\\n/\1/", "", "") > > Pretty sure you're 99% of the way there: > > let @+ = substitute(@a, '\n\+$', '', '') > > If you want all potential trailing whitespace (spaces, tabs, and > newlines) > > let @+ = substitute(@a, '\_s\+$', '', '') > > should do the trick. > > -tim > > > > -- -- 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/80727860-1e5c-4c05-9b4f-c4a638d98f32%40googlegroups.com.
Re: substitute() regex trim last newline from register ?
Tony, hi ok, thanks. I can use 0 v $ y. But V y is handy/quick ... Inside of vim its all great, V works perfectly - its just I wanted to automatically remove the last newline from "* if possible, so that a V y and then outside of vim paste doesn't have the extra newline. I just wondered 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: > > > > 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 something like: > > let @* = substitute(@a, "\(.*\)\\n/\1/", "", "") > > > > thx for everything vim, > > -m > > When yanking linewise, what you get is lines, and each of them has a > proper end-of-line. This way, when you paste it, it will be pasted > linewise, with line breaks between it and whatever happens before and > after it. > > To yank without an end-of-line at the end, yank characterwise from the > first character of the first desired line (or from the first character > you want to yank even if it is in the middle of a line) to the last > character you want to yank. This way, if you paste in the middle of a > line, you won't get line breaks before and after the pasted text. > > See also :help setreg() > > Best regards, > Tony. > -- -- 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/9b5f482a-1037-4c4d-8ed3-252cf2f2b501%40googlegroups.com.
substitute() regex trim last newline from register ?
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 something like: let @* = substitute(@a, "\(.*\)\\n/\1/", "", "") thx 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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/5811a14e-257e-4048-8639-beebcd1c5af6%40googlegroups.com.
Re: substitute() regex trim last newline from register ?
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 Kelly > > wrote: > > > > Tony, hi > > > > ok, thanks. I can use 0 v $ y. But V y is handy/quick ... > > Inside of vim its all great, V works perfectly - its just I wanted to > automatically remove the last newline from "* if possible, > > so that a V y and then outside of vim paste doesn't have the extra > newline. > > I just wondered if I could regex trim the last newline of "* or of "a > and put it into "* > > > > thanks always for your help, > > -m > > What's wrong with > :call setreg('*', getreg('*'), 'c') > (see "see also" at he end of my previous message)? > > Best regards, > Tony. > > > > 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: > >> > > >> > 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 something like: > >> > let @* = substitute(@a, "\(.*\)\\n/\1/", "", "") > >> > > >> > thx for everything vim, > >> > -m > >> > >> When yanking linewise, what you get is lines, and each of them has a > >> proper end-of-line. This way, when you paste it, it will be pasted > >> linewise, with line breaks between it and whatever happens before and > >> after it. > >> > >> To yank without an end-of-line at the end, yank characterwise from the > >> first character of the first desired line (or from the first character > >> you want to yank even if it is in the middle of a line) to the last > >> character you want to yank. This way, if you paste in the middle of a > >> line, you won't get line breaks before and after the pasted text. > >> > >> See also :help setreg() > >> > >> Best regards, > >> Tony. > > > > -- > > -- > > 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 "vim_use" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to vim...@googlegroups.com . > > To view this discussion on the web visit > https://groups.google.com/d/msgid/vim_use/9b5f482a-1037-4c4d-8ed3-252cf2f2b501%40googlegroups.com. > > > -- -- 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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/df776c0a-bee4-4171-a456-0fa3cfff06fa%40googlegroups.com.
Re: 3-LeftMouse ques
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 ? 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 this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/5fe58071-5ba7-4633-8ed2-c6c5e09e222e%40googlegroups.com.
Re: vmap inline conditional ques
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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/23402299-2f9c-4214-ae24-b0cda1f4b1df%40googlegroups.com.
Re: vmap inline conditional ques
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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/d32de68c-edcb-4677-bb11-97d2dc2c3bcc%40googlegroups.com.
vmap inline conditional ques
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 ...' statements and thus does not draw smoothly. It seems I cannot get past the :let part. thx for any help and everything vim, stay safe everyone during this mess, -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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/cbb3dc1e-ec0f-4c0e-8211-fbddfc9329a9%40googlegroups.com.
new from nofile ?
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 changing it and issuing the new ? thx, 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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/ea79decd-a761-4385-a8f5-f32ef09ec264%40googlegroups.com.
Re: new from nofile ?
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 received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/cd78d143-5a17-46fb-9fbf-a5d297f5d331%40googlegroups.com.
Re: visual select in Co mode ?
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, -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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/2c612a6f-a7f2-4240-ab73-a36cff7f41f8%40googlegroups.com.
visual select in Co mode ?
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 lmaps but no difference. Is this expected / the way it must be ? 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 this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/5b965dc6-edb0-4373-9eaf-ce6c9cc5211f%40googlegroups.com.
Re: visual select in Co mode ?
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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/eafa1016-b83c-4eaf-a365-11e9bc80140a%40googlegroups.com.
Re: visual select in Co mode ?
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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/9e8fbe55-8ab4-4ffb-93f5-1c86a0aec0e8%40googlegroups.com.
Re: visual select in Co mode ?
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 "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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/8d94a09c-910f-48dd-b551-8de251a8d9d5%40googlegroups.com.
Re: visual mode popup menu ?
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 received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/bd143494-6e0f-453c-82aa-173306fa258e%40googlegroups.com.
Re: visual mode popup menu ?
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 didn't want to lose the visual highlighting. Perhaps I can do something like exe normal gv as part of the popup ?? I wasn't thinking of vmenu - is that available at the cursor location ? I will read up on it. 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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/29ce641c-b422-4023-99e5-1bf3eb84aaf0%40googlegroups.com.
visual mode popup menu ?
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 more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/2c64134b-229e-421d-b1c9-0aef4a40bd6e%40googlegroups.com.
clipbaord internals ques
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) use X11 to update the PRIMARY ? I will try to figure this out from the code but just wondered if anyone knew this already. thx as always for all things 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 this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/46477ad4-19f1-4ff3-931e-dc36b93b6411%40googlegroups.com.
popup_menu and mouse item select ??
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 event/selection. I can close the menu on the 'X' with a click. I was figuring if I received a mouse 'key' then I could get the geom and calclate which item was chosen ? Is this even possible ? thx for any help, as always, to everyone in the vim community, -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 "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/a5d4d9b6-b6c9-4f7d-94c8-a4b007346e19%40googlegroups.com.
Re: viminfo do not save registers, but clipboard still set at startup ?
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 viminfo does not have any register info in it. 2). the X11 selection and clipboard were empty before starting vim and I've comfirmed that via xsel/xclip/etc. It just seems a mystery to me how these two registers get filled. I'll keep looking, even if just for my own curiosity :-) If you clear out your X11 selection and primary and then start vim without a viminfo, are your * and + set with some info ? It must be some other history/undo or something I am missing. 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 http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/1398d618-e6e0-410a-8307-784a54509a13o%40googlegroups.com.