Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python2.7
import codecs
import sys
from xml.dom import minidom
filename = '/dev/stdin'
if len(sys.argv) > 1:
filename = sys.argv[1]
#!/bin/bash
QF_TYPE='files'
ACK_FLAGS='--scala --python'
while [[ "$1" != '' ]]; do
case "$1" in
-d|--def|--definition)
shift
QF_TYPE='def'
@lestoni
lestoni / gist:8c74da455cce3d36eb68
Last active April 12, 2024 18:15
vim folding cheatsheet

via (https://www.linux.com/learn/tutorials/442438-vim-tips-folding-fun)

  • 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.
  • zo opens a fold at the cursor.
  • zO opens all folds at the cursor.
  • zm increases the foldlevel by one.
  • zM closes all open folds.