<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vim-glsl.git/indent, branch master</title>
<subtitle>Vim runtime files for OpenGL Shading Language</subtitle>
<id>https://git.agrajag.net/vim-glsl.git/atom?h=master</id>
<link rel='self' href='https://git.agrajag.net/vim-glsl.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.agrajag.net/vim-glsl.git/'/>
<updated>2022-05-10T19:36:43Z</updated>
<entry>
<title>Ensure cinoptions is set to a known value (#24)</title>
<updated>2022-05-10T19:36:43Z</updated>
<author>
<name>David Briscoe</name>
<email>idbrii@gmail.com</email>
</author>
<published>2022-05-10T19:36:43Z</published>
<link rel='alternate' type='text/html' href='https://git.agrajag.net/vim-glsl.git/commit/?id=bfd330a271933c3372fcfa8ce052970746c8e9dd'/>
<id>urn:sha1:bfd330a271933c3372fcfa8ce052970746c8e9dd</id>
<content type='text'>
Fix `set cinoptions=#1` causes incorrect define indenting.

To get correct glsl indentation, we want default 'cinoptions'. It's useful to
`set cinoptions=#1` (to allow most filetypes to use # comments), so we should
ensure we're using a known set of indent options and revert to the default.

The user can still customize cinoptions in ~/.vim/after/indent/glsl.vim.

## Test
```vim
:set cinoptions=#1
:edit test.glsl
gg=G
```

```glsl
// test.glsl
#define PI 4
#define TAU 8 // line gets 1 space indent

float f(float x) {
	return x * 2;
}
```</content>
</entry>
<entry>
<title>Update my name and email</title>
<updated>2022-02-06T15:41:49Z</updated>
<author>
<name>Sergii Tykhomyrov</name>
<email>sergii@tykhomyrov.com</email>
</author>
<published>2022-02-06T15:41:49Z</published>
<link rel='alternate' type='text/html' href='https://git.agrajag.net/vim-glsl.git/commit/?id=42ffed856d5d156ec0f9c12233be34182cbb08ea'/>
<id>urn:sha1:42ffed856d5d156ec0f9c12233be34182cbb08ea</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Enable auto-format of multiline comments (#15)</title>
<updated>2017-10-15T13:09:28Z</updated>
<author>
<name>Zaven Muradyan</name>
<email>zaven@skepsi.me</email>
</author>
<published>2017-10-15T13:09:28Z</published>
<link rel='alternate' type='text/html' href='https://git.agrajag.net/vim-glsl.git/commit/?id=697eca9784ffac39308e1fd45e0300582c3d060b'/>
<id>urn:sha1:697eca9784ffac39308e1fd45e0300582c3d060b</id>
<content type='text'>
This adds the `r`, `o`, and `q` format options which allow automatic insertion of the comment leader character in multiline comments. See `:help fo-table` for details on these options (they're all related to wrapping/leader-insertion for multiline comments).</content>
</entry>
<entry>
<title>Add syntax highlighting for WebGL shaders in &lt;script&gt; tags</title>
<updated>2014-02-09T14:10:13Z</updated>
<author>
<name>Sergey Tikhomirov</name>
<email>sergey@tikhomirov.io</email>
</author>
<published>2014-02-09T14:10:13Z</published>
<link rel='alternate' type='text/html' href='https://git.agrajag.net/vim-glsl.git/commit/?id=b62d69dcf6d03ff1317f111a2a035ad0b0374d56'/>
<id>urn:sha1:b62d69dcf6d03ff1317f111a2a035ad0b0374d56</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update maintainer's email</title>
<updated>2014-02-08T16:47:17Z</updated>
<author>
<name>Sergey Tikhomirov</name>
<email>sergey@tikhomirov.io</email>
</author>
<published>2014-02-08T16:47:17Z</published>
<link rel='alternate' type='text/html' href='https://git.agrajag.net/vim-glsl.git/commit/?id=a77148e9ef9f6299e9af2383e8124b02b23d5625'/>
<id>urn:sha1:a77148e9ef9f6299e9af2383e8124b02b23d5625</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Added indentation settings for GLSL</title>
<updated>2012-07-10T08:58:26Z</updated>
<author>
<name>Sergey Tikhomirov</name>
<email>me@stikhomirov.com</email>
</author>
<published>2012-07-10T08:58:26Z</published>
<link rel='alternate' type='text/html' href='https://git.agrajag.net/vim-glsl.git/commit/?id=d0d5b4d611e7d277f6cded030ac39c89bbee643e'/>
<id>urn:sha1:d0d5b4d611e7d277f6cded030ac39c89bbee643e</id>
<content type='text'>
</content>
</entry>
</feed>
