Hi Sempuco,
On Sat, 28 May 2022 07:09:15 -0700 (PDT)
Sempuco <reapercockos5@gmail.com> wrote:
> ?
>
on the console, i like nvim a little better than vim, but I usually use gvim
rather than nvim-qt [because it has menus / etc].
--
Shlomi Fish https://www.shlomifish.org/
https://shlomifishswiki.branchable.com/Encourage_criticism_and_try_to_get_offended/
If Chuck Norris had dropped his toasts, they would have fallen on the dry
side, so they would have stayed on his good side. But Chuck Norris never
drops toasts. (ZadYree and Shlomi Fish)
— https://www.shlomifish.org/humour/bits/facts/Chuck-Norris/
Please reply to list if it's a mailing list post - https://shlom.in/reply .
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220529054348.152ee3ce%40shlomifish.org.
Saturday, May 28, 2022
Vim or Neovim which one for new user?
? --
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/484878b4-8159-4d54-bee4-2b8faec1e2c4n%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/484878b4-8159-4d54-bee4-2b8faec1e2c4n%40googlegroups.com.
Tuesday, May 24, 2022
Re: Json inline format
Sorry Marc to answer quite times after..
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/0bf86c34-bdf3-47d9-a98c-0a4faad348f4n%40googlegroups.com.
I have solved my need by pure VimL autocommand and vim9 func.
autocmd BufEnter *.json g:FormatJson()
def g:FormatJson() # {{{
if ( line('$') == 1 ) # when json is not expanded
silent! :%s/\("\w\+":\)\({\|\("[^"]\+"\(}*,\)\)\)/\1 \2/g
silent! :%s/\(},\)/\1/g
silent! :%s/\(^{\)/\1/g
silent! :%s/\("[^"]\+"\)}/\1}/g
silent! :%s/\(}\)}/\1}/g
silent! norm gg=GG1G
else
# silent! norm ggVG1J just for debug
endif
enddef # }}}
if ( line('$') == 1 ) # when json is not expanded
silent! :%s/\("\w\+":\)\({\|\("[^"]\+"\(}*,\)\)\)/\1 \2/g
silent! :%s/\(},\)/\1/g
silent! :%s/\(^{\)/\1/g
silent! :%s/\("[^"]\+"\)}/\1}/g
silent! :%s/\(}\)}/\1}/g
silent! norm gg=GG1G
else
# silent! norm ggVG1J just for debug
endif
enddef # }}}
Le samedi 7 mai 2022 à 23:58:09 UTC+2, Marc Chantreux a écrit :
> Thank you Paul, I don't want third part.
you mean you want a pure viml solution? what's the point?
regards,
marc
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/0bf86c34-bdf3-47d9-a98c-0a4faad348f4n%40googlegroups.com.
Sunday, May 22, 2022
Re: scrolling during search
On 2022-05-22, Bram Moolenaar wrote:
>> I thought maybe I could fix this with autocommands, but I can't get it
>> to work, e.g.. I thought this might work:
>>
>> autocmd CmdlineEnter / mark S
>> autocmd CmdlineChanged * normal g`S
>>
>> But that doesn't do anything, any ideas?
>
> Not sure if there is a way to do this currently. There actually is code
> to restrict the matches to a line range, it is used for a command like
> ":1,30s/pat". So you could somehow fill in the line numbers at the top
> and bottom of the window, type the pattern, then remove the text before
> the pattern when starting to search. But that's an ugly hack.
Hah! I guess you mean something like this:
nno / :call feedkeys(":" . line('w0') . "," . line('w$') . "s /")<CR>
cnoremap <expr> <CR> (getcmdline() =~ '^\d\+,\d\+s /' ? "<Home><S-Right><C-U><Del><CR>" : "<CR>")
It's a bit scary, but it does sorta work! Do you think that will break
anything?
>
> I'm not against adding an option for this, but we currently have no
> option to change how 'incsearch' works. Adding Yet Another Option?
>
Naturally, I vote yes :)
Tavis.
--
_o) $ lynx lock.cmpxchg8b.com
/\\ _o) _o) $ finger taviso@sdf.org
_\_V _( ) _( ) @taviso
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/t6e9b5%24nf2%241%40ciao.gmane.io.
>> I thought maybe I could fix this with autocommands, but I can't get it
>> to work, e.g.. I thought this might work:
>>
>> autocmd CmdlineEnter / mark S
>> autocmd CmdlineChanged * normal g`S
>>
>> But that doesn't do anything, any ideas?
>
> Not sure if there is a way to do this currently. There actually is code
> to restrict the matches to a line range, it is used for a command like
> ":1,30s/pat". So you could somehow fill in the line numbers at the top
> and bottom of the window, type the pattern, then remove the text before
> the pattern when starting to search. But that's an ugly hack.
Hah! I guess you mean something like this:
nno / :call feedkeys(":" . line('w0') . "," . line('w$') . "s /")<CR>
cnoremap <expr> <CR> (getcmdline() =~ '^\d\+,\d\+s /' ? "<Home><S-Right><C-U><Del><CR>" : "<CR>")
It's a bit scary, but it does sorta work! Do you think that will break
anything?
>
> I'm not against adding an option for this, but we currently have no
> option to change how 'incsearch' works. Adding Yet Another Option?
>
Naturally, I vote yes :)
Tavis.
--
_o) $ lynx lock.cmpxchg8b.com
/\\ _o) _o) $ finger taviso@sdf.org
_\_V _( ) _( ) @taviso
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/t6e9b5%24nf2%241%40ciao.gmane.io.
Re: scrolling during search
Tavis Ormandy wrote:
> Hello! I quite like the combination of incsearch and hlsearch, but hate
> the way it scrolls the screen to matches -- I only want the hilights
> without the scrolling.
>
> I thought maybe I could fix this with autocommands, but I can't get it
> to work, e.g.. I thought this might work:
>
> autocmd CmdlineEnter / mark S
> autocmd CmdlineChanged * normal g`S
>
> But that doesn't do anything, any ideas?
Not sure if there is a way to do this currently. There actually is code
to restrict the matches to a line range, it is used for a command like
":1,30s/pat". So you could somehow fill in the line numbers at the top
and bottom of the window, type the pattern, then remove the text before
the pattern when starting to search. But that's an ugly hack.
I'm not against adding an option for this, but we currently have no
option to change how 'incsearch' works. Adding Yet Another Option?
--
hundred-and-one symptoms of being an internet addict:
268. You get up in the morning and go online before getting your coffee.
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220522193724.5B0611C06D7%40moolenaar.net.
> Hello! I quite like the combination of incsearch and hlsearch, but hate
> the way it scrolls the screen to matches -- I only want the hilights
> without the scrolling.
>
> I thought maybe I could fix this with autocommands, but I can't get it
> to work, e.g.. I thought this might work:
>
> autocmd CmdlineEnter / mark S
> autocmd CmdlineChanged * normal g`S
>
> But that doesn't do anything, any ideas?
Not sure if there is a way to do this currently. There actually is code
to restrict the matches to a line range, it is used for a command like
":1,30s/pat". So you could somehow fill in the line numbers at the top
and bottom of the window, type the pattern, then remove the text before
the pattern when starting to search. But that's an ugly hack.
I'm not against adding an option for this, but we currently have no
option to change how 'incsearch' works. Adding Yet Another Option?
--
hundred-and-one symptoms of being an internet addict:
268. You get up in the morning and go online before getting your coffee.
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220522193724.5B0611C06D7%40moolenaar.net.
scrolling during search
Hello! I quite like the combination of incsearch and hlsearch, but hate
the way it scrolls the screen to matches -- I only want the hilights
without the scrolling.
I thought maybe I could fix this with autocommands, but I can't get it
to work, e.g.. I thought this might work:
autocmd CmdlineEnter / mark S
autocmd CmdlineChanged * normal g`S
But that doesn't do anything, any ideas?
Thanks!
--
_o) $ lynx lock.cmpxchg8b.com
/\\ _o) _o) $ finger taviso@sdf.org
_\_V _( ) _( ) @taviso
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/t6e0nf%24g6i%241%40ciao.gmane.io.
the way it scrolls the screen to matches -- I only want the hilights
without the scrolling.
I thought maybe I could fix this with autocommands, but I can't get it
to work, e.g.. I thought this might work:
autocmd CmdlineEnter / mark S
autocmd CmdlineChanged * normal g`S
But that doesn't do anything, any ideas?
Thanks!
--
_o) $ lynx lock.cmpxchg8b.com
/\\ _o) _o) $ finger taviso@sdf.org
_\_V _( ) _( ) @taviso
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/t6e0nf%24g6i%241%40ciao.gmane.io.
Thursday, May 19, 2022
Prevent lines from being unwrapped when the lines end with a certain character/pattern
Hello,
-- I was trying to find a way to have vim keep lines broken (i.e., not unwrap with auto format) when the lines ended with a certain character. For example, with Latex script, it's desirable to have:
This is a line. \\
Designation \\
Affiliation \\
I have formatoptions set to `tcqan` because I do need auto-formatting everywhere else and in general. However, with such options, vim would auto-format the above to:
This is a line. \\ Designation \\ Affiliation \\
My current approach is to switch into and out of `paste` mode when editing such lines to prevent unwrapping but it'd be convenient if this is automatically taken care of with some setting.
Thanks,
-Uday
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CALA1MBKuBDjX9TarxZwy-59WXFLwDBydXvrzLc_sf%2B47Ls70mQ%40mail.gmail.com.
Re: Lua vim indentation
OK issue indenting due to comment after and on same mine of function déclarés.
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/67bc179a-ccca-45f5-94f1-b0c2425f15afn%40googlegroups.com.
The second syntax formed enable good indenting.
function matchPattern(line, pattern) -- {{{
local x=line:match(pattern)
if x~=nil then
return ownsplit(x, '=')
end
end -- }}}
function matchPattern(line, pattern)
local x=line:match(pattern)
if x~=nil then
return ownsplit(x, '=')
end
end
local x=line:match(pattern)
if x~=nil then
return ownsplit(x, '=')
end
end -- }}}
function matchPattern(line, pattern)
local x=line:match(pattern)
if x~=nil then
return ownsplit(x, '=')
end
end
Le mercredi 18 mai 2022 à 09:00:28 UTC+2, Ni Va a écrit :
Hi,DON'T HAPPENING to get correct vim lua indentation, is someone can help me ?function trace(t) -- {{{
setmetatable(t,{__index={s="", f=true}})
local s, f =
t[1] or t.s,
t[2] or t.f -- force
if dbgmode then
if f then
print ( os.date('%Y-%m-%d %H-%M-%S: ') .. s )
end
end
end -- }}}
-Thank you.
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/67bc179a-ccca-45f5-94f1-b0c2425f15afn%40googlegroups.com.
Wednesday, May 18, 2022
Lua vim indentation
Hi,
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/058ea44e-9f48-4361-9743-0f133601cae3n%40googlegroups.com.
DON'T HAPPENING to get correct vim lua indentation, is someone can help me ?
function trace(t) -- {{{
setmetatable(t,{__index={s="", f=true}})
local s, f =
t[1] or t.s,
t[2] or t.f -- force
if dbgmode then
if f then
print ( os.date('%Y-%m-%d %H-%M-%S: ') .. s )
end
end
end -- }}}
-
setmetatable(t,{__index={s="", f=true}})
local s, f =
t[1] or t.s,
t[2] or t.f -- force
if dbgmode then
if f then
print ( os.date('%Y-%m-%d %H-%M-%S: ') .. s )
end
end
end -- }}}
-
Thank you.
-- --
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/058ea44e-9f48-4361-9743-0f133601cae3n%40googlegroups.com.
Thursday, May 12, 2022
Re: Vim-Plug’s “PlugInstall” fails
Hi, Eric.
Em qua., 11 de mai. de 2022 às 15:51, Eric Weir <eeweir@comcast.net> escreveu:
Attempting to get Vim-Plug set up in my MacVim installation. I've got the script in ~/vim/autoload and the call to it and my plugins list in my .vimrc. However when I issue PlugInstall the process aborts with this error message:xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Help appreciated. I am a minimally proficient vim user, a writer not coder.
For some executables to run, you need to install Xcode Developer Tools on your Mac. You can do that by typing in a terminal:
$ xcode-select --install
The error shown to you suggests to me that you haven't those tools installed.
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CA%2BJN8RLHbRGrAXAVAUsp0w8z_%2B0ZCaM3ez4-1cFPAob8iSKeug%40mail.gmail.com.
Re: Vim-Plug’s “PlugInstall” fails
at a glance it seems possible you need to install xcode, it is the standard way to bootstrap a lot of standard building-stuff-relevant command line tools that vim-plug probably takes for granted, git for example. I don't have a handy link but it should be easy to search for. Also check the mac's app store.
On Wed, May 11, 2022, 12:51 Eric Weir <eeweir@comcast.net> wrote:
--Attempting to get Vim-Plug set up in my MacVim installation. I've got the script in ~/vim/autoload and the call to it and my plugins list in my .vimrc. However when I issue PlugInstall the process aborts with this error message:xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Help appreciated. I am a minimally proficient vim user, a writer not coder.
----------------------------------------Eric WeirDecatur, GA USA"It has all been combustion."- W.G. Sebald
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/730357F7-A606-47C7-99F5-7680C5440644%40comcast.net.
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJdN7KgJ4dBvhU3QFLGN5pt2WiwuYxt7EcrMVuFRXV7XO1BMqQ%40mail.gmail.com.
Wednesday, May 11, 2022
Mapped doesn't always expand abbreviations
I recently installed Tim Pope's eunuch.vim plugin and soon
discovered that my abbreviations were no longer being expanded when
followed by a <CR>. The eunuch.vim plugin executes a mapping that
maps <CR> to <CR> followed by some processing of the line and tries
to make that mapping and processing invisible to the user unless
some trigger conditions are met.
It appears that a <CR> in the RHS of a straight :imap like this,
:imap <CR> <CR>do_something
expands abbreviations as expected, but in an :inoremap or an ":imap
<script>" mapping, like either of these,
:inoremap <CR> <CR>do_something
:imap <script> <CR> <CR>do_something
typing a <CR> executes the RHS of the mapping but fails to expand an
abbreviation.
To reproduce this without the eunuch.vim plugin, do the following.
Create an abbreviation like this,
:ab st sometext
then type st on a line followed by Enter (a <CR>). The st is
replaced by sometext, as expected:
sometext
Then map <CR> to <CR> followed by some action,
:imap <CR> <CR>dosomething
(in this case, just inserting the text "dosomething" on the next
line) and then type st on a line followed by Enter. The
abbreviation is still expanded first, then the rest of the mapping
is performed, again as expected:
sometext
dosomething
Then map <CR> to <CR> followed by some action using either of these:
:inoremap <CR> <CR>dosomething
:imap <script> <CR> <CR>dosomething
When the abbreviation is typed, followed by Enter, the abbreviation
is no longer expanded before the rest of the mapping is performed,
so the result looks like this:
st
dosomething
Is this a bug or am I missing something?
This happens with Vim versions 8.2.4931 and 8.1.2741 on a system
running Ubuntu 20.04.
Regards,
Gary
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220511210857.GA11054%40phoenix.
discovered that my abbreviations were no longer being expanded when
followed by a <CR>. The eunuch.vim plugin executes a mapping that
maps <CR> to <CR> followed by some processing of the line and tries
to make that mapping and processing invisible to the user unless
some trigger conditions are met.
It appears that a <CR> in the RHS of a straight :imap like this,
:imap <CR> <CR>do_something
expands abbreviations as expected, but in an :inoremap or an ":imap
<script>" mapping, like either of these,
:inoremap <CR> <CR>do_something
:imap <script> <CR> <CR>do_something
typing a <CR> executes the RHS of the mapping but fails to expand an
abbreviation.
To reproduce this without the eunuch.vim plugin, do the following.
Create an abbreviation like this,
:ab st sometext
then type st on a line followed by Enter (a <CR>). The st is
replaced by sometext, as expected:
sometext
Then map <CR> to <CR> followed by some action,
:imap <CR> <CR>dosomething
(in this case, just inserting the text "dosomething" on the next
line) and then type st on a line followed by Enter. The
abbreviation is still expanded first, then the rest of the mapping
is performed, again as expected:
sometext
dosomething
Then map <CR> to <CR> followed by some action using either of these:
:inoremap <CR> <CR>dosomething
:imap <script> <CR> <CR>dosomething
When the abbreviation is typed, followed by Enter, the abbreviation
is no longer expanded before the rest of the mapping is performed,
so the result looks like this:
st
dosomething
Is this a bug or am I missing something?
This happens with Vim versions 8.2.4931 and 8.1.2741 on a system
running Ubuntu 20.04.
Regards,
Gary
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220511210857.GA11054%40phoenix.
Vim-Plug’s “PlugInstall” fails
Attempting to get Vim-Plug set up in my MacVim installation. I've got the script in ~/vim/autoload and the call to it and my plugins list in my .vimrc. However when I issue PlugInstall the process aborts with this error message:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Help appreciated. I am a minimally proficient vim user, a writer not coder.
----------------------------------------
Eric Weir
Decatur, GA USA
eeweir@comcast.net
"It has all been combustion."
- W.G. Sebald
Sunday, May 8, 2022
Re: Auto line break upon reply email
On 2022-05-08 10:45+0200, Christian Brabandt wrote:
>
>On So, 08 Mai 2022, 'Tim Ye' via vim_use wrote:
>
>> On 2022-05-08 10:34+0200, BPJ wrote:
>>
>> > You also have to make sure "t" is in 'formatoptions' (see :h
>> > formatoptions). I forgot that because I always have it. Sorry!
>>
>> Yes I have something like the following setting in my muttrc:
>>
>> set editor = "vim -c 'set comments+=nb:> nocp bg=light tw=72 spell ft=mail formatoptions+=w'"
>
>You do not need that. Make sure you have :filetype plugin on in your
>vimrc, then Vim will automatically detect that you are writing a mail
>from mutt and sets some sensible options. Check
>$VIMRUNTIME/ftplugin/mail.vim for what those are.
>
>This already sets a lot of useful defaults. If you need others, you can
>add additional options by writing them into your
>~/.vim/after/ftplugin/mail.vim (create non-existing directories).
Thank you I'll check them out.
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220508091940.pwx7afd7mpu6eish%40localhost.
>
>On So, 08 Mai 2022, 'Tim Ye' via vim_use wrote:
>
>> On 2022-05-08 10:34+0200, BPJ wrote:
>>
>> > You also have to make sure "t" is in 'formatoptions' (see :h
>> > formatoptions). I forgot that because I always have it. Sorry!
>>
>> Yes I have something like the following setting in my muttrc:
>>
>> set editor = "vim -c 'set comments+=nb:> nocp bg=light tw=72 spell ft=mail formatoptions+=w'"
>
>You do not need that. Make sure you have :filetype plugin on in your
>vimrc, then Vim will automatically detect that you are writing a mail
>from mutt and sets some sensible options. Check
>$VIMRUNTIME/ftplugin/mail.vim for what those are.
>
>This already sets a lot of useful defaults. If you need others, you can
>add additional options by writing them into your
>~/.vim/after/ftplugin/mail.vim (create non-existing directories).
Thank you I'll check them out.
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220508091940.pwx7afd7mpu6eish%40localhost.
Re: Auto line break upon reply email
On So, 08 Mai 2022, 'Tim Ye' via vim_use wrote:
> On 2022-05-08 10:34+0200, BPJ wrote:
>
> > You also have to make sure "t" is in 'formatoptions' (see :h
> > formatoptions). I forgot that because I always have it. Sorry!
>
> Yes I have something like the following setting in my muttrc:
>
> set editor = "vim -c 'set comments+=nb:> nocp bg=light tw=72 spell ft=mail formatoptions+=w'"
You do not need that. Make sure you have :filetype plugin on in your
vimrc, then Vim will automatically detect that you are writing a mail
from mutt and sets some sensible options. Check
$VIMRUNTIME/ftplugin/mail.vim for what those are.
This already sets a lot of useful defaults. If you need others, you can
add additional options by writing them into your
~/.vim/after/ftplugin/mail.vim (create non-existing directories).
Thanks,
Chris
--
F: Was ist golden und fliegt durch die Luft?
A: Maikäfer mit Goldzahn.
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220508084555.GE3822443%40256bit.org.
> On 2022-05-08 10:34+0200, BPJ wrote:
>
> > You also have to make sure "t" is in 'formatoptions' (see :h
> > formatoptions). I forgot that because I always have it. Sorry!
>
> Yes I have something like the following setting in my muttrc:
>
> set editor = "vim -c 'set comments+=nb:> nocp bg=light tw=72 spell ft=mail formatoptions+=w'"
You do not need that. Make sure you have :filetype plugin on in your
vimrc, then Vim will automatically detect that you are writing a mail
from mutt and sets some sensible options. Check
$VIMRUNTIME/ftplugin/mail.vim for what those are.
This already sets a lot of useful defaults. If you need others, you can
add additional options by writing them into your
~/.vim/after/ftplugin/mail.vim (create non-existing directories).
Thanks,
Chris
--
F: Was ist golden und fliegt durch die Luft?
A: Maikäfer mit Goldzahn.
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220508084555.GE3822443%40256bit.org.
Re: Auto line break upon reply email
Please ignore this message, it's duplicated.
Sorry.
On 2022-05-08 11:19+0800, 'Tim Ye' via vim_use wrote:
>Hi,
>
>I noticed that some of the replied emails are auto formatted by user, so
>if the line is longer than, say 72 chars, it'll break into 2 lines
>automatically(?). I'm wondering if it's possible to do this in vim?
>
>My email client is mutt.
>
>Thank you,
>
>- 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+unsubscribe@googlegroups.com.
>To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220508031918.juoz6hoii3bvcavo%40localhost.
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220508084343.nmsaanpteboaspcm%40localhost.
Sorry.
On 2022-05-08 11:19+0800, 'Tim Ye' via vim_use wrote:
>Hi,
>
>I noticed that some of the replied emails are auto formatted by user, so
>if the line is longer than, say 72 chars, it'll break into 2 lines
>automatically(?). I'm wondering if it's possible to do this in vim?
>
>My email client is mutt.
>
>Thank you,
>
>- 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+unsubscribe@googlegroups.com.
>To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220508031918.juoz6hoii3bvcavo%40localhost.
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220508084343.nmsaanpteboaspcm%40localhost.
Re: Auto line break upon reply email
On 2022-05-08 10:34+0200, BPJ wrote:
>You also have to make sure "t" is in 'formatoptions' (see :h
>formatoptions). I forgot that because I always have it. Sorry!
Yes I have something like the following setting in my muttrc:
set editor = "vim -c 'set comments+=nb:> nocp bg=light tw=72 spell ft=mail formatoptions+=w'"
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220508083904.ezczlkdnlct5fekf%40localhost.
>You also have to make sure "t" is in 'formatoptions' (see :h
>formatoptions). I forgot that because I always have it. Sorry!
Yes I have something like the following setting in my muttrc:
set editor = "vim -c 'set comments+=nb:> nocp bg=light tw=72 spell ft=mail formatoptions+=w'"
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220508083904.ezczlkdnlct5fekf%40localhost.
Re: Auto line break upon reply email
Thank you for your reply.
Sorry I didn't make myself clear, what I wanted to achieve is that when
I hit reply (in mutt it's 'r'), I hope that the text in my replied email
would be automatically re-formatted (so if someone else sent an email
which doesn't set textwidth to 72 can be breaking into multiple lines in
my replied email).
On 2022-05-08 10:21+0200, BPJ wrote:
>Den sön 8 maj 2022 09:06'Tim Ye' via vim_use <vim_use@googlegroups.com>
>skrev:
>
>> Hi,
>>
>> I noticed that some of the replied emails are auto indented by user, so
>> if the line is longer than, say 72 chars, it'll break into 2 lines
>> automatically(?). I'm wondering if it's possible to do this in vim?
>>
>
>:setl tw=72
>
>see :h textwidth
>
>I usually also do
>
>:setl cc=72
>
>(see :h colorcolumn)
>
>to have an indication how much I have left on the line and to spot overlong
>lines which may arise during editing.
>
>HTH,
>
>/bpj
>
>
>
>> My email client is mutt.
>>
>> Thank you,
>>
>> - 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+unsubscribe@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/vim_use/20220508025238.autf5p3mmxsjbdpq%40localhost
>> .
>>
>
>--
>--
>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+unsubscribe@googlegroups.com.
>To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CADAJKhD8cYWvhBQAAkRb7H-Rz8ZMmB%3Dtz44VdCYCydr4UJR4vw%40mail.gmail.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220508083706.3mcadol3ke7ufarx%40localhost.
Sorry I didn't make myself clear, what I wanted to achieve is that when
I hit reply (in mutt it's 'r'), I hope that the text in my replied email
would be automatically re-formatted (so if someone else sent an email
which doesn't set textwidth to 72 can be breaking into multiple lines in
my replied email).
On 2022-05-08 10:21+0200, BPJ wrote:
>Den sön 8 maj 2022 09:06'Tim Ye' via vim_use <vim_use@googlegroups.com>
>skrev:
>
>> Hi,
>>
>> I noticed that some of the replied emails are auto indented by user, so
>> if the line is longer than, say 72 chars, it'll break into 2 lines
>> automatically(?). I'm wondering if it's possible to do this in vim?
>>
>
>:setl tw=72
>
>see :h textwidth
>
>I usually also do
>
>:setl cc=72
>
>(see :h colorcolumn)
>
>to have an indication how much I have left on the line and to spot overlong
>lines which may arise during editing.
>
>HTH,
>
>/bpj
>
>
>
>> My email client is mutt.
>>
>> Thank you,
>>
>> - 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+unsubscribe@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/vim_use/20220508025238.autf5p3mmxsjbdpq%40localhost
>> .
>>
>
>--
>--
>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+unsubscribe@googlegroups.com.
>To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CADAJKhD8cYWvhBQAAkRb7H-Rz8ZMmB%3Dtz44VdCYCydr4UJR4vw%40mail.gmail.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220508083706.3mcadol3ke7ufarx%40localhost.
Re: Auto line break upon reply email
Den sön 8 maj 2022 10:21BPJ <bpj@melroch.se> skrev:
Den sön 8 maj 2022 09:06'Tim Ye' via vim_use <vim_use@googlegroups.com> skrev:Hi,
I noticed that some of the replied emails are auto indented by user, so
if the line is longer than, say 72 chars, it'll break into 2 lines
automatically(?). I'm wondering if it's possible to do this in vim?:setl tw=72see :h textwidthI usually also do:setl cc=72(see :h colorcolumn)to have an indication how much I have left on the line and to spot overlong lines which may arise during editing.
You also have to make sure "t" is in 'formatoptions' (see :h formatoptions). I forgot that because I always have it. Sorry!
/bpj
HTH,/bpj
My email client is mutt.
Thank you,
- 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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220508025238.autf5p3mmxsjbdpq%40localhost.
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CADAJKhCuQN04PGbEAZC7zOX5cFkN1c1%3D77nep%3Dj5yQunoWTGZg%40mail.gmail.com.
Re: Auto line break upon reply email
Den sön 8 maj 2022 09:06'Tim Ye' via vim_use <vim_use@googlegroups.com> skrev:
Hi,
I noticed that some of the replied emails are auto indented by user, so
if the line is longer than, say 72 chars, it'll break into 2 lines
automatically(?). I'm wondering if it's possible to do this in vim?
:setl tw=72
see :h textwidth
I usually also do
:setl cc=72
(see :h colorcolumn)
to have an indication how much I have left on the line and to spot overlong lines which may arise during editing.
HTH,
/bpj
My email client is mutt.
Thank you,
- 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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220508025238.autf5p3mmxsjbdpq%40localhost.
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CADAJKhD8cYWvhBQAAkRb7H-Rz8ZMmB%3Dtz44VdCYCydr4UJR4vw%40mail.gmail.com.
Saturday, May 7, 2022
Auto line break upon reply email
Hi,
I noticed that some of the replied emails are auto formatted by user, so
if the line is longer than, say 72 chars, it'll break into 2 lines
automatically(?). I'm wondering if it's possible to do this in vim?
My email client is mutt.
Thank you,
- 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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220508031918.juoz6hoii3bvcavo%40localhost.
I noticed that some of the replied emails are auto formatted by user, so
if the line is longer than, say 72 chars, it'll break into 2 lines
automatically(?). I'm wondering if it's possible to do this in vim?
My email client is mutt.
Thank you,
- 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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220508031918.juoz6hoii3bvcavo%40localhost.
Auto line break upon reply email
Hi,
I noticed that some of the replied emails are auto indented by user, so
if the line is longer than, say 72 chars, it'll break into 2 lines
automatically(?). I'm wondering if it's possible to do this in vim?
My email client is mutt.
Thank you,
- 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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220508025238.autf5p3mmxsjbdpq%40localhost.
I noticed that some of the replied emails are auto indented by user, so
if the line is longer than, say 72 chars, it'll break into 2 lines
automatically(?). I'm wondering if it's possible to do this in vim?
My email client is mutt.
Thank you,
- 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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220508025238.autf5p3mmxsjbdpq%40localhost.
Re: Json inline format
> Thank you Paul, I don't want third part.
you mean you want a pure viml solution? what's the point?
regards,
marc
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/YnbrZbwPgApKwz7z%40prometheus.u-strasbg.fr.
you mean you want a pure viml solution? what's the point?
regards,
marc
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/YnbrZbwPgApKwz7z%40prometheus.u-strasbg.fr.
vim9script syntax file how to deal with s:cpo_save
hi,
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/3ff87010-cfbc-4e99-a292-1a9d818ebab2n%40googlegroups.com.
after migrating vim to vim9script syntax file, this one embbeded these kind of lines code :
vim9script
if exists("b:current_syntax")
finish
endif
s:cpo_save = &cpo
set cpo&vim
if exists("b:current_syntax")
finish
endif
s:cpo_save = &cpo
set cpo&vim
so i encounter these error now :
"foobar.log" [converted] 12550L, 1485333B
Error detected while processing BufRead Autocommands for "*.log"..FileType Autocommands for "*"..Syntax Autocommands for "*"..function <SNR>19_SynSet[25]..script Z:\soft\Vim\vimfiles\syntax\log.vim:
line 11:
E1089: Unknown variable: s:cpo_save
Error detected while processing BufEnter Autocommands for "*.log"..FileType Autocommands for "*"..Syntax Autocommands for "*"..function <SNR>19_SynSet[25]..script Z:\soft \Vim\vimfiles\syntax\log.vim:
line 11:
E1089: Unknown variable: s:cpo_save
-- Error detected while processing BufRead Autocommands for "*.log"..FileType Autocommands for "*"..Syntax Autocommands for "*"..function <SNR>19_SynSet[25]..script Z:\soft\Vim\vimfiles\syntax\log.vim:
line 11:
E1089: Unknown variable: s:cpo_save
Error detected while processing BufEnter Autocommands for "*.log"..FileType Autocommands for "*"..Syntax Autocommands for "*"..function <SNR>19_SynSet[25]..script Z:\soft \Vim\vimfiles\syntax\log.vim:
line 11:
E1089: Unknown variable: s:cpo_save
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/3ff87010-cfbc-4e99-a292-1a9d818ebab2n%40googlegroups.com.
Re: Json inline format
Thank you Paul, I don't want third part. --
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/48e3fd01-2eaa-4884-8330-1bc7fe758a1fn%40googlegroups.com.
N
Le samedi 7 mai 2022 à 18:56:56 UTC+2, Paul a écrit :
json_pp, or: perl -MJSON -0e 'print to_json decode_json(<>),{pretty=>1}'
Use {pretty=>1,canonical=>1} if you want sorted keys.
On Sat, May 07, 2022 at 04:01:55AM -0700, Ni Va wrote:
>Hi,
>
>How can i format inline json file to multines without python tool ?
>
>Thank you
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/48e3fd01-2eaa-4884-8330-1bc7fe758a1fn%40googlegroups.com.
Re: Json inline format
json_pp, or: perl -MJSON -0e 'print to_json decode_json(<>),{pretty=>1}'
Use {pretty=>1,canonical=>1} if you want sorted keys.
On Sat, May 07, 2022 at 04:01:55AM -0700, Ni Va wrote:
>Hi,
>
>How can i format inline json file to multines without python tool ?
>
>Thank you
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/Ynakzf6GBNoSVfSj%40rainslide.net.
Use {pretty=>1,canonical=>1} if you want sorted keys.
On Sat, May 07, 2022 at 04:01:55AM -0700, Ni Va wrote:
>Hi,
>
>How can i format inline json file to multines without python tool ?
>
>Thank you
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/Ynakzf6GBNoSVfSj%40rainslide.net.
Json inline format
Hi,
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/13088527-ff2e-4d40-a577-166d3d209cadn%40googlegroups.com.
How can i format inline json file to multines without python tool ?
Thank you
-- --
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/13088527-ff2e-4d40-a577-166d3d209cadn%40googlegroups.com.
Friday, May 6, 2022
Re: Vim Display issue on MacBook
> I am using a MacBook pro (macOS BigSur). I get the following display error
> when
> trying to open Vim from an HPC machine (linux CentOS on which I don't have
> admin access). I find that this error pops up only for Vim (Able to open
> other X11 applications like xterm, xclock etc). And this error only comes
> in MacBook. Vim display from the same HPC works fine on a linux machine.
> Any idea why this happens? Tried reinstalling xquartz.
>
> Couldn't open libGL.so.1: libGL.so.1: cannot open shared object file: No
> such file or directory
> Vim: Caught deadly signal ABRT
> Vim: Finished.
> E852: The child process failed to start the GUI
I would think this Vim was not build properly, or targeted for a
different setup.
You can try running Vim with the -X argument.
--
hundred-and-one symptoms of being an internet addict:
109. You actually read -- and enjoy -- lists like this.
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220506100231.7F8651C03B1%40moolenaar.net.
> when
> trying to open Vim from an HPC machine (linux CentOS on which I don't have
> admin access). I find that this error pops up only for Vim (Able to open
> other X11 applications like xterm, xclock etc). And this error only comes
> in MacBook. Vim display from the same HPC works fine on a linux machine.
> Any idea why this happens? Tried reinstalling xquartz.
>
> Couldn't open libGL.so.1: libGL.so.1: cannot open shared object file: No
> such file or directory
> Vim: Caught deadly signal ABRT
> Vim: Finished.
> E852: The child process failed to start the GUI
I would think this Vim was not build properly, or targeted for a
different setup.
You can try running Vim with the -X argument.
--
hundred-and-one symptoms of being an internet addict:
109. You actually read -- and enjoy -- lists like this.
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220506100231.7F8651C03B1%40moolenaar.net.
Thursday, May 5, 2022
Vim Display issue on MacBook
Hi,
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/f06e2987-fe75-457d-bf3d-bf97079844b1n%40googlegroups.com.
I am using a MacBook pro (macOS BigSur). I get the following display error when
trying to open Vim from an HPC machine (linux CentOS on which I don't have admin access). I find that this error pops up only for Vim (Able to open other X11 applications like xterm, xclock etc). And this error only comes in MacBook. Vim display from the same HPC works fine on a linux machine. Any idea why this happens? Tried reinstalling xquartz.
Couldn't open libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
Vim: Caught deadly signal ABRT
Vim: Finished.
E852: The child process failed to start the GUI
Vim: Caught deadly signal ABRT
Vim: Finished.
E852: The child process failed to start the GUI
Best,
Ajaya
-- --
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/f06e2987-fe75-457d-bf3d-bf97079844b1n%40googlegroups.com.
Tuesday, May 3, 2022
Re: Vim-related jobs, grants, etc
Hi Renato!
On Mon, 2 May 2022 02:36:46 -0700 (PDT)
Renato Fabbri <renato.fabbri@gmail.com> wrote:
> This is not only for me (I would love to), but a question for the community
> in general.
> Do we have knowledge of budget (interested companies or individuals, public
> funding)
> for developing Vim plugins?
>
FWIW my policy for software dev commissions is here:
https://www.shlomifish.org/philosophy/philosophy/putting-cards-on-the-table-2019-2020/indiv-nodes/amateur-modelled-commerce.xhtml
( item #3 )
I am open for writing vim plugins as long as i can use vim-python3 or similar.
> Explaining a bit...
> In the last years, I have many times thought about the possibility of
> working with Vim:
> finding payment for developing plugins or even Vim internals, or writing
> documentation (making videos?).
> I have a made few plugins (for colors, taking periodic notes, having bots
> input ideas, etc),
> which I sometimes use daily, but it would also be nice to work in other
> people's code
> to grasp smart (and even recommended) ways to do things.
> I guess this is the case for many Vim users.
>
> On the other side, we as a company (here at Modena/Italy) may look into
> (public, private, own) funding to develop Vim (internals, plugins, doc).
> We would also enjoy developing Vim plugins (internals? docs?) if someone
> needs or wants them.
>
> Any thoughts?
>
> Thanks,
> Renato Fabbri
>
--
Shlomi Fish https://www.shlomifish.org/
List of Text Editors and IDEs - https://shlom.in/IDEs
"Not totally broken" might be a suitable marketing strategy for Microsoft,
but I'm not convinced it's a level we want to be particularly aiming for.
— Matthew Palmer ( https://is.gd/Eil4Io )
Please reply to list if it's a mailing list post - https://shlom.in/reply .
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220503190346.60bce599%40shlomifish.org.
On Mon, 2 May 2022 02:36:46 -0700 (PDT)
Renato Fabbri <renato.fabbri@gmail.com> wrote:
> This is not only for me (I would love to), but a question for the community
> in general.
> Do we have knowledge of budget (interested companies or individuals, public
> funding)
> for developing Vim plugins?
>
FWIW my policy for software dev commissions is here:
https://www.shlomifish.org/philosophy/philosophy/putting-cards-on-the-table-2019-2020/indiv-nodes/amateur-modelled-commerce.xhtml
( item #3 )
I am open for writing vim plugins as long as i can use vim-python3 or similar.
> Explaining a bit...
> In the last years, I have many times thought about the possibility of
> working with Vim:
> finding payment for developing plugins or even Vim internals, or writing
> documentation (making videos?).
> I have a made few plugins (for colors, taking periodic notes, having bots
> input ideas, etc),
> which I sometimes use daily, but it would also be nice to work in other
> people's code
> to grasp smart (and even recommended) ways to do things.
> I guess this is the case for many Vim users.
>
> On the other side, we as a company (here at Modena/Italy) may look into
> (public, private, own) funding to develop Vim (internals, plugins, doc).
> We would also enjoy developing Vim plugins (internals? docs?) if someone
> needs or wants them.
>
> Any thoughts?
>
> Thanks,
> Renato Fabbri
>
--
Shlomi Fish https://www.shlomifish.org/
List of Text Editors and IDEs - https://shlom.in/IDEs
"Not totally broken" might be a suitable marketing strategy for Microsoft,
but I'm not convinced it's a level we want to be particularly aiming for.
— Matthew Palmer ( https://is.gd/Eil4Io )
Please reply to list if it's a mailing list post - https://shlom.in/reply .
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220503190346.60bce599%40shlomifish.org.
Monday, May 2, 2022
Vim-related jobs, grants, etc
This is not only for me (I would love to), but a question for the community in general.
Do we have knowledge of budget (interested companies or individuals, public funding)
for developing Vim plugins?
Explaining a bit...
In the last years, I have many times thought about the possibility of working with Vim:
finding payment for developing plugins or even Vim internals, or writing documentation (making videos?).
I have a made few plugins (for colors, taking periodic notes, having bots input ideas, etc),
which I sometimes use daily, but it would also be nice to work in other people's code
to grasp smart (and even recommended) ways to do things.
I guess this is the case for many Vim users.
On the other side, we as a company (here at Modena/Italy) may look into (public, private, own) funding to develop Vim (internals, plugins, doc).
We would also enjoy developing Vim plugins (internals? docs?) if someone needs or wants them.
Any thoughts?
Thanks,
Renato Fabbri
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/141c2805-bc88-413b-8ab3-eee02a5f6e6bn%40googlegroups.com.
Do we have knowledge of budget (interested companies or individuals, public funding)
for developing Vim plugins?
Explaining a bit...
In the last years, I have many times thought about the possibility of working with Vim:
finding payment for developing plugins or even Vim internals, or writing documentation (making videos?).
I have a made few plugins (for colors, taking periodic notes, having bots input ideas, etc),
which I sometimes use daily, but it would also be nice to work in other people's code
to grasp smart (and even recommended) ways to do things.
I guess this is the case for many Vim users.
On the other side, we as a company (here at Modena/Italy) may look into (public, private, own) funding to develop Vim (internals, plugins, doc).
We would also enjoy developing Vim plugins (internals? docs?) if someone needs or wants them.
Any thoughts?
Thanks,
Renato Fabbri
--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/141c2805-bc88-413b-8ab3-eee02a5f6e6bn%40googlegroups.com.