This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun! CppHeaderFileHook() | |
let l:filename = tolower(expand("%")) | |
let l:filename = substitute(l:filename, ".hh$","_HH_", "") | |
let l:filename = toupper(l:filename) | |
source ~/templates/cpp_header.template | |
execute "silent %s/FILENAME_HH_/".l:filename."/g" | |
endfun | |
autocmd BufNewFile *.hh call CppHeaderFileHook() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
scriptname="script_template" | |
### functions | |
function usage | |
{ | |
echo -e "usage: $scriptname MANDATORY [OPTION]\n" | |
echo -e "MANDATORY mandatory parameter:" | |
echo -e " -m, --mandatory VAL The desc of the mandatory parameter\n" |
NewerOlder