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
wget 'ftp://ftp.home.vim.org/pub/vim/unix/vim-7.4.tar.bz2' | |
tar xfv vim-7.4.tar.bz2 | |
sudo ./configure --enable-multibyte --with-features=huge --disable-darwin | |
sudo make | |
sudo make install | |
sudo ldid -S /usr/local/bin/vim |
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
" NeoBundle Function"{{{ | |
function! s:bundle_tap(bundle) " {{{ | |
let s:tapped_bundle = neobundle#get(a:bundle) | |
return neobundle#is_installed(a:bundle) | |
endfunction " }}} | |
function! s:bundle_config(config) " {{{ | |
if exists("s:tapped_bundle") && s:tapped_bundle != {} | |
call neobundle#config(s:tapped_bundle.name, a:config) | |
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
from subprocess import call | |
# call(cmd, shell=True) |
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
import sys, codecs | |
sys.stdout = codecs.getwriter('utf_8')(sys.stdout) | |
sys.stdin = codecs.getreader('utf_8')(sys.stdin) |
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
def getSubDirectory(path): | |
#return [name for name in os.listdir(path) if os.path.isdir(os.path.join(dir, name))] | |
f = [] | |
for name in os.listdir(path): | |
if os.path.isdir(os.path.join(path, name)): | |
f.append(name) | |
return f |
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
import os | |
def getFileByListdir(path): | |
return [ f for f in os.listdir(path) if isfile(join(path,f)) ] | |
def getFileByWalk(path): | |
flist = [] | |
for subdir, dirs, files in os.walk(path): | |
flist.extend(files) | |
return flist |
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
// Font size using rem | |
// font-size :6pt、7pt、8pt、9pt、10pt、11pt、12pt、14pt、18pt、21pt、24pt、36pt、48pt、60pt、72pt | |
html | |
font-size:62.5% |
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
" For Undo Revision, Break Undo Sequence "{{{ | |
inoremap <CR> <C-]><C-G>u<CR> | |
inoremap <C-h> <C-g>u<C-h> | |
inoremap <BS> <C-g>u<BS> | |
inoremap <Del> <C-g>u<Del> | |
inoremap <C-d> <C-g>u<Del> | |
inoremap <C-w> <C-g>u<C-w> | |
inoremap <C-u> <C-g>u<C-u> | |
"}}} |
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
git config --global merge.tool vimdiff | |
git config --global mergetool.prompt false | |
git config --global mergetool.keepBackup false |
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
" Mapping for vimdiff{{{ | |
" for git mergetool | |
if &diff | |
map <Leader>1 :diffget LOCAL<CR> | |
map <Leader>2 :diffget BASE<CR> | |
map <Leader>3 :diffget REMOTE<CR> | |
map <Leader>u :<C-u>diffupdate<CR> | |
map u u:<C-u>diffupdate<CR> | |
endif | |
"}}} |
OlderNewer