background preloader

Programming

Facebook Twitter

Building Your First App. S Humble Abode - Writings from John Anderson. $ git clone $ cd dotfiles $ .

s Humble Abode - Writings from John Anderson

/install.sh vim Download PDF Version Back in 2008, I wrote the article Python with a modular IDE (Vim). Years later, I have people e-mailing me and commenting daily asking for more information, even though most of the information in it is outdated. Here is the modern way to work with Python and Vim to achieve the perfect environment. Because one of the most important parts about a development environment is the ability to easily reproduce across machines, we are going to store our vim configuration in git: $ mkdir ~/.vim/ $ mkdir ~/.vim/{autoload,bundle} $ cd ~/.vim/ $ git init The purpose of the autoload directory is to automatically load the vim plugin Pathogen, which we'll then use to load all other plugins that are located in the bundle directory. You'll need to add the following to your ~/.vimrc so that pathogen will be loaded properly. Filetype off call pathogen#runtime_append_all_bundles() call pathogen#helptags() Thats it! Code Folding Window Splits Pep8.

Molokai for Vim. I've mentioned in the past some of the color scheme scripts that I've used to make Vim nicer, and there are some really nice ones.

Molokai for Vim

However, I was growing tired of them lately. I looked around the Vim site trying to find something better but came up empty handed. Around that time I ran into Hamish Macpherson's blog, and noticed he was using a really nice color scheme on his code screenshots, and then read in one of his comments that it was a slightly modified version of the monokai theme for TextMate. I decided to try porting them to Vim, though it's a very loose port. I've been using and tweaking it for a few weeks now, but I'm pretty satisfied with it. There are two variations to the theme; which one is used can be controlled by setting the g:molokai_original variable in your .vimrc file. The default option (molokai_original == 0) uses the dark gray background variation similar to Hamish' version, and looks like this: Technorati tags: Vim, monokai.

Become a Programmer, Motherfucker. If you don't know how to code, then you can learn even if you think you can't.

Become a Programmer, Motherfucker

Thousands of people have learned programming from these fine books: Learn Python The Hard Way Learn Ruby The Hard Way Learn Code The Hard Way I'm also working on a whole series of programming education books at learncodethehardway.org. Learn C The Hard Way Learn SQL The Hard Way Learn Regex The Hard Way Graphics Programming Language Agnostic NerdDinner Walkthrough.