You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
498 B
JSON

{
"description": "Modern Unix systems run 'vim' binary when 'vi' is called.",
"functions": {
"shell": [
{
"code": "vi -c ':!/bin/sh' /dev/null"
},
{
"code": "vi\n:set shell=/bin/sh\n:shell\n"
}
],
"file-write": [
{
"code": "vi [file]\niDATA\n^[\nw\n"
}
],
"file-read": [
{
"code": "vi [file]"
}
],
"sudo": [
{
"code": "sudo vi -c ':!/bin/sh' /dev/null"
}
]
}
}