xaizek / vim-includefixer (License: BSLv1) (since 2018-12-07)
Vim plugin to automatically categorize and alphabetize #include headers
Commit 40c5d0dc6746b7cd3525303387384ced4d0e1224

Fix range bug
Accidentally wasn't removing the final line needed to remove all the
empty lines
Author: Deon Poncini
Author date (UTC): 2013-12-15 01:40
Committer name: Deon Poncini
Committer date (UTC): 2013-12-15 01:40
Parent(s): 71f30a5de6c94800c209454aab7c173bdb14f0e6
Signing key:
Tree: 3d7d2bd5b999e303523297a0e13b984495f930c2
File Lines added Lines deleted
plugin/includefixer.vim 4 4
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 _'
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vim-includefixer

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vim-includefixer

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master