Skip to content

Commit

Permalink
Fixes broken compatibility with the 'filestyle' plugin (#4)
Browse files Browse the repository at this point in the history
Due to incorrecly defined augroup using 'vim-todo-lists' and 'filestyle'
breaks the 'filestyle' plugin autocommands.
  • Loading branch information
aserebryakov committed Jul 19, 2017
1 parent b0a43c5 commit fae5ae2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ Changelog
* Easy adding new items
* Easy items toggling

#### 0.1.1

* Fixes broken compatibility with the [filestyle](https://github.com/aserebryakov/filestyle) plugin

Credits
-------

Expand Down
6 changes: 5 additions & 1 deletion doc/vim-todo-lists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*vim-todo-lists.txt* Version 0.1.0
*vim-todo-lists.txt* Version 0.1.1
*vim-todo-lists*

Plugin for TODO lists management.
Expand Down Expand Up @@ -115,6 +115,10 @@ SOFTWARE.
* Easy adding new items
* Easy items toggling

0.1.1

* Fixes broken compatibility with the [filestyle] plugin

==============================================================================
8. Credits *VimTodoListsCredits*

Expand Down
7 changes: 6 additions & 1 deletion plugin/vim-todo-lists.vim
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,13 @@ endfunction
if !exists('g:vimtodolists_plugin')
let g:vimtodolists_plugin = 1

if exists('vimtodolists_auto_commands')
echoerr 'VimTodoLists: vimtodolists_auto_commands group already exists'
exit
endif

"Defining auto commands
augroup filestyle_auto_commands
augroup vimtodolists_auto_commands
autocmd!
autocmd BufRead,BufNewFile *.todo call VimTodoListsInit()
augroup end
Expand Down

0 comments on commit fae5ae2

Please sign in to comment.