Skip to content

Commit 1d2e938

Browse files
committed
remove debug code
1 parent 56be7ef commit 1d2e938

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,6 @@ Formatting is executed on `BufWritePre` event.
8484
When the value is 1, inserted lines are automatically formatted on leaving insert mode.
8585
Formatting is executed on `InsertLeave` event.
8686

87-
![auto formatting on InsertLeave](http://gifzo.net/CPrVbHnKMe.gif)
88-
89-
In above screenshot, the inserted `if` statement is automatically formatted on leaving insert mode.
90-
(Just before formatting the statement, I leave insert mode.)
91-
9287
### Vimrc Example
9388

9489
```vim

doc/clang-format.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,7 @@ g:clang_format#auto_format_on_insert_leave
162162
When the value is 1, the inserted lines are automatically formatted on
163163
leaving insert mode. Formatting is executed on |InsertLeave| event.
164164

165-
Below link is a screenshot of an example for this feature. Inserted 'if'
166-
statement is automatically formated on leaving insert mode.
167165

168-
http://gifzo.net/CPrVbHnKMe.gif
169166

170167
==============================================================================
171168
SETUP EXAMPLE *vim-clang-format-setup-example*

plugin/clang_format.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ command! -range=% -nargs=0 ClangFormatEchoFormattedCode echo clang_format#format
1515
augroup plugin-clang-format-auto-format
1616
autocmd!
1717
autocmd BufWritePre * if &ft ==# 'cpp' && g:clang_format#auto_format | call clang_format#replace(1, line('$')) | endif
18-
autocmd FileType c,cpp,objc if 1 || g:clang_format#auto_format_on_insert_leave | call clang_format#enable_format_on_insert() | endif
18+
autocmd FileType c,cpp,objc if g:clang_format#auto_format_on_insert_leave | call clang_format#enable_format_on_insert() | endif
1919
augroup END
2020

2121
let g:loaded_clang_format = 1

0 commit comments

Comments
 (0)