Skip to content

Instantly share code, notes, and snippets.

" vim: set ft=vim ts=2 sw=2 tw=78 et :
" vim:fdm=marker
set nocompatible
filetype plugin indent on
" Config: {{{1
let g:nicwest_remote = 1
let g:nicwest_os = 'linux'
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
$script = <<SCRIPT
sudo apt-get update
sudo apt-get -y install vim-gtk git-core
git clone https://github.com/nicwest/QQ.vim.git .vim
SCRIPT
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
$script = <<SCRIPT
sudo apt-get update
sudo apt-get -y install vim-gtk git-core
git clone https://github.com/nicwest/QQ.vim.git .vim
SCRIPT
"maps x to null buffer
nnoremap x "_x
vnoremap x "_x
if bufexists('DELETEME')
bw! DELETEME
endif
vert new DELETEME
let s:contents = system('curl -si http://google.com')
call append(0, ['WITH WIERD CHARS:', '-----------------', s:contents])
let s:fix_return_newline = substitute(s:contents, '\r\n', "", 'g')
function! templates#vars#vim_version () abort
let l:patch = filter(range(0,999), 'has("patch" . v:val)')[-1]
return string(v:version / 100.0) . '.' . l:patch
endfunction
This file has been truncated, but you can view the full file.
python runtests.py --settings=test_sqlite -v 3[?1l>
kpython\Testing against Django installed in '/Users/nic/Sideprojects/django/django'
Importing application absolute_url_overrides
Importing application admin_autodiscover
Importing application admin_changelist
Importing application admin_checks
Importing application admin_custom_urls
Importing application admin_docs
Importing application admin_filters
Importing application admin_inlines
@nicwest
nicwest / python-label-thing.vim
Last active January 2, 2019 13:13
vim function that copies a dotted python path label thing from your cursor to your clipboard for running tests
function! PythonGetLabel()
if foldlevel('.') != 0
norm! zo
endif
let originalline = getpos('.')
let lnlist = []
let lastlineindent = indent(line('.'))
let objregexp = "^\\s*\\(class\\|def\\)\\s\\+[^:]\\+\\s*:"
if match(getline('.'),objregexp) != -1
let lastlineindent = indent(line('.'))
#!/bin/bash
sleep 0 && # 0 good for Xfce - use 20 to 30 for Gnome
source /home/nic/Conky/conky.sh
@nicwest
nicwest / gist:8562185
Created January 22, 2014 16:42
epubdiffsample
Summary:
---------------------------------
Binary File Change EPUB/images/2565514353_2ae2073e14.jpg
Text File Change (With Diff) EPUB/package.opf
Text File Change (With Diff) EPUB/script/shared.js
Text File Change (With Diff) EPUB/xhtml/p10.xhtml
Text File Change (With Diff) EPUB/css/shared-culture.css
File Removed EPUB/xhtml/cover.xhtml