brew update
brew install pyenv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ~/.ipython/profile_default/startup/00_common.py | |
| import base64 | |
| import codecs | |
| import cPickle as pickle | |
| import cStringIO as StringIO | |
| import csv | |
| import hashlib | |
| import importlib | |
| import json | |
| import math |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Clear local merged branches | |
| function clearbranches(){ | |
| cur_branch=`git rev-parse --abbrev-ref HEAD` | |
| if [[ "$cur_branch" == "master" ]]; then | |
| git branch --merged | grep -v "\*" | xargs -n 1 git branch -d | |
| else | |
| echo "Not on master branch!" | |
| fi | |
| } |
This is a guide to Vim Script development for Python developers. Sample code for the various expressions, statements, functions and programming constructs is shown in both Python and Vim Script. This is not intended to be a tutorial for developing Vim scripts. It is assumed that the reader is familiar with Python programming.
For an introduction to Vim Script development, refer to usr_41.txt, eval.txt and Learn Vimscript the Hard Way
For a guide similar to this one for JavaScript developers, refer to Vim Script for the JavaScripter
This guide only describes the programming constructs that are present in both Python and Vim. The constructs that are unique to Vim (e.g. autocommands, [key-mapping](https://vimhelp.org/map.txt.html#key-m
OlderNewer