Skip to content

Instantly share code, notes, and snippets.

@jfhc
jfhc / rebuild-vim.sh
Created April 3, 2018 23:10 — forked from mgedmin/rebuild-vim.sh
Script I use to build the latest Vim on Ubuntu
#!/bin/sh
set -e
COMPILED_BY="Marius Gedminas <marius@gedmin.as>"
FEATURES=
FEATURES="$FEATURES --with-features=huge" # yum, features
FEATURES="$FEATURES --enable-multibyte" # vim is *crippled* without this!
# (BTW 'big' implies this)
FEATURES="$FEATURES --enable-pythoninterp" # most of my plugins use this
FEATURES="$FEATURES --enable-rubyinterp" # Command-T wants this
@jfhc
jfhc / vimdiff_cheat_sheet.md
Last active March 28, 2018 16:43 — forked from brbsix/vimdiff_cheat_sheet.md
vimdiff cheat sheet

vimdiff cheet sheet

vimdiff commands

commands

]c :            next difference
[c :            previous difference
do diff obtain
# Convenience function for cd & ls in one go
function cs () {
cd "$@" && ls
}
# Like cs above but using z.sh: https://github.com/rupa/z
# Adds in a pwd so you can check z has put you where you expected it to!
. /etc/z/z.sh
#
# CMake configuration
#
# Please refer to http://www.cmake.org/cmake/help/documentation.html
# You may also refer to http://www.cmake.org/cmake/help/syntax.html for a quick
# introduction to CMake's syntax.
cmake_minimum_required (VERSION 2.8)
# The name of our project is "BLE_HEART_RATE". CMakeLists files in this project can
" When started as "evim", evim.vim will already have done these settings.
if v:progname =~? "evim"
finish
endif
set nocompatible
"this comes from vundle
filetype off " required