Max: insert an 'x' on the line in the middle of the current buffer
Dyckhoff: delete to end of line and insert ff on a new line above ('k' goes
up a line, 'o' starts insertion on new line below)
:)
I think it would be fun to find a real name which did something actually
interesting in vim.
Max
On 4/4/07, Yakov Lerner [EMAIL PROTECTED] wrote:
Max,
I recalled two more things. Is your 'hidden' option set ? If it's set,
vim *will* grow. With 'hidden' set, vim will keep in memory much data
about old buffers. If you want to minimize memory, first thing you'd do is
':set nohidden'. To
On 4/4/07, Yakov Lerner [EMAIL PROTECTED] wrote:
On 4/4/07, Max Dyckhoff [EMAIL PROTECTED] wrote:
I do have 'hidden' set, because I like to keep things around.
:ls! shows that I currently have about 550 buffers open. we do
have a large code base!
Then get another 1-2 GB of RAM. It's
Thanks Tony,
A.J.Mechelynck wrote:
Keeping things around is one thing, keeping them in memory is another. By
using :set hidden you _tell_ Vim to keep in memory the _whole data_ of every
single buffer you visited during the current session, which IMHO is a little
overdoing it. By setting
My instance of vim (gvim on Windows) appears to have a memory leak, which makes
me sad. Is this a common thing for everyone, or is there something in my setup
which might be causing it? It's pretty serious.
When I start gvim and load my standard session, it will take up about 86MB of
RAM. This
You want Hari's LookupFile plugin, which you can find on vim.org. It's awesome,
and has speeded up my development massively. It does exactly what you want, in
almost exactly the way you suggest.
Max
-Original Message-
From: Erik Bergman [mailto:[EMAIL PROTECTED]
Sent: Monday,
exit LookupFile
:map silent S-C-A-F8 PlugLookupFilesomething random to
remove the error!
Max
-Original Message-
From: Meino Christian Cramer [mailto:[EMAIL PROTECTED]
Sent: Monday, February 12, 2007 7:30 PM
To: Max Dyckhoff
Cc: [EMAIL PROTECTED]; vim@vim.org
Subject
If you run make with an ! at the end of the command (:make!) then it will not
jump to the first error generated.
Max
From: Ilia N Ternovich [EMAIL PROTECTED]
Sent: Monday, February 05, 2007 11:26 PM
To: vim@vim.org
Subject: :copen annoying trouble
Hi!
Sessions should do what you want. You can look at :help session for more
information, but this is basically what I do:
1. Open the files that you want, in tabs (I typically have three tabs with
source files, a tab with my todo.otl file, another with some init files and
another with my .vimrc).
The easiest thing to do would probably just to do :e after your :w. :e will
re-read the file, wiping the undo buffer.
Max
-Original Message-
From: Phil Edwards [mailto:[EMAIL PROTECTED]
Sent: Monday, February 05, 2007 9:26 AM
To: vim@vim.org
Subject: Clearing undo history after a
My suggestion: implement a reverse captcha. There is no additional overhead for
users, and friends of mine who have implemented it have found that it foils the
spammers, at least for now, with very little work.
http://damienkatz.net/2007/01/negative_captch.html
Max
-Original
I'm afraid I have no idea, but :help nmap showed this gem which I had to share.
:nunmap can also be used outside of a monastery.
Max
-Original Message-
From: Zheng Da [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 04, 2007 1:31 PM
To: vim
Subject: How to map arrow keys
Do you have a CursorHold au command? Do this to find out:
:au CursorHold
If you do then you are getting the same issue as I do in a lot of places.
Apparently the CursorHold au will generate some input command which will
override pending commands. If you have showcmd set then you can
I use =a{ all the time. I often write blocks of code using snippets from other
places (function prototypes, member variables, conditionals, and so on), and
=a{ will format just that block.
It also looks vaguely like a smiley face, which is nice :)
Max
-Original Message-
From: Kim
This isn't something I do ever, but it happened accidentally to me just now and
it looked wrong. It looks like it could be related to an earlier issue I had. I
have an :au CursorHold to generate tags (although I may remove this, as I have
better ideas on how to do it).
Repro steps:
1. visual
Forgot to mention:
I'm running gvim 7.0 with patches 1-135 on Windows XP. Apologies if this has
been fixed in a more recent patch.
Max
-Original Message-
From: Max Dyckhoff [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 09, 2006 2:18 PM
To: vim@vim.org
Cc: [EMAIL PROTECTED
(CTRL-V)
6. Press r to replace text
7. Wait 'updatetime'
Max
-Original Message-
From: Tim Chase [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 09, 2006 3:25 PM
To: Max Dyckhoff
Cc: vim@vim.org
Subject: Re: Visual replace
Repro steps:
1. visual block select some text (CTRL
Use CR to indicate the linebreak.
:ab foo {{abs},CR{ _,_,_,_,},CR{ a,b,c,d},CR}
Max
-Original Message-
From: frank wang [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 09, 2006 4:06 PM
To: vim@vim.org
Subject: how to abbrevate multiple lines?
Hi,
I want to abbreavte multiple
in advance!
Max
--
Max Dyckhoff
AI Engineer
Bungie Studios
shall
make them buffer and see if that fixes it :)
Still, why would trigger ,,? And yes, I know that is shift-, :)
Max
-Original Message-
From: David Thompson [mailto:[EMAIL PROTECTED]
Sent: Friday, October 20, 2006 11:28 AM
To: Max Dyckhoff
Subject: Re: Problems with
interesting
,
Max
-Original Message-
From: Charles E Campbell Jr [mailto:[EMAIL PROTECTED]
Sent: Friday, October 20, 2006 12:11 PM
To: Max Dyckhoff
Cc: vim@vim.org
Subject: Re: Problems with
Max Dyckhoff wrote:
Re-including the list.
I only have about 30 maps, and none of them start
, Max Dyckhoff [EMAIL PROTECTED] wrote:
Hi all,
:verbose map shows nothing. I have no mappings with at the
start (or in fact, anywhere in the mapping).
Removing the two ,, mappings did nothing useful. The only
interesting map that I have is one right at the end of the list
which
for everyone's suggestions and help!
Max
-Original Message-
From: Gary Johnson [mailto:[EMAIL PROTECTED]
Sent: Friday, October 20, 2006 3:22 PM
To: vim@vim.org
Subject: Re: Problems with
On 2006-10-20, Max Dyckhoff [EMAIL PROTECTED] wrote:
Hi Gary, and Yakov,
I'm sorry, I'm feeling
From :help visual-operators
Note that the :vmap command can be used to specifically map keys in Visual
mode. For example, if you would like the / command not to extend the Visual
area, but instead take the highlighted text and search for that:
:vmap / y/C-RCR
I would suggest not
I am almost certain that this has been asked before, and I am almost sure that
the answer is no, that would be silly, but I can't find anything in the
archives, in :help or on Google in general. I am suffering the aftereffects of
a bout of flu today, so perhaps I'm just being bad at searching.
Has spell been turned off by something? If you enter
:verbose set spell?
does it tell you if some plugin has been messing with your spell settings
FWIW: I tried this and it worked. Opena clean instance of vim, :set spell,
insertthis is a tsetesc (observe highlighting), :set ft=mail (observe
PDF files need to be edited with a specific editor, because they contain
non-human readable structure and encodings. Your request is similar to asking
if you could edit a JPEG with vim.
If it is just a PDF of a text file then you should simply be able to copy/paste
the text into your favourite
Hari's new plugin LookupFile is a great use of tags, I use it dozens of times a
day!
http://www.vim.org/scripts/script.php?script_id=1581
Max
-Original Message-
From: Yakov Lerner [mailto:[EMAIL PROTECTED]
Sent: Friday, October 06, 2006 11:45 AM
To: Kim Schulz
Cc: vim@vim.org
!
--
Max Dyckhoff
AI Engineer
Bungie Studios
I am also using gvim 7 under WinXP :)
Max
-Original Message-
From: Manu Hack [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 27, 2006 2:50 PM
To: Max Dyckhoff
Subject: Re: Autoread in tab
I forgot to say I was talking about gvim 7 under WinXP, if that matters.
On 9/27/06
Having just activated scrolloff=4 (which is great!) I have noticed one small
bug in gvim.
If you do a visual select using the mouse, then the scrolloff will be entirely
ignored.
1. Select some text with the mouse.
2. Use the keyboard to move the cursor up to the top of the window.
3. Watch the
Christian Cramer [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 14, 2006 7:21 PM
To: Max Dyckhoff
Cc: vim@vim.org
Subject: Re: Two problems
From: Max Dyckhoff [EMAIL PROTECTED]
Subject: RE: Two problems
Date: Wed, 13 Sep 2006 20:30:15 -0700
Hi Max,
thanks a lot for your help
It seems like you are just trying to join groups of three lines, which you can
do very easily using this following command:
:g/./j!3
Hope that helps!
Max
-Original Message-
From: Nikolaos A. Patsopoulos [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 13, 2006 8:48 AM
To:
:help mark
:delm[arks] {marks} Delete the specified marks.
Just type :delm a and you're done.
Max
-Original Message-
From: Yakov Lerner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 13, 2006 10:46 AM
To: Vim User Mailing List
Subject: how unset mark 'a
How to unset
I can't offer anything else immediately (I have a load of mappings and
functions but they are all pretty tailored to my needs!), but I was interested
why you would want to split a line in two like that. Can you give us an example?
I'm not criticising, I'm just nosy :)
Max
FWIW: the most
What do you mean by the actual bytes? Do you mean something like this:
ff -
At any rate, I think you would be best suited to use Perl/awk/sed to do the
conversion, rather than using vim. Vim is for editing text, not manipulating
data! :)
Max
-Original Message-
should be doing?
Cheers,
Max
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 05, 2006 8:36 AM
To: Max Dyckhoff
Subject: ezmlm warning
Hi! This is the ezmlm program. I'm managing the
vim@vim.org mailing list.
Messages to you from the vim
From :help :E, it looks like it is the correct behaviour.
:Explore[!] [dir]... Explore directory of current file
If you want to explore an arbitrary directory, then just add the
directory that you :cd into to the :E command. I don't know of a command
to browse the current working
I am so dense sometimes, I should have thought of that instantly :)
Max
-Original Message-
From: A.J.Mechelynck [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 02, 2006 3:45 PM
To: Max Dyckhoff
Cc: Paul Irofti; vim@vim.org
Subject: Re: :cd and :E
Max Dyckhoff wrote:
From
for expanding on my bug report. I have explicitly added Bram to
this email, just to flag it to him.
Max
-Original Message-
From: A.J.Mechelynck [mailto:[EMAIL PROTECTED]
Sent: Monday, August 28, 2006 3:18 PM
To: Max Dyckhoff
Cc: vim mailing list
Subject: Re: Cursor gets stolen by the tab
be reported here!
Cheers,
Max
--
Max Dyckhoff
AI Engineer
Bungie Studios
Recently something rather annoying has started happening; key codes have
started occasionally timing, despite my express desire for them to never
time out. notimeout and nottimeout are both set.
If I move to a place in the file and type ^W quickly and then pause
before typing ], then it will
:e reloads the current file.
Max
-Original Message-
From: Lev Lvovsky [mailto:[EMAIL PROTECTED]
Sent: Friday, August 25, 2006 11:45 AM
To: vim@vim.org
Subject: reopen?
assuming a file has been changed underneath vim, and I know about it,
how can I reopen that file replacing the
Message-
From: A.J.Mechelynck [mailto:[EMAIL PROTECTED]
Sent: Friday, August 25, 2006 12:36 PM
To: Max Dyckhoff
Cc: vim mailing list
Subject: Re: (t)timeout
Max Dyckhoff wrote:
Recently something rather annoying has started happening; key codes
have
started occasionally timing, despite
really a valid
solution, and anyway the timeout happens for all multi-character
mappings like q, g, etc.
Thanks!
Max
-Original Message-
From: A.J.Mechelynck [mailto:[EMAIL PROTECTED]
Sent: Friday, August 25, 2006 1:25 PM
To: Max Dyckhoff
Cc: vim mailing list
Subject: Re: (t)timeout
The problem is your setting of backspace. It sounds like currently bs is
equal to indent,start or something similar. You need
indent,start,eol. The easiest way to do this is simply put this in
your .vimrc file:
:set bs=2
That should do it!
Max
-Original Message-
From: Ben lemasurier
I personally have never found the need to actually hide the other
windows, but I do always keep the current window maximised. One way to
do this is to set wh=10, but this kills the quickfix window. If you
use the quickfix window a lot (that's the one which shows compile errors
or grep
He means when using the script that he wrote and which he was discussing
in the same email, which remaps ctrl-w o to do something else.
Max
-Original Message-
From: Rodolfo Borges [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 10, 2006 11:43 AM
To: vim@vim.org
Subject: Re:
Bram, you have an overflow in your signature :)
Max
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 10, 2006 1:44 PM
Subject: Re: Patch (Unofficial): Malformed characters in menu and
toolbar
when using zh_CN.GBK encoding under Linux
Hari,
That au sounds like a good solution, although it is still mildly
annoying that one can't get a tab variable from a specified tab! :)
Cheers,
Max
-Original Message-
From: Hari Krishna Dara [mailto:[EMAIL PROTECTED]
Sent: Friday, August 04, 2006 11:06 PM
To: Max Dyckhoff
Cc
!
--
Max Dyckhoff
AI Engineer
Bungie Studios
closes a tab (and I have better things to
program than that right now! :)
Anyone else know if you can get a tab local variable somehow?
Max
-Original Message-
From: A.J.Mechelynck [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 03, 2006 10:32 AM
To: Max Dyckhoff
Cc: vim@vim.org
I normally run with lots of splits. Recently I started using italics for
various syntax highlighting (especially comments and enum tag values).
Since then I have noticed the ocassional pixel remaining when I switch
from one split to another.
The situation where this happens is pretty
and all is well with the world again. Thanks for the tip!
Max
-Original Message-
From: Tim Chase [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 02, 2006 10:25 AM
To: Max Dyckhoff
Cc: vim@vim.org
Subject: Re: Bits of text left over after switching splits
I normally run with lots
of this
type if they haven't been keyworded already?
I'll just say: it is awesome to see all your keywords nicely highlighted
across the codebase :)
Thanks in advance!
Max
--
Max Dyckhoff
AI Engineer
Bungie Studios
This thread reminded me of an experiment I saw a couple of years ago
that really interested me, given my background in AI.
http://www.visi.com/~pmk/evolved.html
To summarize, a guy is trying to evolve a good keyboard layout by
deriving interesting metrics. A use for genetic algorithms at last!
I haven't been following this thread in its entirety, but there are the
Windows Alt Keycodes that can solve your entry of the œ symbol, and many
others. To enter œ all you need to do is HOLD Alt, and then enter 0156 on the
keypad, and then release Alt.
Hardly a stylish solution, but easier
I would guess it's some kind of error highlighting -- semicolons are not
allowed inside square brackets (unless they are inside a string or a
comment) -- and because the square bracket has not been closed the
closing curly brace in line 8 is an error, too.
Is there any way that I could
? Lord
knows, anything that annoys my Visual Studio colleagues is all right
with me.
Scott LaBounty
Nexa Technologies, Inc.
Max Dyckhoff wrote:
I've noticed that using some motions - specifically i{ and
suchlike -
will cancel a visual line/block and turn it into regular visual mode
of a part of the line in question.
Go vim!
Max
-Original Message-
From: Karl Guertin [mailto:[EMAIL PROTECTED]
Sent: Friday, July 14, 2006 11:37 AM
To: Max Dyckhoff
Cc: vim@vim.org
Subject: Re: Motions in visual(line|block)
On 7/14/06, Max Dyckhoff [EMAIL PROTECTED] wrote:
I
I use it, and which really annoys my Visual
Studio using colleagues.
Chairs!
--
Max Dyckhoff
AI Engineer
Bungie Studios
matches.
Ideas?
Cheers!
Max
--
Max Dyckhoff
AI Engineer
Bungie Studios
As I understand it, the \ and \ tokens represent the beginning and end
of a word. This means that the character immediately after the \ token
must be a word character, namely letters, numbers, and underscore (as
defined by the iskeyword option).
Max
-Original Message-
From: Robert
it will make vim load up? Will it take ridiculous
amounts of time, or just lots of time?
Cheers!
--
Max Dyckhoff
AI Engineer
Bungie Studios
, your macros were certainly interesting, but they didn't seem to
actually save any time. I can type case: as quickly as I can type
,case :)
Thanks!
Max
-Original Message-
From: Tim Chase [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 22, 2006 7:44 PM
To: Max Dyckhoff
Cc: vim@vim.org
I did a quick search of the interwebs for this, but came up blank. I was
wondering, before I go off and do it myself, if anyone has already made
or heard of a script to fill out C case statements for you.
The number of times that I write something like this in a day is
ridiculous:
switch
: Saturday, June 17, 2006 12:30 PM
To: Max Dyckhoff
Cc: vim@vim.org
Subject: Re: Working directory problems
Max Dyckhoff wrote:
I have some issues with the working directory in vim that I really
cannot get to the bottom of. I have tried looking through the help,
and
I've searched
To answer Yakov's question though, and if he wants to abide by the rules
that he has provided he could do one of two things, so far as my limited
knowledge can tell:
1. Change the file extensions to represent the differences, for example
foo.c89 and foo.c99.
2. A nicer way would probably be to
Cc: Max Dyckhoff
Subject: Re: Pasting a vertical selection.
Fisrt of all thank you Max for your quick answer.
This solution, doesn't seem to work, when I try to paset with p over
my selection, instead of replacing with the values of my new column,
vim insert it...
I have the feeling I
]
Sent: Tuesday, June 20, 2006 11:35 AM
To: Max Dyckhoff
Cc: Russell Bateman; Vim List
Subject: Re: how to detect c99 vs c89 (//-comments vs /*-comments)
On 6/20/06, Max Dyckhoff [EMAIL PROTECTED] wrote:
Can anyone tell me why anyone cares about the styles of comments? I
understand
c89 is considerably more portable than c99. Out of popular compilers,
only gcc implements c99 (I know only gcc and VC). c99 is still
largely ignored by some commercial compiler, notably VC.
If you want your C code to be widely portable, you'd avoid
c99, for practical reasons.
How
of it!
MAx
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 17, 2006 12:30 PM
To: Max Dyckhoff
Cc: vim@vim.org
Subject: Re: Working directory problems
Max Dyckhoff wrote:
I have some issues with the working directory in vim that I
You're working on a large project, so I would advise caution when
doing
tab completion. If you happened to be waiting on an accidental (slow)
completion like aTab, then hit Ctrl-c to stop it.
Yes, I love how vim is nice and intuitive if Linux stuff is ingrained in
your every move :)
Nope,
! I'm using vim 7, if that helps.
Thanks!
Max
-Original Message-
From: Hari Krishna Dara [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 07, 2006 11:16 AM
To: Max Dyckhoff
Cc: Gerald Lai; vim org
Subject: RE: Tab complete filenames
On Wed, 7 Jun 2006 at 9:29am, Max Dyckhoff
I think you want to look at the netrw plugin for vim, which is (as far
as I can remember) installed by default, although I remember that it is
recommended that you download the latest version for full support.
:help netrw
http://www.vim.org/scripts/script.php?script_id=1075
Hope that helps!
Max
Thanks! I'm working on a deadline today but will see if I can integrate
this and make things work on Monday.
Max
-Original Message-
From: Eric Arnold [mailto:[EMAIL PROTECTED]
Sent: Friday, May 26, 2006 5:57 AM
To: Max Dyckhoff
Cc: vim@vim.org
Subject: Re: Working directory
PROTECTED]
Sent: Wednesday, May 24, 2006 8:10 PM
To: Max Dyckhoff
Cc: vim@vim.org
Subject: Re: Working directory problems
I'm not sure how your bound function works. Have you tried using
fnamemodify() to manipulate the filename? You can use the :h option
to strip the path, and :s?? to substitute
!
Cheers,
Max
--
Max Dyckhoff
AI Engineer
Bungie Studios
Hah, I actually run across that in my searches, but was put off by the
description. Upon further reading it appears to be exactly what I want.
Thanks!
Max
-Original Message-
From: Gerald Lai [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 03, 2006 4:44 PM
To: Max Dyckhoff
Cc: vim
79 matches
Mail list logo