Skip to content

Instantly share code, notes, and snippets.

View nicolaka's full-sized avatar

Nicola Kabar nicolaka

  • HashiCorp
  • Austin, TX
View GitHub Profile
@nicolaka
nicolaka / vim_cheatsheet.md
Created March 24, 2017 20:35 — forked from awidegreen/vim_cheatsheet.md
Vim shortcuts

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
#!/bin/bash
while [[ $# -gt 1 ]]
do
case "$1" in
-f | --file)
file="$2"
shift 2
;;
-h | --hostname)