This file contains hidden or 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
fu! GoTestPackage() | |
let command = "go test ." | |
call CleanShell(command) | |
endfunction | |
fu! GoTestFile() | |
This file contains hidden or 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
fu! GenerateUUID() | |
python << EOF | |
import uuid | |
import vim | |
# output a uuid to the vim variable for insertion below | |
vim.command("let generatedUUID = \"%s\"" % str(uuid.uuid4())) | |
EOF |
This file contains hidden or 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
# extract whats in front of extension in bash script | |
# name = "jon.coffee" | |
# echo "${name %%coffee}" | |
# http://tldp.org/LDP/abs/html/string-manipulation.html | |
# using the % / # string modifiers | |
# name = JonMorehouse | |
# remove up to the element | |
# remove element and print after |
NewerOlder