{"thread":{"id":"17419","subject":"Vim's gitconfig filetype (and folding)","startedAt":"2009-01-28T16:56:54Z","lastAt":"2009-01-28T16:56:54Z","messageCount":1,"participants":["Ted Pavlic"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"102324","messageId":"49808E56.3090300@tedpavlic.com","threadId":"17419","inReplyTo":null,"subject":"Vim's gitconfig filetype (and folding)","fromName":"Ted Pavlic","fromEmail":"ted@tedpavlic.com","sentAt":"2009-01-28T16:56:54Z","receivedAt":"2009-01-28T16:56:54Z","isPatch":false,"sender":{"key":"ted@tedpavlic.com","avatar":"https://gravatar.com/avatar/d085392370ff4c028cf17a0e81e0647744c9682fbcb36b499f31d08ef80ef569?d=mp&s=160"},"body":"I don't know who is responsible for maintaining the git-related files \ndistributed with Vim, but it would be nice if folding was enable for the \ngitconfig filetype.\n\nI've attached a sample set of folding rules that works well for me... \nRight now I have the attached file in ~/.vim/ftplugin/gitconfig.vim.\n\nI'll paste those rules here (but beware of word wrap):\n\n:set \nfoldexpr=getline(v:lnum)=~'^[;#]\\\\s*\\\\(ex\\\\\\|vi\\\\\\|vim\\\\):'?\\\">1\\\":((getline(v:lnum)=~\\\"^#\\\\\\\\=[\\\")?\\\">1\\\":\\\"1\\\")\n:set fdm=expr\n\n--Ted\n\n\n-- \nTed Pavlic <ted@tedpavlic.com>\n\n   Please visit my ALS association page:\n         http://web.alsa.org/goto/tedpavlic\n   My family appreciates your support in the fight to defeat ALS.\n\n--~--~---------~--~----~------------~-------~--~----~\nYou received this message from the \"vim_use\" maillist.\nFor more information, visit http://www.vim.org/maillist.php\n-~----------~----~----~----~------~----~------~--~---\n\n\n\n:set foldexpr=getline(v:lnum)=~'^[;#]\\\\s*\\\\(ex\\\\\\|vi\\\\\\|vim\\\\):'?\\\">1\\\":((getline(v:lnum)=~\\\"^#\\\\\\\\=[\\\")?\\\">1\\\":\\\"1\\\")\n:set fdm=expr\n"}]}