Re: Color scheme

2020-09-19 Thread Antony Scriven
On Sep 19, Bruce Korb wrote: > Hi, > I go to the trouble of wrapping my vim invocation inside > of a function that adds "-i NONE" to the command line. I assume you mean -u? > I do this because somebody thinks it's really cool to > have dark purple or blue letters on a black background. > [

Re: Typo/mistake in insert.txt?

2017-05-30 Thread Antony Scriven
Hi! On May 30, Ethan Hereth wrote: > I am pretty sure there is a mistake in insert.txt at line > 639 (at least it's there on the version I just checked on > github) where it explains the insert mode completion > commands. It says "All these (except 2) are done in > CTRL-X mode." I think that

Re: Bug in ftdetect?

2017-05-25 Thread Antony Scriven
On May 25, Christian Brabandt wrote: > [...] > > I am not sure, if this behaviour is a bug. However after > thinking some more about it, I am wondering, whether the > fact that the BufNew autocommand triggers a FileType > autocommand is a bug itself, since autocommands shouldn't > nest (see

Re: Bug in ftdetect?

2017-05-24 Thread Antony Scriven
On May 24, Christian Brabandt wrote: > [...] > > However, I think you might have found a bug here. Your > ftdetect script does this: I don't know that I'd characterise it as a bug, since this: > autocmd BufNew,BufNewFile,BufRead *.md :set filetype=markdown > > The :args command does fill

Re: Bug in ftdetect?

2017-05-24 Thread Antony Scriven
On May 24, Frew Schmidt wrote: > [...] > > Maybe a dumb question, but why would BufNew be more expensive > than BufRead? Shouldn't the filetype stuff get run either way? > I wouldn't expect BufRead to take 500ms and BufNew to take > multiple seconds, would you? The bufnew autocommands happ

Re: Vim startup profiling

2017-05-24 Thread Antony Scriven
Your colorscheme or vimrc or both appears to be causing syncolor.vim to go bananas. I'd take a look at the code there to find out what's going on. filetype.vim and menu.vim are just big. You can disable loading menu.vim with `set guioptions+=M` if you don't need it. --Antony 2017-05-24 9:39 GMT+01

Re: Bug in ftdetect?

2017-05-24 Thread Antony Scriven
P.S. If you want to detect name changes, there's BufFilePost. --Antony On 24 May 2017 at 08:17, Antony Scriven wrote: > Try taking out the BufNew autocmd. That'll get triggered for every > file in the args list, whereas BufRead is only triggered for the first > one that'

Re: Bug in ftdetect?

2017-05-24 Thread Antony Scriven
Try taking out the BufNew autocmd. That'll get triggered for every file in the args list, whereas BufRead is only triggered for the first one that's actually edited. FWIW 'BufNew' is not in the template ftdetect file in the docs. --Antony On 23 May 2017 at 22:28, Frew Schmidt wrote: > On Tuesday,

Spell checking a word straddling @Spell and @NoSpell

2017-05-20 Thread Antony Scriven
Hi folks If a word straddles two syntax items, and the first allows spell checking but the second does not, then spell checking still occurs on the word as a whole. So it looks like the spell clusters define where spell checking can start, but not where it stops. Is this intentional? If so, is it

Re: Vim wiki editable by git

2013-02-28 Thread Antony Scriven
On 24 February 2013 23:34, Marc Weber wrote: > As you all know I wrote VAM to solve a problem: Vim plugins > distribution. > > The Vim community suffers from a second problem: There > are many plugins - some are outdated - and its sometimes > hard to find the "jewels" - because they may be h

Re: ruler / statusline

2012-11-06 Thread Antony Scriven
On 7 November 2012 01:03, John Little wrote: > On Tuesday, November 6, 2012 6:42:57 AM UTC+13, shawn wilson wrote: > > rulerformat almost does what i want but it > > seems to only allow 18 characters in that space. > > A bit of experimentation, and 40 characters seems to be > allowed. I trie

Re: ruler / statusline

2012-11-06 Thread Antony Scriven
On 5 November 2012 17:42, shawn wilson wrote: > [...] > > i want a status bar that doesn't take up an extra line. > so, basically something that takes up the line where > i enter commands and goes away when i enter commands. > rulerformat almost does what i want but it seems to only > allow

Re: Two search patterns

2011-01-25 Thread Antony Scriven
On 23 January 2011 21:17, Tim Chase wrote: > [...] > > Case #2: > > Start Vim (-u NONE) on a document > Perform a replacement (either a null-op, or just the > first-in-a-line with further matches later in the line, > or a replacement that allows for the pattern to be found > again) > >

Re: Context aware syntax?

2010-04-26 Thread Antony Scriven
On 20 April 2010 11:46, Ovid wrote: > I'm using a simple syntax file to highlight the TAP > protocol > (http://en.wikipedia.org/wiki/Test_Anything_Protocol). > The syntax can be found here: > http://github.com/threebytesfull/perltest/blob/master/syntax/TAPVerboseOutput.vim > > There are two

Re: Is there a variable containing all tokens that matched a regex search term?

2010-04-10 Thread Antony Scriven
On 10 April 2010 12:29, Christian Brabandt wrote: > Hi tomPorter! > > On Fr, 09 Apr 2010, tomPorter wrote: > > Is there a way to create a new window and populate it > > with only the found items? You snipped the rest of the specification. > I would do it like this, which means > :redir =>

Re: Is there a variable containing all tokens that matched a regex search term?

2010-04-09 Thread Antony Scriven
On 9 April 2010 22:25, tomPorter wrote: > If I enter a regex search term, all occurrences of the > matched items in a window will be highlighted. > > Is there a way to create a new window and populate it > with only the found items? > > OR is there a variable that contains all items matchin

Re: How powerful is language build in vim compare with the language build in emacs?

2010-03-29 Thread Antony Scriven
On 28 March 2010 09:25, Teemu Likonen wrote: > [...] > >    GCC         0.47 seconds    (the hand-optimized version) >    SBCL        0.67 seconds    (with DECLARE and THE expressions) >    GForth      3.8 seconds     (the hand-optimized version) >    SBCL        9.5 seconds     (without DE

Re: No more 8-character limit?

2010-03-29 Thread Antony Scriven
On 29 March 2010 19:30, Yakov wrote: > On Mar 29, 5:46 pm, Tony Mechelynck > wrote: > > > Even on later Windows systems, 8.3 names still exist > > because they are > > Are we going to rename vim to something like > visualeditorcompatiblewithvi now ? Why? Not everything warrants a catchy

Re: 'w' command to actually move to the next word

2010-03-25 Thread Antony Scriven
On 26 March 2010 02:38, AK wrote: > Antony Scriven wrote: > > [...] > > > Well, if you're doing it properly you should perhaps map > > w to a function. Maybe something along the lines of: > > > >    nno :silent call MyWFunction(v:count1,

Re: 'w' command to actually move to the next word

2010-03-25 Thread Antony Scriven
On 26 March 2010 01:56, Tim Chase wrote: > Sven Guckes wrote: > > > > * AK [2010-03-26 02:11]: > > > > > > Is there any way to get vim's 'w' command > > > (and similar) to move from word to word? > > [...] Well a complete definition of what the OP meant by `word' was not given, but I ass

Re: 'w' command to actually move to the next word

2010-03-25 Thread Antony Scriven
On 26 March 2010 00:42, AK wrote: > Is there any way to get vim's 'w' command (and similar) > to move from word to word? > > E.g.: tar > > I want vim to see this as 4 words separated by non-words > (i.e. whitespace and punctuation). After all, tar, foo, > bar and jar are words and =" is

Re: How powerful is language build in vim compare with the language build in emacs?

2010-03-25 Thread Antony Scriven
On 25 March 2010 23:17, Tony Mechelynck wrote: > On 15/02/10 23:33, Ben Schmidt wrote: > [...] > > > > Vim is essentially an imperative procedural language. > > Lisp is essentially a functional language. Most people > > find imperative languages easier to understand because > > they're a bi

Re: Jump to Javascript function prototype

2010-03-23 Thread Antony Scriven
On 23 March 2010 07:20, Gareth Oakes wrote: > [... on omnicompletion of ECMAScript ...] > > It now references my tags file (yay!). The only problem > now is that some tags can't be resolved. For example, > I have an object A and object B. Each object is of > a different "class". Each object

Re: best C++ plugin for vim?

2010-03-12 Thread Antony Scriven
On 12 March 2010 00:58, Aman Jain wrote: > I would like to know what plugins are most useful while > writing C++ code. I am currently using trinity which is > a combination of Taglist, Source Explorer, NerdTree. > > I can see the definitions and all that simple stuff. > > But what seems to

Re: Unexpected behaviour of File browser in multi-windows environment

2010-03-04 Thread Antony Scriven
On 4 March 2010 17:01, Patrick Texier wrote: > Le Thu, 04 Mar 2010 10:58:18 -0500, Charles Campbell a écrit dans le > message <4b8fd89a.7080...@nasa.gov> : > > > Unfortunately Content-Type: text/plain would not have > > guaranteed fixed width.  Necessary for proper viewing. > > text/plain

Re: Please, suggest a font!

2010-03-03 Thread Antony Scriven
Dotan Cohen wrote: > I have been trying to move to GVIM from Kate, but as > I prefer proportional fonts I find the GVIM look to be to > hard on my eyes. I have been looking up and down for > a decent font that does not look outdated in GVIM yet has > good differention betweel 0/O, I/l/1, and

Re: math, utf-8, and windows

2010-03-03 Thread Antony Scriven
Charles Campbell wrote: > I've written a math keymap and menu plugin > (http://www.vim.org/scripts/script.php?script_id=2723) which generates > various math-related glyphs with utf-8 encoding. > > As a sampling... (which may or may not show up properly > in some browsers, so this is somethin

Re: How powerful is language build in vim compare with the language build in emacs?

2010-02-19 Thread Antony Scriven
On 20 February 2010 00:38, bill lam wrote: > ven, 19 Feb 2010, Antony Scriven skribis: > > Not 100% sure what you mean here, but writing HOFs > > shouldn't be complex. I hope you don't mind me > > switching to what is a more familiar language for me. > >

Re: How powerful is language build in vim compare with the language build in emacs?

2010-02-19 Thread Antony Scriven
On 19 February 2010 07:34, bill lam wrote: > ven, 19 Feb 2010, Teemu Likonen skribis: > > > [...] > > > > Good. Then perhaps (reduce ) is > > also in the category of easy-to-read. I thought I had > > found an area in Lisp code which is difficult to > > understand quickly but it seems I wa

Re: How powerful is language build in vim compare with the language build in emacs?

2010-02-18 Thread Antony Scriven
On 18 February 2010 12:14, Teemu Likonen wrote: > [...] > > Higher-order functions are standard stuff in Lisp but > probably weird for many people because the the concept is > not common and the feature of first-class functions is > not available in many languages. Nevertheless they are >

Re: How powerful is language build in vim compare with the language build in emacs?

2010-02-18 Thread Antony Scriven
On 18 February 2010 12:53, Tom Link wrote: > > But really Common-Lispers would write the same functionality with this: > > > >     (reduce #'+ '(1 2 3 4)) Well that's just (+ 1 2 3 4) :-) > So cl with its vast standard library provides a function > for that. That's cool of course but nothi

Re: How powerful is language build in vim compare with the language build in emacs?

2010-02-18 Thread Antony Scriven
2010/2/18 Mikołaj Machowski : > Dnia 18-02-2010 o godz. 13:14 Teemu Likonen napisał(a): > > > > >     (reduce #'+ '(1 2 3 4)) > > > > To get sum of table elements you can use this in Vim: > > exe 'echo ' join([1,2,3,4], '+') > > I know this is not what are you really talking about but I

Re: how to fix (how did I break it?) my language syntax indentation

2010-02-14 Thread Antony Scriven
On 13 February 2010 09:09, Linda A W wrote: > Linda W wrote: > > > [... perl indent script not working; closing brace in > > wrong place ... ] > > [...] just found out "we" didn't have "ai" set)... > [...] Perl indenting works without 'ai' set. Maybe 'indentkeys' is at fault. --Anton

Re: Programming With Proportional Fonts?

2010-02-11 Thread Antony Scriven
On 10 February 2010 20:45, Spencer Collyer wrote: > On Fri, 05 Feb 2010 00:20:44 -0800, Linda A W wrote: > > [...] > > Personally I'd rather the time and effort that would be > wasted adapting Vim to support proportional fonts was > instead directed towards making it even more featureful

Re: Programming With Proportional Fonts?

2010-02-07 Thread Antony Scriven
On 5 February 2010 08:20, Linda A W wrote: > Paul wrote: > > > > On Sat, Jan 23, 2010 at 12:21:57PM +0200, Nicolas Aggelidis wrote: > > > > > > whats your opinion? Repeat the question in the body of your mail. > > I prefer monospaced. Proportional looks untidy when you > > have a list

Re: [CURIOUSITY] am i using

2010-02-07 Thread Antony Scriven
On 1 February 2010 03:26, pansz wrote: > [...] > > IMO most serious vim users should compile their own vim. > Only casual users should rely on distribution-specific > version. I'm busy enough that I don't even know what the latest version of Vim is, never mind compile my own. --Antony --

Re: How long is too long for .vimrc?

2009-02-09 Thread Antony Scriven
2009/2/8 R. Hicks : > I am not running into problems at all. I was just > curious. I am a basic user of Vim and my .vimrc is 305 > lines long (including comments and blank lines). Is there > a point where you modularize it? I am not sure I see the > point there. Is there a "best practive" fo

Re: case insensitive iabbrev

2009-01-27 Thread Antony Scriven
2009/1/25 Szymon Guz : > is there any way to have some kind of case insensitive > iabbrev to have it like this: > > iabbrev integer INTEGER > > so all words like these: > > integER > Integer > INTeger > > will be changed into INTEGER? Try this as a starting point. imap guiwdiwa"

Re: Visual feedback on yank?

2009-01-17 Thread Antony Scriven
On Sat, Jan 17, 2009 at 10:11 PM, Gary Johnson wrote: > On 2009-01-17, Wincent Colaiuta wrote: > > Is there any way to get Vim to highlight a range of > > text when I yank so that I can get some visual > > feedback? > > > > [...] > > The solution to that is to visually select the region

Re: scripting: split into seperate files based on line contents

2009-01-15 Thread Antony Scriven
On Wed, Jan 14, 2009 at 5:45 PM, Linus Neumann wrote: > [...] > > What is the script supposed to do? (relevant) The .dat or > .csv file needs to be split up into seperate .txt-Files, > based on certain variables, that are contained in the > .dat/.csv-file. > > Here for a (shortened) exam

Re: Navigating complicated file hierarchies

2009-01-13 Thread Antony Scriven
On Tue, Jan 13, 2009 at 11:50 PM, Antony Scriven wrote: > On Tue, Jan 13, 2009 at 3:22 PM, Per Thulin > wrote: > > > [...] > > > > One simple little integration thing that would fix it all > > would be if could do this: > > > > 1. From vim

Re: Navigating complicated file hierarchies

2009-01-13 Thread Antony Scriven
On Tue, Jan 13, 2009 at 3:22 PM, Per Thulin wrote: > [...] > > One simple little integration thing that would fix it all > would be if could do this: > > 1. From vim, run :shell > 2. Find the files I'm after > 3. Open these in the vim session I ran :shell from. > > Hold your hats now,

Re: Easiest way to insert a blank line?

2009-01-09 Thread Antony Scriven
On Fri, Jan 9, 2009 at 11:08 PM, Tony Mechelynck wrote: > On 09/01/09 15:52, Ben Fritz wrote: > > > > > > On Fri, 09 Jan 2009 16:41:45 +0800, Tony Mechelynck wrote: > > > > > Have you tried the about:config page (or opera:config > > > or whatever Opera calls it, I'm no Opera guru)? > >

Re: top/bottom posting [Re: an independent Chinese IME is available]

2009-01-09 Thread Antony Scriven
On Thu, Jan 8, 2009 at 10:09 PM, Sean wrote: > > > [...] > > [...] > > Well, data file in binary is not an option. [...] Which is nothing to do with the subject line. C'mon people, get it together! --Antony --~--~-~--~~~---~--~~ You received this message fro

Re: new to VIM

2008-12-31 Thread Antony Scriven
On Wed, Dec 31, 2008 at 12:27 PM, Tony Mechelynck wrote: > On 31/12/08 11:14, Antony Scriven wrote: > > [...] > > > > Mappings are short key sequences. What happens when you have > > lots of :abbrevs? You need longer names so that you can > > remember th

Re: new to VIM

2008-12-31 Thread Antony Scriven
2008/12/31 pansz : > 程梁 写道: > > Thanks a lot for your help. What I want to get is that, > > turn off space or enter for expanding abbreviations and > > make other keys such as Ctrl+B do the same thing. > > Because I maybe define a lot abbreviations and I cannot > > map so much keys to an abb

Re: new to VIM

2008-12-31 Thread Antony Scriven
2008/12/29 Ben Schmidt : > I don't know of any way to turn off abbreviation > expansion when you use space or enter, though. That's quite easy: imap and define your abbrevs like so: ab foo foobarbaraann() Then foo will expand to foobarbaraann() but foo will not. Obviously foo will

Re: Indent with tabs, align with spaces

2008-12-24 Thread Antony Scriven
2008/12/24 Matt Wozniski : > On Tue, Dec 23, 2008 at 11:26 PM, Tony Mechelynck wrote: > > > > On 24/12/08 01:04, Oliver Zheng wrote: > > > > > > So it seems like there is no feature available. > > > I guess I'll request this feature on vim.org. > > > > It's hard for Vim to guess that in