Using autocommand to set local formatprg

2022-06-13 Thread Spencer Collyer
i'm running Vim on an Arch Linux build. When editing *.txt files I want to set the formatprg to use the 'fmt' program, as well as modifying my 'diffopt' value for those files. I have the following lines in my .vim/filetype.vim: ~ if exists("did_load_filetypes") finish endif augroup

IR35 and possible closure of company

2019-12-10 Thread Spencer Collyer
, as it seems likely that more contracts are going to fall under the IR35 rules from April 2020 onwards, I'm wondering whether it is worth keeping Lasermount going. If I decided to shut it down, what is the tax situation like? How does Entrepreneurs Relief work? Regards, Spencer Collyer Lasermount

Re: Slow vim loading , how to find it out

2011-01-09 Thread Spencer Collyer
On Fri, 17 Dec 2010 19:31:37 +0800, Aaron Lewis wrote: Hi, Guess i've enabled too many plugins , vim on my Gentoo loads really slow ( approximately 3 seconds ) , is there anyways to debug , and find out the worst time consumers ? Thanks. Bit late replying to this I know, but

Re: make a reference colorscheme

2010-02-21 Thread Spencer Collyer
On Fri, 19 Feb 2010 17:48:49 -0800 (PST), Bee wrote: Thank you for the reply. I know about default, colorscheme and syntax coloring. I just wanted to learn more about redir and to see if I could redirect the output of :highlight thru TOhtml to create an HTML file thus saving the color

Re: hls Colour

2010-02-21 Thread Spencer Collyer
On Fri, 19 Feb 2010 11:54:43 +, Paul wrote: When I have hls on, the searched words are highlighted. When I press n or # to jump through them, the page might scroll up or down and there could be a number of hit results shown. I sometimes have to wiggle the cursor left and right so I can see

Re: Programming With Proportional Fonts?

2010-02-10 Thread Spencer Collyer
On Fri, 05 Feb 2010 00:20:44 -0800, Linda A W wrote: Maybe a better question would be something along the lines of do you think it would be possible for vim to function as well as a 10 year old copy of MS-Word when using a proportional font and allow one to edit a text document with

Re: set backupdir=/tmp rather than set nobackup ?

2010-02-06 Thread Spencer Collyer
On Thu, 4 Feb 2010 10:28:18 -0800, John Magolske wrote: To avoid accumulating backup files, I have in my vimrc: set writebackup set nobackup Which makes a backup before overwriting a file removes the backup after the file is successfully written. I'm considering using this instead:

Re: Garbled mail on list. Was: Text replacing question

2009-12-16 Thread Spencer Collyer
On Tue, 15 Dec 2009 16:49:27 -0500, Chris Jones wrote: On Sat, Dec 12, 2009 at 07:42:51PM EST, Chris Jones wrote: On Sat, Dec 12, 2009 at 06:15:10PM EST, Chris Jones wrote: [..] Replace paragrah 3 by paragraph 1: {d}ą }}}˛ v}pł | ą cursor in paragraph 1 - delete

Re: disable visual bell in insert mode for PHP file

2009-12-05 Thread Spencer Collyer
On Fri, 4 Dec 2009 23:40:01 -0600, Nat Williams wrote: On Fri, Dec 4, 2009 at 10:09 PM, Jon Trelfa jtre...@gmail.com wrote: On Fri, Dec 4, 2009 at 10:52 PM, Jon Trelfa jtre...@gmail.com wrote: PHP's OOP style uses the arrow (dash + greater-than symbol) to point to methods/properties

Re: Concatenate Commands

2009-11-27 Thread Spencer Collyer
On Fri, 27 Nov 2009 08:07:44 +0100, Johannes Bauer wrote: Hi vimers, I've got a simple question: How can I concatenate two commands in command mode so that they're on one line? I want something like this :%s/foo/bar/g :wn I'd like to concatenate them like (pseudosyntax, this will

Re: Auto indent on C file. Custom style

2009-10-08 Thread Spencer Collyer
On Thu, 8 Oct 2009 09:07:01 +0200, Brad Phelan wrote: It's not perfect by any means (in particular, when you first enter the code it doesn't seem to line up properly, but is fine once it's reformatted), but it does the job for me. Spencer Hey thanks for that. I made a quick fix

Re: Auto indent on C file. Custom style

2009-10-07 Thread Spencer Collyer
On Wed, 7 Oct 2009 04:51:36 -0700 (PDT), bradphelan wrote: Hi, I can't figure out how to customize cindent to achieve the following. Lists are arranged vertically so that the first and last bracket are aligned with each comma. Does anybody have an idea. const int foo ( int a

Re: Always open help window above current window

2009-09-20 Thread Spencer Collyer
On Sat, 19 Sep 2009 05:48:12 +0200, Tony Mechelynck wrote: On 01/09/09 12:35, Spencer Collyer wrote: In the help for the 'help' command it states the following: -88888--- :h[elp] Open a window and display

Re: Always open help window above current window

2009-09-20 Thread Spencer Collyer
On Sat, 19 Sep 2009 05:48:12 +0200, Tony Mechelynck wrote: I use the following to open the help window at the very bottom when I use F1, :h or :h {subject} (typing :help in full would revert to default behaviour); you could use the :abo[veleft] prefix instead of :bo[tright] to open just

Re: Why is there no 'very magic' option?

2009-09-20 Thread Spencer Collyer
On Fri, 18 Sep 2009 15:54:06 -0700 (PDT), bgold12 wrote: I recently started doing searches with 'very magic' turned on using \v. Obviously it would be really annoying to have to type the \v every time you want to search for something, so I mapped / to /\v, but this is still undesirable as

Re: changing what counts as a paragraph

2009-09-09 Thread Spencer Collyer
On Wed, 9 Sep 2009 10:54:54 +0800, Wayne wrote: On Wed, Sep 9, 2009 at 6:15 AM, Fuzzy Logic fuzz...@gmail.com wrote: Don't take this as combative, but I'm more concerned with answering a question correctly than arbitrary rules about top/bottom/side/inverted-with-slightly-offset

Always open help window above current window

2009-09-01 Thread Spencer Collyer
In the help for the 'help' command it states the following: -88888--- :h[elp] Open a window and display the help file in read-only mode. If there is a help window open already, use

Re: IntelliSense for C#

2009-03-30 Thread Spencer Collyer
On Sat, 28 Mar 2009 12:37:55 -0700 (PDT), Jeff Lanzarotta wrote: I simply pressed Reply and typed my reply. I can understand your annoyance but the most annoying thing on the Internet is not replying at the *top* of an email, it is rude people. And rudeness includes top-posting when the list

Re: how to map tab and c-i independently

2009-02-14 Thread Spencer Collyer
On Thu, 12 Feb 2009 11:35:10 +0100, Tony Mechelynck wrote: (I don't know how Vim does it on VAX/VMS, which use EBCDIC rather than ASCII -- EBCDIC originally went together with Hollerith cards). OT I know, but can I just point out that VAX/VMS uses ASCII, not EBCDIC. At least, none of the

Re: Replace using function and search text

2009-01-30 Thread Spencer Collyer
Many thanks Tony and Teemu - submatch() is exactly what I was missing! See, I knew there had to be a quick way of doing it - I just love the flexibility of VIm :) Spencer --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more

Replace using function and search text

2009-01-29 Thread Spencer Collyer
,$s/^/mv / -- I'm currently thinking about writing a function to do the replacements, but is there a simpler way of doing this in VIM? Spencer Collyer --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit