This file contains 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
*.pbxproj -crlf -diff -merge |
This file contains 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
function! IndentWithI() | |
if len(getline('.')) == 0 | |
return "ix\<Esc>==s" | |
else | |
return "i" | |
endif | |
endfunction | |
nnoremap <expr> i IndentWithI() |
This file contains 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
#!/usr/bin/env ruby | |
# | |
# Usage: | |
# cd /git/project/directory | |
# git hub-diff 223d60f5486075e74851075fcfeb366d45c17d8b 13c86f00cbfe820c415b46bfd19268284db2a274 | |
# Future features: | |
# * generate SHAs from refs | |
# * launchy support | |
require 'rubygems' |
This file contains 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
function! Bd() | |
let curbuf = bufnr('%') | |
bnext | |
exec "bdelete ".curbuf | |
endfunction | |
command Bd call Bd() |
This file contains 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
" Type :so % to run VimLint. | |
" {{{1 | |
" ============================================================================ | |
" File: vimlint.vim | |
" Description: Vim plugin that checks your Vim environment, settings and | |
" loaded scripts for conflicts, omissions and ill-advised | |
" configurations. | |
" Author: Barry Arthur <barry.arthur at gmail dot com> | |
" Last Change: 22 July, 2010 | |
" Website: http://github.com/dahu/VimLint |
This file contains 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
nnoremap <Down> gj | |
nnoremap <Up> gk | |
vnoremap <Down> gj | |
vnoremap <Up> gk | |
inoremap <Down> <C-o>gj | |
inoremap <Up> <C-o>gk | |
nnoremap <Home> g<Home> | |
nnoremap <End> g<End> | |
vnoremap <Home> g<Home> | |
vnoremap <End> g<End> |
This file contains 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
function! AutoCompile() | |
if exists('g:autocompile') | |
echom 'make' | |
unlet g:autocompile | |
endif | |
endfunction | |
augroup autocompile | |
au! | |
au BufWrite * call AutoCompile() |
This file contains 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
" Status Line {{{ | |
" ----------- | |
" | |
" Reset status line: | |
set statusline= | |
" Default color: | |
set statusline+=%* | |
" Relative file path: |
This file contains 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
"http://groups.google.com/group/vim_mac/browse_frm/thread/63b4a8ed1bd0fc5c | |
function! MyLabel() | |
if exists('t:name') | |
return t:name | |
else | |
return '' | |
endif | |
endfunction |
This file contains 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
function! ReplaceCurrentChar(match, replace) | |
let save_cursor = getpos('.') | |
let col = col('.') | |
exec 's/\%'.col.'v./\=getline(".")[col-1] ==# "'.a:match.'" ? "'.a:replace.'" : submatch(0) /' | |
call setpos('.', save_cursor) | |
endfunction |
OlderNewer