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
" Take <tab> for word complete only | |
" The 'complete' option controls where the keywords are searched (include files, tag files, buffers, and more). | |
" The 'completeopt' option controls how the completion occurs (for example, whether a menu is shown). | |
if exists('did_completes_me_loaded') || v:version < 700 | |
finish | |
endif | |
let did_completes_me_loaded = 1 | |
function! s:completes_me(shift_tab) |
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
#!/bin/sh | |
osascript <<END | |
tell application "MacVim" | |
activate | |
end tell | |
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
diff --git a/autoload/dispatch/iterm.vim b/autoload/dispatch/iterm.vim | |
index 7b52012..068f95f 100644 | |
--- a/autoload/dispatch/iterm.vim | |
+++ b/autoload/dispatch/iterm.vim | |
@@ -21,22 +21,23 @@ function! dispatch#iterm#handle(request) abort | |
endfunction | |
function! dispatch#iterm#spawn(command, request, activate) abort | |
- let script = dispatch#isolate([], dispatch#set_title(a:request), a:command) | |
+ let script = s:isolate(a:request.command) |
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! MyStatusSyntaxItem() | |
return synIDattr(synID(line("."),col("."),1),"name") | |
endfunction | |
function! MyStatusLine() | |
return "%2*%3.3{MyStatusModeMap()}%*" | |
\. s:GetPaste() | |
\. "%4*%0{MyStatusBranch()}%*" | |
\. " %f " . s:GetModifySymbol() |
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 node | |
// Warning: clientserver feature required for MacVim, check it by `:echo has('clientserver')` in MacVim | |
'use strict' | |
var lstream = require('./lstream') | |
var stream = new lstream() | |
var exec = require('child_process').exec | |
var hasError = false | |
stream.on('line', function (line) { | |
if (line.length) { |
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
" ============================================================================ | |
" Description: Open url under cursor or git repository of a module | |
" Author: Qiming Zhao <chemzqm@gmail.com> | |
" Licence: Vim licence | |
" Version: 0.1 | |
" Last Modified: January 16, 2016 | |
" ============================================================================ | |
if exists('did_open_loaded') || v:version < 700 | |
finish |
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
" ============================================================================ | |
" Description: Some system commands for vim | |
" Author: Qiming Zhao <chemzqm@gmail.com> | |
" Licence: Vim licence | |
" Version: 0.2 | |
" Last Modified: January 19, 2016 | |
" ============================================================================ | |
if exists('did_system_loaded') || v:version < 700 | |
finish |
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
" ============================================================================ | |
" Description: Add Qdo and Qargs command used for replaceAll | |
" Author: Qiming Zhao <chemzqm@gmail.com> | |
" Licence: Vim licence | |
" Version: 0.1 | |
" Last Modified: December 31, 2015 | |
" ============================================================================ | |
if exists('did_qdo_loaded') || v:version < 700 | |
finish | |
endif |
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 bash | |
if [[ $1 =~ ^http.* ]]; then | |
file=$1 | |
else | |
file=file://`realpath $1` | |
fi | |
cat << EOF | sed "s+full_path+$file+" | osascript - | |
if application "Google Chrome" is not running then |
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
" ============================================================================ | |
" Description: Insert pair charactor automaticly | |
" Author: Qiming Zhao <chemzqm@gmail.com> | |
" Licence: Vim licence | |
" Version: 0.1 | |
" Last Modified: Sep 13, 2016 | |
" ============================================================================ | |
if exists('did_simple_pairs_loaded') | finish | endif | |
let did_simple_pairs_loaded = 1 | |
let s:pairs = {'(': ')', '[': ']', '{': '}', '"': '"', "'": "'", '`' : '`'} |