{"push_id":1227453901,"size":3,"distinct_size":3,"ref":"refs/heads/master","head":"a3aefb5c10a80de49309c1b1970fa8d2b53e8a33","before":"ff2c607d99c1e180dd09be97502042e346306558","commits":[{"sha":"829bc101130e67776b3d0943276e4599f481f3a7","author":{"name":"Joe Lencioni","email":"66157eedc2dd899ebf350e4c3e80849008762eb4@airbnb.com"},"message":"Vim: update custom dictionary","distinct":true,"url":"https://api.github.com/repos/lencioni/dotfiles/commits/829bc101130e67776b3d0943276e4599f481f3a7"},{"sha":"e4a2bbbdad409d510228a75a8dec275817f6223d","author":{"name":"Joe Lencioni","email":"66157eedc2dd899ebf350e4c3e80849008762eb4@airbnb.com"},"message":"Vim: add feature checks around spellcheck settings\n\nThis feature is not available when the syntax feature has been disabled\nat compile time. Adding this check should make my configuration more\nrobust and portable.","distinct":true,"url":"https://api.github.com/repos/lencioni/dotfiles/commits/e4a2bbbdad409d510228a75a8dec275817f6223d"},{"sha":"a3aefb5c10a80de49309c1b1970fa8d2b53e8a33","author":{"name":"Joe Lencioni","email":"66157eedc2dd899ebf350e4c3e80849008762eb4@airbnb.com"},"message":"Vim: improve commit message bulleted list formatting\n\nOnce upon a time, I lived in a world where I could create nice bulleted\nlists in my commit messages and I would get really nice auto indenting\nas the line wrapped, and I could use \"gq\" to nicely format my lists. Vim\nwas happy to just do the right thing, and that made me happy.\n\nThen, unbeknownst to me, along came a pull request to vim-git that shook\nmy world [0]. Suddenly, my bulleted lists weren't wrapping nicely\nanymore. And, when I tried to run trusty, old \"gq\" on them to straighten\nthem up, they would go from looking like a list to being all smashed\ntogether. My little lists were sad, and that made me sad. I was left in\na constant state of confusion. What had I done to deserve this?\n\nToday I spent some time trying to figure this out. I pretty quickly\ndetermined that there was something amiss with my `comments` and\n`formatoptions` settings in git commit messages, but I wasn't sure what\nwas causing this. I knew I hadn't modified my settings to do this, so I\nfigured it must be a plugin.\n\nI sprung into action, doing a binary search by moving plugins in and out\nof my bundle directory. I eventually discovered that vim-git was to\nblame. Prying open the plugin, I discovered the offending lines that\nwere overriding the `comments` and `formatoptions` settings. I verified\nthat these lines were the sole culprit by commenting them out.\n\n```\nsetlocal comments=:# commentstring=#\\ %s\nsetlocal formatoptions-=c formatoptions-=r formatoptions-=o formatoptions-=q\n```\n\nThe solution is to augment these settings to allow for my nice bulleted\nlist formatting to return. Since these happen in a plugin, and I want to\nensure that my settings take precedence over the plugin, I placed them\nin the `after/ftplugin` directory.\n\nWith these settings securely in place, I can go about blissfully\nformatting my commit messages with bulleted lists again. Peace, at last.\n\n[0]: https://github.com/tpope/vim-git/pull/38","distinct":true,"url":"https://api.github.com/repos/lencioni/dotfiles/commits/a3aefb5c10a80de49309c1b1970fa8d2b53e8a33"}]}
{"actor":{"display_login":"lencioni"}}