VIM header composer is an utility script wrote in shell very simple to make header's based on comments in vim such as above.
The string will be formated and fulfilled with characters following your desired style.
############################################
#### CREATE FILE BAR AND SEND TO SERVER ####
############################################
RUN echo "foo" > bar
RUN scp -i bar example.com:/dev/null
Clonning this repository and linking it to your .../bin/
folder.
git clone git@github.com:ernandojs/vim-header-composer.git
sudo mv vim-header-composer /opt/
sudo ln -s /opt/vim-header-composer/vhc /usr/local/bin
echo 'map <F2> :!vhc' >> ~/.vimrc
You can also perform installation with make install
.
- Install this script globally or not;
- Open any file using VI/VIM;
- In normal VIM mode (press <ESC>);
- Goto VISUAL mode (select the line - or lines - with SHIT + V);
- Press <F2> then <ENTER>;
Instead of using the characters and the standard format you can set the string to process using styles as seen below.
vhc <<< "vhc:prettybox;Woooow I'm using prettybox!"
produces:
┌─────────────────────────────┐
│ Woooow I'm using prettybox! │
└─────────────────────────────┘
For further information about styles see more examples.