Skip to content

Instantly share code, notes, and snippets.

View qickstarter's full-sized avatar

qickstarter qickstarter

View GitHub Profile
Please report this error to author.
`:help eskk` to see author's e-mail address.
金 12/ 7 12:42:41 2012
--- char ---
char: ''(0)
mode(): n
--- char ---
"------------------------------------
" eskk.vim
"------------------------------------
" "{{{
" " set imdisable
let g:eskk#debug = 0
" let g:eskk#egg_like_newline = 1
" let g:eskk#revert_henkan_style = "okuri"
let g:eskk#enable_completion = 1
let g:eskk#directory = "~/.eskk"
# coding: utf-8
module Kernel
alias_method :old_puts, :puts
# putsをフック
# Stringに対しては自動的にto_s呼ばないのね...
def puts(*args)
args.map! { |obj| obj.to_s }
old_puts(args)
# coding: utf-8
class Object
def pinch2chance
gsub!('ピンチ', 'チャンス') if respond_to? :gsub
self
end
end
module Kernel
# coding: utf-8
module Kernel
alias_method :old_puts, :puts
def puts(*args)
args.map! do |obj|
obj.gsub('ピンチ', 'チャンス') if obj.respond_to? :gsub
end
set nobackup
" neobundle
filetype plugin indent off " required!
if has('vim_starting')
set runtimepath+=~/.bundle/neobundle.vim
call neobundle#rc(expand('~/.bundle/'))
endif
" hamlとerbをhtmlに変換する
"
" 変換後のディレクトリを指定することも可能。
" 同じディレクトリに、pathというファイルを作り
" `cat path` -> `../`
" となっていれば、その相対パスディレクトリに保存する
"
function! ConvertHamlToHtml(fileType)
" 設定ファイルを読み込む
"------------------------------------
" VimFiler
"------------------------------------
" 起動コマンド
" default <leader><leader>
nnoremap <Leader><leader> :VimFilerBufferDir<CR>
" nnoremap <C-H><C-F> :VimFilerExplorer<CR>
nnoremap <C-H><C-F> :call VimFilerExplorerGit()<CR>
" lean more [ utf8 glyph ]( http://sheet.shiar.nl/unicode )
let g:vimfiler_safe_mode_by_default = 0
"------------------------------------
" VimFiler
"------------------------------------
"{{{
" 起動コマンド
" default <leader><leader>
nnoremap <Leader><leader> :VimFilerBufferDir<CR>
nnoremap <C-H><C-F> :VimFilerExplorer<CR>
" lean more [ utf8 glyph ]( http://sheet.shiar.nl/unicode )
# Custom directories with classes and modules you want to be autoloadable.
config.autoload_paths += %W(#{config.root}/lib)
config.autoload_paths += Dir["#{config.root}/lib/**/"]