Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am permanuno on github.
  • I am permanuno (https://keybase.io/permanuno) on keybase.
  • I have a public key whose fingerprint is 5CDA 5DFA D015 47A5 AC1A D9A1 988F B573 5A6A F748

To claim this, I am signing this object:

# Sexy Solarized Bash Prompt, inspired by "Extravagant Zsh Prompt"
# Customized for the Solarized color scheme by Sean O'Neil
# Simplified for Mac by Sergio A. Valenzuela
if tput setaf 1 &> /dev/null; then
tput sgr0
if [[ $(tput colors) -ge 256 ]] 2>/dev/null; then
BASE03=$(tput setaf 234)
BASE02=$(tput setaf 235)
BASE01=$(tput setaf 240)

vimdiff cheat sheet

vimdiff commands

]c :        - next difference
[c :        - previous difference
do          - diff obtain
dp          - diff put
zo          - open folded text

zc - close folded text

@permanuno
permanuno / vim-fold.md
Last active December 18, 2015 19:19
vim folding cheat sheet

vim folding cheat sheet

Obtained from a Linux.com tutorial.

vim fold commands

zf#j:       creates a fold from the cursor down # lines.
zf/string:  creates a fold from the cursor to string .
zj:         moves the cursor to the next fold.

zk: moves the cursor to the previous fold.