Skip to content

Instantly share code, notes, and snippets.

@ryotako
Last active September 8, 2016 06:41
Show Gist options
  • Save ryotako/6732d28730a76c2c64f4e03d691d5492 to your computer and use it in GitHub Desktop.
Save ryotako/6732d28730a76c2c64f4e03d691d5492 to your computer and use it in GitHub Desktop.
switch.vimでmarkdownのチェックボックスをトグルする設定
" switch.vim
let g:switch_custom_definitions =
\[
\ { '\v^( *- *)([^ \[].*)$' : '\1[ ] \2' },
\ { '\v^( *- *)\[ \](.*)$' : '\1[x]\2' },
\ { '\v^( *- *)\[x\] ?(.*)$' : '\1\2' },
\]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment