Skip to content

Instantly share code, notes, and snippets.

View gcgbarbosa's full-sized avatar
💌

George C. G. Barbosa gcgbarbosa

💌
View GitHub Profile
@gcgbarbosa
gcgbarbosa / vim_crash_course.md
Created March 12, 2023 21:18 — forked from dmsul/vim_crash_course.md
Vim Crash Course

NOTE: Specific examples given for options, flags, commands variations, etc., are not comprehensive.

NORMAL MODE

Vim has 2 main "modes", that chance the behavior of all your keys. The default mode of Vim is Normal Mode and is mostly used for moving the cursor and navigating the current file.

Some important (or longer) commands begin with ":" and you will see the text you enter next at the bottom left of the screen.

:q[uit] - quit (the current window of) Vim. ("Window" here is internal to Vim, not if you have multiple OS-level windows of Vim open at once.)
:q! - force quit (if the current buffer has been changed since the last save)
:e[dit] {filename} - read file {filename} into a new buffer.

@gcgbarbosa
gcgbarbosa / hypatia.recipe
Created August 18, 2022 21:38
Hypatia Singularity Recipe
BootStrap: docker
From: ubuntu:20.04
%post
# General
apt-get -y update
# make sure tzdata does not ask for anything
DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata
apt-get install -y software-properties-common pip python git cmake wget zip unzip