Yegappan wrote:
> On Tue, Jul 4, 2023 at 1:11 PM Lifepillar wrote:
> >
> > On 2023-07-04, Nicolas wrote:
> > > Hi,
> > >
> > > Is there an equivalence in vim9 of __FILE__, __LINE__, and __FUNCTION__
> > > usage in C++
> >
r?
I don't think we can fix this in Vim. The error is valid, if we skip it
then mistakes will go unnoticed. With Vim 9 script we want to find more
errors, not less. So long as they are valid errors.
--
Women are probably the main cause of free software starvation.
> On Sat, 24 Jun 2023 19:35:47 +0100
> Bram Moolenaar wrote:
> > You need to tell Vim to recognize these escape sequences:
> >
> > execute "set =\[I"
> > execute "set =\[O"
> >
> > Since this is quite common it was m
u only need to define the escape sequences for older Vim versions.
--
hundred-and-one symptoms of being an internet addict:
231. You sprinkle Carpet Fresh on the rugs and put your vacuum cleaner
in the front doorway permanently so it always looks like you are
actually attempting to
issues, but the team working
on the Windows Terminal has been responsive. I hope at least one of
them is using Vim and fixes any encountered problems. That's why Vim
works well in the Chrome secure shell :-).
> Should there be smoke coming out of my CPU?
No, it's bad for the cooling syste
ng this work
properly is well worth it.
--
Some of the well known MS-Windows errors:
ETIME Wrong time, wait a little while
ECRASH Try again...
EDETECT Unable to detect errors
EOVER You lost! Play another game?
ENOCLUE
nce running in a terminal
window, initiated from the Vim instance that has the terminal window.
--
hundred-and-one symptoms of being an internet addict:
196. Your computer costs more than your car.
/// Bram Moolenaar -- b...@moolenaar
u CmdlineEnter * call echoraw("\]12;red\x7")
au CmdlineLeave * call echoraw("\]12;blue\x7")
--
What is the difference between a professional and an amateur?
The ark was built by an amateur; professionals gave us the Titanic.
/// Bram Moolenaar -- b...@
join/split lines, etc.?
I hope you can give an example that is simple and reproduces the problem
consistently.
--
I thought I was eating a crab salad. It turned out to be a crap salad.
/// Bram Moolenaar -- b
want.
Suggestion: Use "setlocal" instead of "set" to avoid affecting other
files. You only want to apply these options locally.
--
hundred-and-one symptoms of being an internet addict:
166. You have been on your computer soo long that you didn't realize
you had grandchil
use packages, see ":help package-create". This has
the advantage that related files for the "foo" plugin are under one
directory. That matters if you want to move the plugin.
--
hundred-and-one symptoms of being an internet addict:
156. You forget your friend's name but not
;broken" for more than a day.
--
In a world without fences, who needs Gates and Windows?
/// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\sponsor Vim, vote for features -- http
Christian wrote:
> On Di, 06 Jun 2023, Bram Moolenaar wrote:
>
> > I have created a ticket. Unfortunately the information we have is not
> > very specific, that makes it difficult to pinpoint the problem. If you
> > notice the problem, plesae gather as muc
;echo Foo()"?
I cannot guess what the problem is, this appears to work fine:
def Foo(): float
return luaeval('math.pi')
enddef
--
I have a watch cat! Just break in and she
John Beckett wrote:
> On Tuesday, June 6, 2023 at 3:31:29 AM UTC+10 Bram Moolenaar wrote:
>
> > I have see some DB errors the last few days. Usually the problem goes
> > away a bit later, e.g. after an hour. I have no clue what might cause this.
>
> Are
Christian wrote:
> On Sa, 03 Jun 2023, Lifepillar wrote:
>
> > On 2023-06-02, Bram Moolenaar wrote:
> >
> > > You could try using another browser.
> >
> > I have tried with Safari, Brave, and LibreWolf (~Firefox) on macOS to no
> > avail. I have
is is about one product, I don't see the relation with "ANY" here.
--
hundred-and-one symptoms of being an internet addict:
112. You are amazed that anyone uses a phone without data...let
alone hear actual voices.
/// Bram Moolenaar -- b...@moolenaar.net --
of being an internet addict:
109. You actually read -- and enjoy -- lists like this.
/// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\sponsor Vim, vote for features -- http:
ve to try
it out to know what happens in your situation.
--
hundred-and-one symptoms of being an internet addict:
102. When filling out your driver's license application, you give
your IP address.
/// Bram Moolenaar -- b...@moolenaar.net --
> On 2023-06-03, Bram Moolenaar wrote:
> >
> >> Legacy Vim script:
> >>
> >> let text = 'àbc'
> >> echo text[2]
> >>
> >> Result: 'b'
> >>
> >> Vim 9 script:
> >>
> >> const text = 'à
script the index is in characters. In legacy script it is
in bytes.
The help for this doesn't have it's own tag, I'll add one.
You can find it above ":help vim9-gotchas".
--
hundred-and-one symptoms of being an internet addict:
101. U can read htis w/o ny porblm and can
it... How many of you have made "modem noises" into
the phone just to see if it was possible? :-)
/// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\sponsor Vim, vote f
o dig
> > into that plugin." ???
>
> Not clear on this.
> What does "add pieces" mean? Does it mean pieces of the the vimrc file or
> adding plugins one by one or is it
of
your setup until you find out what piece matters for reproducing the
problem. Hopefully not including a whole plugin, since then we would
need to dig into that plugin.
--
>From "know your smileys":
<|-) Chinese
<|-( Chinese and doesn't like these kind of jokes
/// Bram Moo
Note that you need to start Vim with "--clean" to make sure your local
setup doesn't change what happens.
--
>From "know your smileys":
|-(Contact lenses, but has lost them
/// Bram Moole
ption did change by just
> one character increase.
Well, does that make the problem go away?
--
>From "know your smileys":
:-| :-| Deja' vu!
/// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\
///
eck if the 'columns' and 'lines' options did change.
--
I AM THANKFUL...
...for the taxes that I pay because it means that I am employed.
/// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
or ":MkVimball" not
sufficient? If someone wants to propose an improvement then ask Charles
to review it.
--
>From "know your smileys":
% Bike accident. A bit far-fetched, I suppose; although...
o _ _ _
_o /\_ _ \\o (_)\__/o (_
ange the first line in this
function:
b:yml_f = yml_fpath
But is this really buffer related? And it does require a runtime lookup
by name. Using a script-local variable will work better.
--
There's no place like $(HOME)!
ill inside the scope of the script file. That means it won't
interfere with what happens in other scripts.
--
>From "know your smileys":
<>:-) Bishop
/// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\
///
e. If you see an option with a suspect value, you can possibly
find out where it was set with e.g.:
:verbose set lines?
--
>From "know your smileys":
8<}} Glasses, big nose, beard
/// Bra
nd use it in Python? No,
that is not possible. The class implementation is only halfway, but
even when the work has been done a Python script will not be able to
access a Vim class directly. You can only use it in a Vim script
context, such as using "vim.eval()".
--
Do not trust
uot;:
O:-) Saint
/// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\help me help AIDS victims -- http
orks better. Formatting the whole
file may mess things up without you noticing.
--
>From "know your smileys":
:-)Funny
|-)Funny Oriental
(-:Funny Australian
/// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\
///
names exist in the global namespace where the global
variable can also be found:
def g:LambdaText(Op: func(): number): void
g:ThatFunction = Op
func g:ThatFunction
unlet g:ThatFunction
enddef
--
Be thankful to be in a traffic jam, becau
; is not capitalized" would be helpful. I guess I'd prefer the first because
> it is unambiguous and ":help SpellCap" works as expected.
You can use spellbadword() for that.
--
Nothing is fool-proof to a suff
problem very likely is on their side.
--
The fastest way to get an engineer to solve a problem is to declare that the
problem is unsolvable. No engineer can walk away from an unsolvable problem
until it's solved.
(Scott Adams - The Dilbert principle)
///
> >
> > Instead of checking for "did_load_filetypes" a more direct condition
> > would be to use:
> >
> > if exists('#filetypedetect') && exists('#BufReadPost')
> > set ft=
> > doautocmd filet
re direct condition
would be to use:
if exists('#filetypedetect') && exists('#BufReadPost')
set ft=
doautocmd filetypedetect BufReadPost
endif
Does that work for you?
--
Lower life forms have more fun!
/// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\
tle
bandage-covered midget corpse at the De Young Museum in San Francisco. I
remember thinking how pleased he'd be about the way things turned out in his
afterlife.
(Scott Adams - The Dilbert principle)
/// B
tle
bandage-covered midget corpse at the De Young Museum in San Francisco. I
remember thinking how pleased he'd be about the way things turned out in his
afterlife.
(Scott Adams - The Dilbert principle)
/// B
re direct condition
would be to use:
if exists('#filetypedetect') && exists('#BufReadPost')
set ft=
doautocmd filetypedetect BufReadPost
endif
Does that work for you?
--
Lower life forms have more fun!
/// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\
t;.vim"?
--
Team-building exercises come in many forms but they all trace their roots back
to the prison system. In your typical team-building exercise the employees
are subjected to a variety of unpleasant situations until they become either a
cohesive team or a ring of car jackers.
TOP OF THE LIST, CROSS OFF THAT STAR SYSTEM, THEN PUT
YOUR STAR SYSTEM AT THE BOTTOM OF THE LIST AND SEND IT TO 100 OTHER
STAR SYSTEMS. WITHIN ONE TENTH GALACTIC ROTATION YOU WILL RECEIVE
ENOUGH HYDROGREN TO POWER YOUR CIVILIZATION UNTIL ENTROPY REACHES ITS
MAXIMUM! IT REALLY WORKS!
/// Bram Moolenaa
adversary.
BLACK KNIGHT: (Glancing at his shoulder) 'Tis but a scratch.
ARTHUR: A scratch? Your arm's off.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\
///
information
about what was wrong. I hope it won't happen again.
--
Men may not be seen publicly in any kind of strapless gown.
[real standing law in Florida, United States of America]
/// Bram Moolenaar -- b...@moolenaar.net -- http:/
ive questions ...
GALAHAD: Three questions ...
ARTHUR: Three questions ... And we shall watch ... and pray.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- b...
aps
with a negative number? Thus -1 would be the line above the first
visible line. Using an absolute number is made difficult by the
'termwinscroll' value, lines at the start may have been deleted.
--
Vi beats Emacs to death, and then again!
http://linuxtoday.com/stories
his might work:
#include
--
-rwxr-xr-x 1 root 24 Oct 29 1929 /bin/ed
-rwxr-xr-t 4 root 131720 Jan 1 1970 /usr/ucb/vi
-rwxr-xr-x 1 root 5.89824e37 Oct 22 1990 /usr/bin/emacs
//
ine pence.
DEAD PERSON: I'm not dead!
MORTICIAN:Here -- he says he's not dead!
CUSTOMER: Yes, he is.
DEAD PERSON: I'm not!
The Quest for the Holy Grail (Monty Python)
/// Bram Moolenaar -- b...@moolenaar.net -- http://www.Mool
ill you ask your master if he wants to join my court at Camelot?!
GUARD #1: But then of course African swallows are not migratory.
GUARD #2: Oh, yeah...
GUARD #1: So they couldn't bring a coconut back anyway...
Th
and she must pay the
penalty. And here in Castle Anthrax, we have but one punishment
... you must tie her down on a bed ... and spank her. Come!
GIRLS: A spanking! A spanking!
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
///
uot;null object of class X"?
--
Two fish in a tank. One says to the other:
"Do you know how to drive this thing?"
/// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\sponsor Vim,
d-and-one symptoms of being an internet addict:
182. You may not know what is happening in the world, but you know
every bit of net-gossip there is.
/// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\
///
['argument']
testing end
This is on Ubuntu, Python 3.10.
--
hundred-and-one symptoms of being an internet addict:
107. When using your phone you forget that you don't have to use your
keyboard.
/// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net
:tabdo from the list of commands.
I'll add it. Let me know if any other is missing.
--
hundred-and-one symptoms of being an internet addict:
99. The hum of a cooling fan and the click of keys is comforting to you.
/// Bram Moolenaar -- b..
loat is
expected. We encountered this before, then it was causing an invalid
result and it was solved by giving an error message. I'll make another
change that actually converts the number to a float, that should better
match expectations.
--
If you put seven of the most talented OSS developers in
e the cursor to the " mark.
Something like that.
--
What a wonderfully exciting cough! Do you mind if I join you?
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
/// Bram Moolenaar -- b...@
oms of being an internet addict:
20. When looking at a pageful of someone else's links, you notice all of them
are already highlighted in purple.
/// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\
/// \
on the back of a white van. The world is shocked
and wants to know what it means. After months of studies the worlds
best linguistic scientists are able to decipher the message: "Wash me!".
/// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\
///
/#Calendar
Happy Vimming!
--
No man may purchase alcohol without written consent from his wife.
[real standing law in Pennsylvania, United States of America]
/// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net
for the second day changed the last moment. When I tuned
in there were just two guys talking about things unrelated to Vim and
playing video games...
Is there at least a link to the keynote?
--
Life would be so much easier if we could just look at the source code.
/// Bram Moolenaar -- b
n some
places.
--
hundred-and-one symptoms of being an internet addict:
225. You sign up for free subscriptions for all the computer magazines
/// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\
> On Sat, 29 Oct 2022 00:03:17 +0100, Bram Moolenaar wrote:
> >
> > > On Fri, 28 Oct 2022 22:23:31 +0100, Bram Moolenaar wrote:
> > > >
> > > > > "au VimLeavePre * w" only works when I exit vim with something
>
> On Fri, 28 Oct 2022 22:23:31 +0100, Bram Moolenaar wrote:
> >
> > > "au VimLeavePre * w" only works when I exit vim with something like
> > > ":q!" but not if I close my terminal window.
> > >
> > > Error detected while proc
it whereever you want to
use it. That way you have control over where the value is changed, make
it a constant, etc. See help for "vim9-scopes" and ":import".
--
Westheimer's Discovery:
A couple of months in the laboratory can
frequently save a couple of hours
rs Abbott: I'm a paediatrician.
Basil: Feet?
Mrs Abbott: Children.
Sybil: Oh, Basil!
Basil: Well, children have feet, don't they? That's how they move
around, my dear. You must take a look next time, it's most
interesting. (Fawlt
kes a little while to fix.
--
ARTHUR: Old woman!
DENNIS: Man!
ARTHUR: Man. I'm sorry. Old man, What knight live in that castle over there?
DENNIS: I'm thirty-seven.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- b...
.
--
Girls are like internet domain names,
the ones I like are already taken.
Well, you can stil get one from a strange country :-P
/// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\
ll this works depends
on what command you execute.
--
Lose weight, NEVER Diet again with
The "Invisible Weight Loss Patch"
(spam e-mail)
/// Bram
?
No, don't see a way.
--
DINGO: You must spank her well and after you have spanked her you
may deal with her as you like and then ... spank me.
AMAZING: And spank me!
STUNNER: And me.
LOVELY: And me.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTUR
ted files and special character handling. Git diffs normally don't
include that, you have to carefully specify what kind of diff it should
create (probably called a patch).
--
hundred-and-one symptoms of being an internet addict:
271. You collect hilarious signatures from all 250 mailing lists you
be good if this can be turned into a PR. Hopefully with a test.
Can you do that, or would this need to be done by someone else?
Then it's easier for others to comment and suggest improvements.
--
hundred-and-one symptoms of being an internet addic
o not remember any problem with previous versions.
After running configure, look in src/auto/config.log.
Search for "GTK". It should tell you what is missing.
--
Support your right to bare arms! Wear short sleeves!
/// Bram Moolenaar -- b...@moolenaar.net
e window to the foreground, goto Insert mode when 'im' set and
> // clear command line.
The main problem is that on the server this is received as a command and
put in the input buffer, after which it is executed almost as typed.
Instead of buildin
~#4 Percent splat waka waka tilde number four,
&[]../ Ampersand bracket bracket dot dot slash,
|{,,SYSTEM HALTED Vertical-bar curly-bracket comma comma CRASH.
Fred Bremmer and Steve Kroese (Calvin Colleg
uot;
- "add flexible tab stops, can be used for tables"
Happy voting!
--
GUARD #1: What, ridden on a horse?
ARTHUR:Yes!
GUARD #1: You're using coconuts!
ARTHUR:What?
GUARD #1: You've got two empty halves of coconut and you're bangin' 'em
together.
Vim
> 9 script in feature.h.
Simple answer: no.
--
You cannot propel yourself forward by patting yourself on the back.
/// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\sponsor Vim,
Tim Chase wrote:
> On Tue, Aug 09, 2022 at 10:06:37PM +0100, Bram Moolenaar wrote:
> > Vim does not include a system-wide vimrc file that would go in
> > /usr/local/etc/vim. Does this file source defaults.vim?
>
> Yes, this file sources defaults.vim
>
> I w
ease revert this)?
Vim does not include a system-wide vimrc file that would go in
/usr/local/etc/vim. Does this file source defaults.vim? Then that's a
problem of FreeBSD.
--
Microsoft: "Windows NT 4.0 now has the same user-interface as Windows 95"
Windows 95:
t;> name:
& = "\f"
But this does:
exe "set =\f"
--
GALAHAD: Camelot ...
LAUNCELOT: Camelot ...
GAWAIN:It's only a model.
"Monty Python and the Holy Grail" PYTHO
ial key. There is a list in src/keymap.h, "enum
key_extra".
--
hundred-and-one symptoms of being an internet addict:
269. You receive an e-mail from the wife of a deceased president, offering
to send you twenty million dollar, and you are not even surprised.
/// Bram Moolenaar
call that.HLNext(80)
> nnoremap N N:call that.HLNext(80)
Use ":help import-legacy" and then go up a few lines.
--
The term "free software" is defined by Richard M. Stallman as
being software that isn't necessarily for free. Confusing?
Let's call it "Stallman soft
yboards. What keyboard layout
are you using?
--
hundred-and-one symptoms of being an internet addict:
193. You ask your girlfriend to drive home so you can sit back with
your PDA and download the information to your laptop
/// Bram Moolenaar -- b...@moolenaar.n
hich is a big
problem) the Visual highlighting is not applied to the character under
the cursor. That may look a little bit strange (small problem) but
you'll get used to it.
--
hundred-and-one symptoms of being an internet addict:
113. You are asked about a bus schedule, you wonder if it is 16 o
quired to access script-local variables.
--
hundred-and-one symptoms of being an internet addict:
94. Now admit it... How many of you have made "modem noises" into
the phone just to see if it was possible? :-)
/// Bram Moolenaar -- b...@moolenaar.net -- http://w
Vim9 syntax.
--
>From "know your smileys":
C=}>;*{)) Drunk, devilish chef with a toupee in an updraft,
a mustache, and a double chin
/// Bram Moolenaar -- b...@moolenaar.net
..for the taxes that I pay because it means that I am employed.
/// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\
bar at the right side.
/// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\help me help AIDS victims -- h
the text into a file first, then you can
tell the remote gvim to open that file.
--
hundred-and-one symptoms of being an internet addict:
76. Your ISP regards you as a business partner rather than as a customer.
/// Bram Moolenaar -- b...@moolenaar.net
setlocal ul=-1
--
"I don’t know how to make a screenshot" - Richard Stallman, July 2002
(when asked to send a screenshot of his desktop for unix.se)
/// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\
///
s if possible. See ":help bugs" in
Vim. Ideally write a test that reproduces the problem and will pass
once it is fixed.
Happy Vimming!
--
Anyone who is capable of getting themselves made President should on no
account be allowed to do the job.
ot;:w file"?
What is the :version output, what version do you use exactly?
--
"How is your new girlfriend?"
"90-60-90 man!"
"What, pale purple?"
/// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\
///
The same text is
found near the end of the file.
--
The goal of science is to build better mousetraps.
The goal of nature is to build better mice.
/// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\
> See title.
What is your setup? Do you use French perhaps?
--
I think that you'll agree that engineers are very effective in their social
interactions. It's the "normal" people who are nuts.
(Scott Adams - The Dilbert principle)
/// Bram M
slConstant
Yes, there is an example just above ":help E848".
--
BODY:I'm not dead!
CART DRIVER: 'Ere. He says he's not dead.
LARGE MAN: Yes he is.
BODY:I'm not!
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Mool
Dominique wrote:
> Bram Moolenaar wrote:
>
> > > Why cursor shape in terminal neovim can change but in vim not? Maybe
> > > something different in here.
> >
> > It very much depends on the terminal. Neovim assumes a very recent
> > terminal, it won'
> On 6/15/22 2:44 PM, Bram Moolenaar wrote:
> > Yes, that is indeed a problem. Lots of terminal emulators keep popping
> > up, many with the same or similar base, and adding one more feature.
> > They don't bother distributing a correct termcap/terminfo entry and
> &
ed way... and contains large amounts of duplicate and obfuscated
information... (Ben Peterson)
/// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\sponsor Vim, vote for features -- http://www.Vim.o
> On 6/15/22 9:58 AM, Bram Moolenaar wrote:
> > if =~ "xterm" && $SSH_CLIENT == ''
>
> Why do you check to see that SSH_CLIENT is unset / empty?
>
> Wouldn't that preclude SSHing from a shell running in Xterm?
>
> I'm just curious.
The terminal
1 - 100 of 1122 matches
Mail list logo