Skip to content

Instantly share code, notes, and snippets.

@miya0001
Created June 21, 2012 08:26
Show Gist options
  • Save miya0001/2964581 to your computer and use it in GitHub Desktop.
Save miya0001/2964581 to your computer and use it in GitHub Desktop.
vimrc
syntax on
set expandtab
set shiftwidth=4
set tabstop=4
set nobackup
set number
set termencoding=utf-8
set encoding=utf-8
set fileencodings=utf-8,euc-jp,sjis
set fileformat=unix
set showmatch
highlight ZenkakuSpace cterm=underline ctermfg=lightblue guibg=white
match ZenkakuSpace / /
highlight Comment ctermfg=white
augroup vimrcEx
autocmd!
autocmd BufReadPost *
\ if line("'\"") > 1 && line("'\"") <= line('$') |
\ exe "normal! g`\"" |
\ endif
augroup END
highlight WhitespaceEOL ctermbg=red guibg=red
match WhitespaceEOL /\s\+$/
autocmd WinEnter * match WhitespaceEOL /\s\+$/
autocmd FileType php :set dictionary=~/.vim/dict/wordpress.dict
set backspace=2
set backspace=indent,eol,start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment