File plugin/includefixer.vim changed (mode: 100644) (index 05d4979..53694ac) |
2 |
2 |
" Maintainer: Deon Poncini |
" Maintainer: Deon Poncini |
3 |
3 |
" Version: 0.1 |
" Version: 0.1 |
4 |
4 |
|
|
5 |
|
if exists('g:loaded_include_fixer') |
|
6 |
|
finish |
|
7 |
|
endif |
|
|
5 |
|
"if exists('g:loaded_include_fixer') |
|
6 |
|
" finish |
|
7 |
|
"endif |
8 |
8 |
let g:loaded_include_fixer = 1 |
let g:loaded_include_fixer = 1 |
9 |
9 |
|
|
10 |
10 |
let s:cstd = ["assert", |
let s:cstd = ["assert", |
|
... |
... |
function! s:ClearEmpty(start,end) |
93 |
93 |
" delete every empty line between the start and end ranges of includes |
" delete every empty line between the start and end ranges of includes |
94 |
94 |
if (line(".") < a:start) |
if (line(".") < a:start) |
95 |
95 |
return |
return |
96 |
|
elseif(line(".") >= a:end) |
|
|
96 |
|
elseif(line(".") > a:end) |
97 |
97 |
return |
return |
98 |
98 |
endif |
endif |
99 |
99 |
execute 'delete _' |
execute 'delete _' |