All of lore.kernel.org
 help / color / mirror / Atom feed
* Vim's gitconfig filetype (and folding)
@ 2009-01-28 16:56 Ted Pavlic
  0 siblings, 0 replies; only message in thread
From: Ted Pavlic @ 2009-01-28 16:56 UTC (permalink / raw)
  To: git, vim_use

[-- Attachment #1: Type: text/plain, Size: 918 bytes --]

I don't know who is responsible for maintaining the git-related files 
distributed with Vim, but it would be nice if folding was enable for the 
gitconfig filetype.

I've attached a sample set of folding rules that works well for me... 
Right now I have the attached file in ~/.vim/ftplugin/gitconfig.vim.

I'll paste those rules here (but beware of word wrap):

:set 
foldexpr=getline(v:lnum)=~'^[;#]\\s*\\(ex\\\|vi\\\|vim\\):'?\">1\":((getline(v:lnum)=~\"^#\\\\=[\")?\">1\":\"1\")
:set fdm=expr

--Ted


-- 
Ted Pavlic <ted@tedpavlic.com>

   Please visit my ALS association page:
         http://web.alsa.org/goto/tedpavlic
   My family appreciates your support in the fight to defeat ALS.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---


[-- Attachment #2: gitconfig.vim --]
[-- Type: text/plain, Size: 133 bytes --]

:set foldexpr=getline(v:lnum)=~'^[;#]\\s*\\(ex\\\|vi\\\|vim\\):'?\">1\":((getline(v:lnum)=~\"^#\\\\=[\")?\">1\":\"1\")
:set fdm=expr

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-28 16:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-28 16:56 Vim's gitconfig filetype (and folding) Ted Pavlic

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.