Re: scroll by screen line ?

2020-08-08 Thread Graham Lawrence
d an > email to vim_use+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/vim_use/20200808165436.GA18746%40phoenix > . > -- Graham Lawrence -- -- You received this message from the "vim_use" maillist. Do not top-post! T

Re: scroll by screen line ?

2020-08-07 Thread Graham Lawrence
http://www.vim.org/maillist.php > > --- > You received this message because you are subscribed to the Google Groups > "vim_use" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to vim_use+unsubscr...@googlegroups.com. > To view t

Re: gvim: how remove menu and toolbar, but keep original geometry

2020-08-04 Thread Graham Lawrence
d005f-a85e-4a67-8446-26af18a2b44do%40googlegroups.com > <https://groups.google.com/d/msgid/vim_use/3cfd005f-a85e-4a67-8446-26af18a2b44do%40googlegroups.com?utm_medium=email_source=footer> > . > -- Graham Lawrence -- -- You received this message from the "vim_use" m

Re: gvim: how remove menu and toolbar, but keep original geometry

2020-08-03 Thread Graham Lawrence
h rodents and (oh horrors!) menus. I guess what I have to do is compile vim for myself. On Sun, Aug 2, 2020 at 3:17 PM Benjamin Esham wrote: > meine wrote: > > > Graham Lawrence wrote: > > > >> which works as expected and gives me a gvim that looks like vim in a

Re: gvim: how remove menu and toolbar, but keep original geometry

2020-08-02 Thread Graham Lawrence
, but not above it. On Sun, Aug 2, 2020 at 7:00 AM Benjamin Esham wrote: > Graham Lawrence wrote: > > > I start gvim with this entry in .bashrc > > > > alias G='gvim -fg white -bg black -geom 80x45 ' > > and have in .vimrc > > set guioptions=aeik > > >

gvim: how remove menu and toolbar, but keep original geometry

2020-08-01 Thread Graham Lawrence
geometry is 80x42. Making the initial geometry 80x48 to compensate does not work as this asks for a window taller than the screen, and apparently is just ignored. How can I get rid of the menu and toolbar and also maximize the window height? -- Graham Lawrence -- -- You received this message from

Re: v:count in mapping gets E492: Not an editor command: count

2020-07-21 Thread Graham Lawrence
You have a very good point there, Jurgen. Somehow now, I have this uncontrollable urge to go baa-aa-aa at the moon. On Mon, Jul 20, 2020 at 10:20 PM 'Jürgen Krämer' via vim_use < vim_use@googlegroups.com> wrote: > Hi, > > Graham Lawrence schrieb am 19.07.2020 um 22:07: > >

v:count in mapping gets E492: Not an editor command: count

2020-07-20 Thread Graham Lawrence
:h v:count includes the following example map _x :echo "the count is " . v:count which works as expected, but using map :let @n=v:count1 ... produces E492 etc; and instead I must use map ;; :exe 'let @n=v:count1' ... for it to work. Now I have a number of mappings in alternate .vimrc files

q: in mapping not invoking commandline window, only the command line

2017-09-19 Thread Graham Lawrence
pected, apparently the q is ignored and the : then fires up the command line instead, resulting in E488 Trailing characters. If one removes the %s... from the right hand end the mapping ends by typing :i in the command line. -- Graham Lawrence -- -- You received this message from the "vim_use" mai

Evoking the option for :help in a mapping

2017-08-28 Thread Graham Lawrence
ail. Although the mapping does not terminate with a , vim treats the ^[ as if it were rather than and goes straight to the specific help for the cursor-word. Is it possible to have vim act on the as it does in the command line? -- Graham Lawrence -- -- You received this message from the "v

Regex arithmetic

2017-08-04 Thread Graham Lawrence
y success with s/_\(\d\)/\="_".nr2char(submatch(1) + 49)/gc which is limited to operations on just a single digit. So, is there a generally reliable method of performing arithmetic on numeric fields embedded in a larger string pattern with :s? Thank you. -- Graham Lawrence -- --

Inconsistent behavior at end of .vim script

2016-10-12 Thread Graham Lawrence
es' always apparently returns nothing, though the definition for 'peduncle' is duly present in @m. I tried starting the script with ':redraw|set lz', but to no effect Is there any method that will prevent the screen being redrawn, or, better, redraw the screen and then do 'echo @m'? -- Graha

Re: Abridged summary of vim_use@googlegroups.com - 4 updates in 3 topics

2015-12-16 Thread Graham Lawrence
as in the steps above. ...more > <http://groups.google.com/group/vim_use/msg/33cfc1ed80cbb?utm_source=digest_medium=email> > Back to top <#151a42d5af0ad03e_digest_top> > Reformat tabular test data ending with a lengthy description onto multiple > tabulated lines > <http://gr

Reformat tabular test data ending with a lengthy description onto multiple tabulated lines

2015-12-14 Thread Graham Lawrence
proceed, please. -- Graham Lawrence -- -- 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 subscr

Re: Abridged summary of vim_use@googlegroups.com - 4 updates in 2 topics

2015-09-08 Thread Graham Lawrence
au! FileChangedShell > <http://groups.google.com/group/vim_use/t/381bc6b14d15fdfd?utm_source=digest_medium=email> > porphyry5 <gl00...@gmail.com>: Sep 06 08:08AM -0700 > > On Friday, September 4, 2015 at 11:50:56 AM UTC-7, porphyry5 wrote: > > > What am I

au! FileChangedShell

2015-09-04 Thread Graham Lawrence
would read the new img.dat into the current buffer. It does not, nothing happens. v:fcs_reason is unset :if exists("#FileChangedShell") | echo 'yes' | else | echo 'no' | endif returns 'yes' What am I missing? -- Graham Lawrence -- -- You received this message from the "vim_use&q

How exactly does one use the mode() function

2015-08-10 Thread Graham Lawrence
That is the 'i' in the first 'norm' puts vim in Insert mode, and the while loop will then wait until the user presses Esc. Instead, the function goes straight to completion, so either I am applying mode() incorrectly, or vim never enters Insert mode. What am I missing? -- Graham Lawrence -- -- You received

Re: How exactly does one use the mode() function

2015-08-10 Thread Graham Lawrence
in the buffer that this is so, it will not accept keyboard input of any sort. On Mon, Aug 10, 2015 at 7:39 AM, Graham Lawrence gl00...@gmail.com wrote: I routinely pass parameters to mappings by simply typing them in at the beginning of a line and running the mapping which begins 'ld0' I

grepping substitute commands from file into current buffer

2015-04-18 Thread Graham Lawrence
a similar result. Any suggestions as to why this happens? -- Graham Lawrence -- -- 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

Re: grepping substitute commands from file into current buffer

2015-04-18 Thread Graham Lawrence
I guess the visual bell trashes a mapping, and I couldn't find any way to have vim ignore it (set vb t_vb= just stops it flashing I guess), so I've removed the pl sequence and used a while loop for that process and all is now well. On Sat, Apr 18, 2015 at 9:46 AM, Graham Lawrence gl00

What sets textwidth=78

2015-03-16 Thread Graham Lawrence
mapping that exceeds 78 characters, arbitrary line breaks are introduced into it, which matters a great deal. Does anyone know what might do this? -- Graham Lawrence -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying

E303 Unable to load swap file

2015-02-12 Thread Graham Lawrence
to a defunct web page for further information, and declares this is a problem with one's X configuration. I think this unlikely as vim behaves so whether or not X is running, and it is not that I am out of disk space either. Can anyone advise me of other possibilities? -- Graham Lawrence -- -- You

Re: :%s//\=@o/gce ignores c flag in key mapping

2014-11-17 Thread Graham Lawrence
from the mapping. Then there are fewer ways for it to go awry. -- Graham Lawrence -- -- 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

:%s//\=@o/gce ignores c flag in key mapping

2014-11-14 Thread Graham Lawrence
. -- Graham Lawrence -- -- 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

Get filename part only from % with substitute()

2012-10-14 Thread Graham Lawrence
:echo substitute(@%, \..*, , ) :echo substitute(@%, \([^.]\+\)\..*, \1, ) Parameters2.html From :reg : echo substitute(@%, \([^.]\+\)\..*, \1, ) % Parameters2.html So, how should I write this substitute command? -- Graham Lawrence -- You received this message from the vim_use maillist

Re: Key mapping behaves differently than same sequence of keys struck by hand

2012-07-17 Thread Graham Lawrence
('.') line('$') let r.='j' endif return r endfu Or make use of the text-object (:h text-object) :map f5 ciWC-REscj regards, Christian I thank you both for your help, Christian and Gary, that does both reveal and solve the problem. -- Graham Lawrence -- You received

Key mapping behaves differently than same sequence of keys struck by hand

2012-07-16 Thread Graham Lawrence
? -- Graham Lawrence -- 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

Re: Can't write to ntfs file system

2012-01-04 Thread Graham Lawrence
My apologies to all. It is something in my vimrc. Without that, vim creates and edits on ntfs without complaint. My thanks to Joan Miquel Torres Rigo for the suggestion. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying

Re: Can't write to ntfs file system

2012-01-03 Thread Graham Lawrence
I thank you all for your help, but I really can't use your recommendations without screwing up something else on my system. I have a script which runs automatically on system startup which immediately references this ntfs drive, so I must have this drive automount on startup like my internal HD,

Re: Can't write to ntfs file system

2012-01-02 Thread Graham Lawrence
Sorry, should have been more emphatic, I have the ntfs-3g driver. Vim is the *only* app that has a problem writing to this device, all others do so freely. I have to keep windows to run my printer and tv, but virtually all the files on this ntfs drive are created in linux. So the problem is

Can't write to ntfs file system

2012-01-01 Thread Graham Lawrence
I have an external hard drive that is in ntfs file format. Vim will neither create a file, nor write to existing files, on this file system. It returns E212, saying I do not have permission. The drive mounts automatically from my fstab entry when I start the system /dev/sdb1

Re: Find non-printing characters

2011-12-16 Thread Graham Lawrence
On Thu, Dec 15, 2011 at 4:42 PM, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 15/12/11 22:15, Graham Lawrence wrote: How can I find non-printing characters in a text? I do not know which specific characters I'm looking for, only that two different such exist. I have tried /Ctrl

Find non-printing characters

2011-12-15 Thread Graham Lawrence
How can I find non-printing characters in a text? I do not know which specific characters I'm looking for, only that two different such exist. I have tried /Ctrl+V Ctrl+A thru Z to no avail. Others that I found visually appeared in vim as ~V ~W etc, but /~ would not go to any of them so the

Re: In script always search from start of buffer

2011-11-22 Thread Graham Lawrence
On Mon, Nov 21, 2011 at 7:27 PM, Tony Mechelynck antoine.mechely...@gmail.com wrote: In scripts, I use ex-commands as much as possible, because _every_ line of a script must be an ex-command, ... where the initial colons at the start of each line are not written simply because every script

Re: In script always search from start of buffer

2011-11-21 Thread Graham Lawrence
On Mon, Nov 21, 2011 at 4:44 AM, Tim Chase v...@tim.thechases.com wrote: In normal-mode, the number prefixing a search is a count, to find the Nth match.  In command-line mode (entered when you hit the colon), it's the line at which to start. But one thing still puzzles me: in fact, I had