]> git.madduck.net Git - etc/vim.git/blob - .vim/snippets/sh.snippets

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

check in mediawiki syntax/ftplugin from wikipedia
[etc/vim.git] / .vim / snippets / sh.snippets
1 # #!/bin/bash
2 snippet #!
3         #!/bin/bash
4         
5 snippet if
6         if [[ ${1:condition} ]]; then
7                 ${2:#statements}
8         fi
9 snippet elif
10         elif [[ ${1:condition} ]]; then
11                 ${2:#statements}
12 snippet for
13         for (( ${2:i} = 0; $2 < ${1:count}; $2++ )); do
14                 ${3:#statements}
15         done
16 snippet wh
17         while [[ ${1:condition} ]]; do
18                 ${2:#statements}
19         done
20 snippet until
21         until [[ ${1:condition} ]]; do
22                 ${2:#statements}
23         done
24 snippet case
25         case ${1:word} in
26                 ${2:pattern})
27                         ${3};;
28         esac