Skip to content

Instantly share code, notes, and snippets.

@kenmaz
Last active December 15, 2015 20:09
Show Gist options
  • Save kenmaz/5316378 to your computer and use it in GitHub Desktop.
Save kenmaz/5316378 to your computer and use it in GitHub Desktop.
syntax on
set encoding=utf-8
set fileencodings=utf-8,iso-2022-jp,euc-jp,sjis
set termencoding=utf-8
set tabstop=4
set shiftwidth=4
set expandtab
set number
"制御文字
set list
set listchars=tab:»-,trail:$,extends:»,precedes:«,nbsp:%
set viminfo='20,\"50,<1000
autocmd! BufRead,BufNewFile *.erb set filetype=eruby
autocmd! BufRead,BufNewFile *.ru set filetype=ruby
autocmd! BufRead,BufNewFile *.psgi set filetype=perl
autocmd! BufRead,BufNewFile *.t set filetype=perl
autocmd! BufRead,BufNewFile *.tt set filetype=html
"augroup filetypedetect$
" au BufNewFile,BufRead *.pig set filetype=pig syntax=pig$
"augroup END$
nnoremap ,su :sil exe 'cex "" \| windo \| try \| vimgrepa /\v^ *sub \w/j % \| cat \| endt \| cw'<CR>:set cursorline<CR>
nnoremap ,cl :cclose<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment