set guifont=VL\ ゴシック:h9:cSHIFTJIS
set nu
set autowrite
set autoindent
colorscheme zellner
set nocompatible
if &t_Co > 2 || has("gui_running")
syntax on
set hlsearch
endif
set shortmess+=I
set list
set listchars=tab:>-,trail:-,extends:>,precedes:<
set display=uhex
set laststatus=2
set cmdheight=2
set showcmd
set title
set scrolloff=2
set statusline=%<%f\ %m%r%h%w%y%{'['.(&fenc!=''?&fenc:&enc).']['.&ff.']'}%=%4v\ %l/%L
set incsearch
set ignorecase
set smartcase
set autoindent
set backspace=indent,eol,start
set showmatch
set wildmenu
set formatoptions+=mM
set tabstop=2
set shiftwidth=4
set softtabstop=2
set expandtab
set smarttab
inoremap <C-Tab> <C-V><Tab>
nnoremap j gj
nnoremap k gk
inoremap <Leader>date <C-R>=strftime('%A, %B %d, %Y')<CR>
inoremap <Leader>time <C-R>=strftime('%H:%M')<CR>
inoremap <Leader>rdate <C-R>=strftime('%A, %B %d, %Y %H:%M')<CR>
inoremap <Leader>w3cdtf <C-R>=strftime('%Y-%m-%dT%H:%M:%S+09:00')<CR>
vnoremap * "zy:let @/ = @z<CR>n
let putline_tw = 60
inoremap <Leader>line <ESC>:call <SID>PutLine(putline_tw)<CR>A
function! s:PutLine(len)
let plen = a:len - strlen(getline('.'))
if (plen > 0)
execute 'normal ' plen . 'A-'
endif
endfunction
set fileencodings=ucs-bom,iso-2022-jp-3,iso-2022-jp-2,euc-jisx0213,euc-jp,cp932
if &encoding == 'utf-8'
set ambiwidth=double
endif
let format_allow_over_tw = 0
set runtimepath+=$HOME/.vim/chalice
nnoremap <F2> :call <SID>DoChalice()<CR>
let chalice_preview = 0
let chalice_columns = 120
let chalice_exbrowser = 'openurl %URL% &'
function! s:DoChalice()
Chalice
endfunction
let g:autodate_format = '%Y-%m-%d'
let g:autodate_keyword_pre = 'Last Modified:'
let g:autodate_keyword_post = '$'
if has("autocmd")
filetype plugin indent on
augroup vimrcEx
au!
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal g`\"" |
\ endif
augroup END
endif