I wanted to write out an unclear character that my
cursor was over, so I tried to go into character VISUAL
selection mode by pressing Ctl-v, then ':w! /tmp/ch'.
Instead of the single character at the cursor, I got
the whole line. I also tried with a lower case 'v'.
When interactive, selecting
The version listed below won't run inside a TTY.
Have tried "SecureCRT" (30 day free trial) that I've used for
many years, and tried "xterm" (runs via "X11").
SecureCRT can be setup to ssh back into localhost, or
you can setup rsh/rlogin to only allow login from localhost
(which is what i do).
On 2021/08/18 11:43, Bram Moolenaar wrote:
Does vim do it's own TTY / terminal extension, or does it use the one
in Win10.
What do you mean with "terminal extension"? Vim runs in the console,
can use the Windows terminal and also has a built-in terminal emulator.
Sorry I meant
Does vim do it's own TTY / terminal extension, or does it use the one
in Win10.
I.e. I thought someone said they didn't think it would work under
Win7?
--
--
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
On 2021/05/07 11:56, Bram Moolenaar wrote:
Aleksandr Jakušev wrote:
Which makes me thing that the problem is GUI/X server related. And true,
this does not happen in the console verion of vim. FYI, My X server is one
of the latest versions of vcxsrv running on Win 10.
Any advice would be
On 2021/06/29 03:05, rwmit...@gmail.com wrote:
The source code is available - you're free to use to make what ever
changes make you happy.
How many people do you think would be capable of making such changes?
At least I know programming, unlike some poor soul on a list who
was telling me
On 2021/06/28 21:07, Tony Mechelynck wrote:
Well, one copy of Vim means one panel and that's that,
but I can use split and get 4 panels open in 1 copy of vim.
Already I can do multiple panels with 1 vim, just not disconnected.
--
--
You received this message from the "vim_use" maillist.
Do
On 2021/06/26 23:02, Manas wrote:
Hi folks, I was thinking about the following idea.
As Rust introduced usage of non-ascii characters as identifiers
You do realize perl has had that for over a decade?
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type
On 2021/06/16 03:45, rwmit...@gmail.com wrote:
Campbell has a very straightforward approach of accomplishing the
same end result by saving the contents of the current buffer, and then
starting a new instance of gvim with that buffer. (I don't use gvim,
so I hope I got that right. I did get
On 2021/06/10 09:44, Bram Moolenaar wrote:
If I use split, I can create a separate panel that
is a view on a file.
How can I undock it?
That is not supported, Vim only works with one toplevel window.
Why can't it allow undocking like other GUI apps? I'm not wanting
it to be a
On 2021/05/07 11:56, Bram Moolenaar wrote:
You are using an X server running on MS-Windows? I have had nothing but
problems with that. I haven't tried for years though. Can you run with
a native X server?
I've never had problems with running X on Win. Have done
so since XP days, and
If I use split, I can create a separate panel that
is a view on a file.
How can I undock it?
--
--
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
I had maybe 4-5 panels open on a file but couldn't really get the
display the way I wanted... Alot of GUI's have options to dock a
window or panel in 1 main window, as well as the ability to split the
window off so that it floats independently. How difficult (or would it
be difficult) to do
On 2021/01/06 12:28, Salman Halim wrote:
While I can't explain why things work the way they do, here is a
custom function
---
That's just the thing -- the functions in Vim should be the most general
possible so custom solutions are rarely, if ever needed.
On 2021/01/06 13:16, Salman Halim
On 2021/01/02 08:01, Tim Chase wrote
though a lot of vim stuff takes inspiration from
Python where min() is a vararg function letting
you do as the OP requests
min(arg1, arg2, arg3, arg4, …)
so it's a reasonable sort of hope/expectation.
It just doesn't happen to be a vim thing.
---
On 2021/01/02 08:01, Tim Chase wrote:
On 2021-01-02 16:48, Tony Mechelynck wrote:
Using a single list-like argument is more general: it allows
determining the minimum of any number of values. If it accepted only
two Float arguments, then to determine the minimum of 8 values you
would have to
On 2021/01/02 06:57, Yongwei Wu wrote:
Just do ":help min()", it will tell you:
min({expr}) Return the minimum value of all items in {expr}.
{expr} can be a |List| or a |Dictionary|.
So the simplest solution seems to be:
trunc(min([3, float2nr(1+log(1+line('$'))/log(10))]))
---
Thanks, when
I have the expression:
trunc(1+log(1+line('$'))/log(10))
to give me the width of the number columns when numbering is
on. Seems that it is reserving a minimum of 3 columns, so I tried
using the 'min' function:
trunc(min(3,1+log(1+line('$'))/log(10)))
but I get E118: Too many arguments for
On 2020/10/12 23:34, Gary Johnson wrote:
Anyone seen such fun? And thanks again gary, for the '=',
don't recall ever seeing that.
You're welcome.
I am no expert in XML, but I thought that closing tags began with
a slash, not a backslash; that is, with "
Some days,
On 2020/10/10 23:10, Gary Johnson wrote:
On 2020-10-10, L A Walsh wrote:
:%s/>/>^M/g
:%s/<\([^>]\+\)>\n\([^>]\+\)<\/\1>/<\1>\2<\\\1>
I don't know of a way to do that with one command,
then execute the following
normal-mode command.
gg=G
Sometimes, I get some unformatted text, like HTML or XML that has all
the newlines removed.
To make it easier to read, I'll sometimes add newlines and pair
up adjacent tags, using something like:
:%s/>/>^M/g
:%s/<\([^>]\+\)>\n\([^>]\+\)<\/\1>/<\1>\2<\\\1>
But then I have an unindented file
I was noticing that it took a LONG time to read in a 606.9MB file in
a "local" gvim session (local meaning gvim running on same machine
as file is located).
I finally figured that it was reading 64KB at a time
using async reads.
That is really slow compared to using a direct
read of say, 16M at
--
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
ok, though isn't it more important to prune unnecessary content?
:-|
On 2019/05/21 13:17, 'J S' via
Very often I have many gvim windows open -- sometimes for unrelated
projects because I hit a snag in 1 project that sends me off to another.
Add that to breaks, and I forget which windows are minimized over in the
the tray.
Just like now, I wanted to open a file that has a list I wanted
browse
On 12/24/2018 10:16 AM, Bram Moolenaar wrote:
Use of "\V" means that in the pattern after it only the backslash and the
terminating character (usually / or ?) has a special meaning. "very nomagic"
"Use of "\V" means that in the remaining pattern, only a backslash and
terminating character
This sentence:
Use of "\V" means that in the pattern after it only the backslash and the
terminating character (/ or ?) has a special meaning. "very nomagic"
Should be:
Use of "\V" means that in the pattern after it only the backslash and
terminating characters have a special meaning. "very
Have tried several variations for the SingleQuoted(SQ)
script...including
perl -e ''
or just
'#!/usr/bin/perl
on the 1st line, but nothing seems to work.
I probably have scores, of shell scripts that use this
type of construct. Some are called by putting the prog
in a "var" 1st, others,
May not be related to your problem, BUT you also need to tell vim that
you are
using bash, as it shares syntax with 'sh'.
In my ~/.vimrc, I have
let g:is_bash=1
let b:is_bash=1
kamaraju kusumanchi wrote:
On Sun, Jul 29, 2018 at 7:37 AM, John Little wrote:
With the vim 8.1.0224 from
I'm running a native version of Vim on windows and had some
questions regarding the font dialog
It shows 3 list boxes at the top: Font: Font stye: and Size.
On the 2nd "row" there is a Sample box.
and on a 3rd row, there is a 1-line list box, "Script:" with
the only options being: Western,
subject is the question. for vim vars', maxmem, maxmemtot,
default is says XX(some os dependent value in kB) or half of memory.
Doesn't say if it picks smallest or largest.
Like: for read-only files , only create a swapfile
if it needs more than the given 'maxmem' or 'maxtotmem'.
Might make
Bram Moolenaar wrote:
Bram Moolenaar wrote:
Hello Vim users!
Announcing: Vim (Vi IMproved) version 8.1
This is a minor release with many small improvements and lots of bug
fixes. The main new feature is the terminal window. I have put up a
few screenshots on the Vim website:
Bram Moolenaar wrote:
Hello Vim users!
Announcing: Vim (Vi IMproved) version 8.1
This is a minor release with many small improvements and lots of bug
fixes. The main new feature is the terminal window. I have put up a
few screenshots on the Vim website:
aroc...@vex.net wrote:
Seems like vim is requiring some specific versions/features
of perl?
Which features? What is happening?
During the initial build, vim passes the "-prototypes" flag to perl when
building it's XS module. That fails with the message:
"Unrecognized switch:
Seems like vim is requiring some specific versions/features
of perl? Is it possible for it to read the version and only
use the features the installed perl has? (like -prototypes --
gets message of "rototypes" being a bad switch or similar)...
Makes it hard to build vim when one has to match it
Ben Fritz wrote:
This part is easy: ":set textwidth=80" and make sure
the 'formatoptions' setting contains 'c' or 't' or both. You also might
be interested in the 'colorcolumn' option to draw a line at a specific
column, for example column 80, to show when you're getting near to the
Michael Henry wrote:
- You can create Gvim menus for any of the commands that you've
seen suggested here, so you can use the mouse instead of the
keyboard.
But can't arrange the separate files in staggered windows as shown
in a previous post.
- You may want to take another look at tabs.
Ben Fritz wrote:
Is maximizing for the split view and then restoring the application window an
option? If not is there a reason you need specifically 80-character application
windows? Or do you just like that size?
I never use full screen unless I'm not doing work (movies/games).
Jacky Liu wrote:
Just in case, you know that the split columns and lines in Gvim can be
dragged by mouse right? And this is still not what you want ?
Thanks Jacky, but no. I _do_ use that to adjust the
split lines after the split, but just now, I was editing
2 files (C++ & header: file.cc +
Ben Fritz wrote:
I'm not quite sure I understand why you need another top-level
application window.
Because it makes editing easier. I want to be able to
rearrange the windows with a mouse -- drag them. I want to be able
to drag a tab from one window to another. These are all simple
Paul wrote:
On Tuesday, 28 March, 2017 at 13:08:03 BST, L A Walsh wrote:
Just the other day, I had two files open in tabs (.cc and .h: a C++
source &
header). Instead of window switching, I wanted to change my visual
layout for
1 pair of files to see them side-by-side (and when I was
Christian Brabandt wrote:
Hi L.!
On Di, 28 Mär 2017, L. A. Walsh wrote:
Here is the problem -- I am not using "less.vim"...
I type in (at the command prompt):
less.sh
Here is the problem: Why do you type less.sh and not less or more or
most. And why is this in
Christian Brabandt wrote:
Hi L!
On Di, 28 Mär 2017, L A Walsh wrote:
If I could tear off & merge tabs it would easily allow
such operations.
You mean like tear off a tab and make it a new application window (e.g.
before there was only one gvim window and afterwards you ha
Christian Brabandt wrote:
On Mo, 27 Mär 2017, L. A. Walsh wrote:
Why would you think it shouldn't be disabled? I.e.
how does it help emulate the file-pagers 'less' or 'more' while
providing syntax-coloring?
Because less.vim does what Vim would do.
Here is the problem -- I am
This is likely only pertinent to a GUI version of vim,
like gvim running over X.
More than once I've wanted to be able to tear off a tab
and have gvim open the tab in a new window and
have the new window function like a "tab"
(or a "split") -- except the other "view" (in case of
a split), be in
Ken Takata wrote:
Hi,
2017/3/28 Tue 6:19:19 UTC+9 L A Walsh wrote:
If I have a file with folds in it (fdm=marker), and I try to
display it with the vim 'less.sh' script, there doesn't seem to be
a way to get rid of all the folds (no 'zR'). I can use the cursor
keys to move to each fold
If I have a file with folds in it (fdm=marker), and I try to
display it with the vim 'less.sh' script, there doesn't seem to be
a way to get rid of all the folds (no 'zR'). I can use the cursor
keys to move to each fold and open it, but that really defeats
the idea of using 'less' to scroll
Ni Va wrote:
Hi,
Bonjour!
D<82>but: samedi 25 mars 2017 14:45:39
The <82> you have in the 1st line is a small letter 'e'
with acute in the "DOS: Western Europe" locale (and
character encoding).
instead of Début: samedi 25 mars 2017 14:45:39
In the 2nd line, you have the
Mun wrote:
I tried to find a yum package that provides SMlib.h, but my system said:
"No matches found". Sigh.
I found I had to create my own reverse index of packages in my
distro to find files.
basically a:
"rpm -qpl path-to-pkg/pkg.rpm > path-to-rpmlist/pkg.rpm.lst"
for each
Paul wrote:
You could try https://github.com/chrisbra/Recover.vim
---
Thanks Paul, it looks like it might be "morphable" into what
I want. It currently has a bug where it defaults the action
to "Delete" when there are no diffs -- **whether or not**
the file is already open in another window
Tony Mechelynck wrote:
On Sun, Mar 12, 2017 at 1:41 AM, L A Walsh <v...@tlinx.org> wrote:
I have near a dozen files where I have both a ".cc and a .h"
open but had a desktop reboot, so all have swap files now.
Just now, I opened them all and found that only 1
pair had any cha
I have near a dozen files where I have both a ".cc and a .h"
open but had a desktop reboot, so all have swap files now.
Just now, I opened them all and found that only 1
pair had any changes that needed to be addressed, but the
others were all 'unmodified'.
Is there a way to have vim
h_east wrote:
The reasons for setting the upper limit are as follows:
https://groups.google.com/d/topic/vim_dev/cxvBwnSaWrY/discussion
I hope it will be helpful.
More safety-belts for the children...*sigh*
--
--
You received this message from the "vim_use" maillist.
Do not
Bryan Richter wrote:
I had to make the same modification when I started using vim 8.
The change may be old, but I was using the vim from Ubuntu 14.04 LTS'
repository, which is still 7.4.052. So it "feels" like a change that
happened for 8.0 :)
===
Yup...opensuse here..similar thing.
--
--
Gary Johnson wrote:
:help 'history'
---
That's what I used to get the alternate syntax.
says, "The maximum value is 1."
---
I guess it was significantly decreased in 8.x (not that I need
it so high, just wanted to unlimit it and possible take care
of it differently as I do
Trying vim 8 on windows and get an error when it starts up
saying it didn't like my
"set history=25"
statement in my .vimrc
Seems like correct syntax, now, is(?):
"history 25"
But when I ran that, I got a different error:
'history' option is zero.
Am running gvim, but can't
On Win7, with vim 7.3.480 compiled for native windows,
if I try to edit a file:
gvim ../Documents/notes/note1.ini
gvim brings up an empty buffer and says "[New DIRECTORY]"
next to the filename.
If I do the same with notepad, it properly brings up the file.
Can vim/gvim be made to handle '/'
Christian Brabandt wrote:
I believe, github.com/vim-perl/vim-perl is the upstream repository for
perl runtime files.
---
I submitted an issue in their issue tracker over a week ago on
some other issue and noted that there was no response and that the project
seemed dead. Is that not the
Is this the way to submit updates for problems?
syntax/pod.vim shows how to include pod sections and says to
put the option "contained" in each region defined
in an "including" language.
syntax/perl.vim doesn't do this.
Result -- when I have pod in my perl.vim file, the pod can turn off
Paul wrote:
This might help:
Put the cursor on the target character, and do 「:echo
map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')」. That
will show you what highlight group it is using. 「:verbose highlight
」 will show you where it was defined.
Thanks! .. didn't know about
I have several functions that have one or more UTF-8 characters in them.
They show off broken highlighting in the declaration ( but not when
the function is called).
The UTF-8 char in two of the functions below is
is highlighted in a 'red', 'error' background:
sub ƒroundup($$) { } #
Tim Chase wrote:
In insert mode, using control+V followed by "u" ("Unicode") followed
by 0192 gives me the character you show. You can make a digraph, say
something like "f," to make it easier to remember:
:digraph f, 402
(402 is the decimal equivalent of the hexadecimal 0192 that you
L. A. Walsh wrote:
Steve wrote:
Hi Linda,
diphraphs are what you are looking for.
Type :h digraphs or simply :digraphs for a comprehensive list.
for some usefull information.
I would type km3 to get ϝ.
Thanks! -- the k(release )m3 worked, but I didn't
see it on my list of already-defined
Steve wrote:
Hi Linda,
diphraphs are what you are looking for.
Type :h digraphs or simply :digraphs for a comprehensive list.
for some usefull information.
I would type km3 to get ϝ.
Thanks! -- the k(release )m3 worked, but I didn't
see it on my list of already-defined digraphs that I displayed
dfab1954 wrote:
On Wednesday, October 5, 2016 at 10:46:30 AM UTC-4, David Fishburn wrote:
Typically you must "Browse" to the executable the first time.
There after, Vim (8) should be in the list of options in the future.
I did that. It doesn't show up in the dialog and browsing and
In various locations on windows I can use ALT+0131 (on the numeric pad) to
display/input the Unicode "function symbol", 'ƒ', which is unicode
char 0192 (it's also the Florin currency symbol in the Netherlands
and called a LATIN SMALL LETTER F with HOOK).
When I try to input to to Gvim either
Ben Fritz wrote:
I wonder if a different approach might help.
Vim already has :perldo, :pydo, etc. Perhaps a :perlmatch, :pymatch, etc. could
be added for basic searching in those languages?
There is also a patch in the todo list for :bvimgrep. Maybe a :bgrep command
could also be added. I
Christian Brabandt wrote:
I have a bunch of lines in a file that start:
-
when (/users[^@]*\@.*domain\.com/) {
...
---
I.e. in interactive:
:s/when\s*(\/m{/
That pattern needs to be /when\s*(\//m{/
or use a different delimiter:
s#when\s*(/#m{#
Best,
Christian
OH
I have a bunch of lines in a file that start:
-
when (/users[^@]*\@.*domain\.com/) {
...
---
I have tried defining a macro to replace the "when (/" with "m{".
It works interactively, but not in a macro (my magic level is
set to 'magic' -- i.e. default).
I.e. in interactive:
shawn wilson wrote:
Instead of implementing one or another regex type in core, it might be
better to know about and hook into libs for their regex engines. For
example, libperl for perl's engine when +perl or libpcre as another
option. IDK you can do the same with python, I think you can
Christian Brabandt wrote:
There is https://github.com/vim/vim/issues/99
You might want to check, if this works for you.
If vim supported posix extended RE's, then, like, say grep,
it could also support Perl RE's, from the PCRE library. Perl supports
the "/x" to ignore whitespace for
Posix, has 2 official RE's already, the modern REs( like in
grep -E, (extended RE's)
and "obsolete RE's" as found in ed, called "basic REs".
Additionally for the past few years, more gnu utils (like grep -P)
have started supporting a third type of RE's called
PCRE [Perl Compatible RE's] that
I upgraded to vim 7.4.461 from my suse distro's 13.2
release.
I was really noticing the slower response editing perl
(with large sync params:
let g:perl_extended_vars=1
let g:perl_sync_dist=16384
let g:perl_minlines=2048
let g_perl_maxlines=16384
let g:perl_want_scope_in_variables=1
let
Ben Fritz wrote:
On Sunday, February 8, 2015 at 5:59:28 PM UTC-6, L. A. Walsh wrote:
It sorta looks like both tabs are being brought up at the same time and a
race condition might be happening, but the fact that it
is very deterministic, leads me to believe something else is going
I am quite confused on setting
the highlight rules for TabLine{,Fill,Sel}.
I am trying to set options on X11-Linux in a
Suse distro. I'm using version 7.3.831 (because
last I tried 7.4, everything was noticeable
slowed down due to the new regex engine. So
I just stayed at 7.3 for the nonce.
Ages ago I add a few lines to my .gvimrc file to auto-resize
the width if I turned on line numbering (i.e. since the numbers take
up more width and I still wanted an 80-col display for the contents),
I wanted to expand the width by the # cols needed.
I added a simple function to my .gvimrc:
I was editing a largish perl program in 7.4 that I hadn't worked on,
probably
since 7.3 was on my machine.
I noticed it was very sluggish in scrolling and even echoing key functions.
I tried turning syntax=off, and noticed no slowdown at all.
I then tried reinstalling the old 7.3 -- and
76 matches
Mail list logo