Skip to content

Instantly share code, notes, and snippets.

View psynaptic's full-sized avatar

Richard Burford psynaptic

View GitHub Profile
call pathogen#infect()
call pathogen#helptags()
syntax on
set background=dark
colorscheme solarized
au BufNewFile,BufRead *.module set filetype=php
au BufNewFile,BufRead *.test set filetype=php
au BufNewFile,BufRead *.install set filetype=php
➜ mobile git:(ticket-8194) ✗ cd ~/.vim/bundle
➜ bundle git clone git://github.com/tpope/vim-pathogen.git
➜ bundle ll
total 64K
drwxr-xr-x 5 rburford rburford 4.0K Dec 12 03:57 drupal-snippets
drwxr-xr-x 6 rburford rburford 4.0K Dec 12 04:20 Gist.vim
drwxr-xr-x 9 rburford rburford 4.0K Dec 12 06:05 neocomplcache
drwxr-xr-x 5 rburford rburford 4.0K Dec 12 04:35 ns9tks-vim-l9-tip
drwxr-xr-x 4 rburford rburford 4.0K Dec 12 03:52 snipmate-snippets
drwxr-xr-x 5 rburford rburford 4.0K Dec 13 10:04 supertab
snippet php
<?php ${1} ?>
snippet kpr
kpr(${1});
snippet gdv
kpr(get_defined_vars());
snippet print
<?php print ${1}; ?>
call pathogen#infect()
call pathogen#helptags()
syntax on
set background=dark
colorscheme solarized
"syntax sync minlines=50 " only sync 50 lines of syntax highlighting around the cursor
set nocursorline " don't highlight the screen line of the cursor
set nocursorcolumn " don't highlight the column of the cursor
call pathogen#infect()
call pathogen#helptags()
syntax on
set background=dark
colorscheme solarized
"syntax sync minlines=50 " only sync 50 lines of syntax highlighting around the cursor
set nocursorline " don't highlight the screen line of the cursor
set nocursorcolumn " don't highlight the column of the cursor
/**
* Implements hook_block_view_alter().
*/
function ex_user_block_view_alter(&$data, $block) {
if ($block->delta == 'masquerade' && !variable_get('ex_user_show_masquerade_block', 1)) {
$data = array();
}
// Change the masquerade block title to reflect the masquerading state.
if ($block->delta == 'masquerade' && isset($_SESSION['masquerading'])) {
/**
* Implements hook_block_view_alter().
*/
function ex_user_block_view_alter(&$data, $block) {
// Allow the block to be hidden using a conf variable.
if ($block->delta == 'masquerade' && !variable_get('ex_user_show_masquerade_block', 1)) {
$data = array();
}
<?php
/**
* @file
* Drush commands and related functions.
*/
/**
* Implements hook_drush_command().
*/
function api_helper_drush_command() {
From 2a1a48b4e638332a6eb6fdc0f7bc5fbc08638737 Mon Sep 17 00:00:00 2001
From: Richard Burford <[email protected]>
Date: Mon, 20 Feb 2012 23:00:43 +0000
Subject: [PATCH] Removed jQuery autocomplete requirements check so we can
install from an install profile.
---
api.install | 18 ------------------
1 files changed, 0 insertions(+), 18 deletions(-)
<?php
/**
* @file
* Custom functions for the congr site.
*/
/**
* Implements hook_form_alter().
*/
function congr_form_alter(&$form, $form_state, $form_id) {