This file contains hidden or 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
" Naviaget webdriver via vimscript | |
" https://code.google.com/p/selenium/wiki/JsonWireProtocol | |
scriptencoding utf-8 | |
let s:webdriver_path = expand('chromedriver.exe', 1) | |
function! s:webdriver_start(port) | |
" execute printf('!start %s --port=%d', s:webdriver_path, a:port) | |
return vimproc#popen3(printf('%s --port=%d', tr(s:webdriver_path, '\', '/'), a:port)) | |
endfunction |
This file contains hidden or 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
let s:access_token = 'so0RiFwQJIfvHFBdVDJa2fUyxtAwpAgTS' | |
let s:host = 'https://api.codic.jp' | |
let s:resourece = '/v1/user_projects.json' | |
unlet! s:resp | |
let s:resp = eval(webapi#http#get(s:host . s:resourece, | |
\ {}, | |
\ { | |
\ 'Authorization' : 'Bearer ' . s:access_token |
This file contains hidden or 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
" indent | |
set vsvim_useeditordefaults | |
" Options | |
set clipboard=unnamed | |
set ignorecase | |
set incsearch | |
set hlsearch | |
" Jump |
This file contains hidden or 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
set iminsert=2 | |
set imsearch=2 | |
set imcmdline | |
set imactivatefunc=ImActivate | |
function! ImActivate(active) | |
if a:active | |
call system('fcitx-remote -o') | |
else | |
call system('fcitx-remote -c') | |
endif |
This file contains hidden or 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
let s:save_cpo = &cpo | |
set cpo&vim | |
" なんかコード | |
if expand("%:p") == expand("<sfile>:p") | |
finish | |
endif | |
let &cpo = s:save_cpo | |
unlet s:save_cpo |
This file contains hidden or 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
" HI-C.vim (HIghlight-Cword) | |
" Version: 0.0.2 | |
" Author: sgur | |
" License: MIT | |
if exists('g:loaded_hi_c') && g:loaded_hi_c | |
finish | |
endif | |
let g:loaded_hi_c = 1 |
This file contains hidden or 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
inoremap <silent> <C-x><C-t> <C-R>=<SID>codic_complete()<CR> | |
function! s:codic_complete() | |
let line = getline('.') | |
let start = match(line, '\k\+$') | |
let cand = s:codic_candidates(line[start :]) | |
call complete(start +1, cand) | |
return '' | |
endfunction | |
function! s:codic_candidates(arglead) | |
let cand = codic#search(a:arglead, 30) |
This file contains hidden or 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
set-option -g prefix C-z | |
unbind-key C-b | |
bind-key C-z send-prefix | |
set-option -g default-terminal screen-256color | |
set -g terminal-overrides 'xterm:colors=256' | |
bind r source-file ~/.tmux.conf | |
set-window-option -g mode-keys vi |
This file contains hidden or 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 python | |
# | |
# Copyright (C) 2011, 2012 Strahinja Val Markovic <[email protected]> | |
# | |
# This file is part of YouCompleteMe. | |
# | |
# YouCompleteMe is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |
This file contains hidden or 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
import sys | |
sys.setdefaultencoding("utf-8") |