Skip to content

Instantly share code, notes, and snippets.

@1987yama3
Last active November 15, 2016 23:42
Show Gist options
  • Save 1987yama3/10643240 to your computer and use it in GitHub Desktop.
Save 1987yama3/10643240 to your computer and use it in GitHub Desktop.
vimrcのセットアップ
" display
set number
set title
set showcmd
" color
syntax enable
set background=dark
"colorscheme solarized
" search
set ignorecase
set smartcase
set wrapscan
set hlsearch
" edit
set showmatch
set smartindent
set cindent
set autoindent
" Tabs
set tabstop=4
set shiftwidth=4
set expandtab
set smarttab
set shiftround
set nowrap
" Datetime
inoremap <Leader>c <C-R>=strftime( '%Y-%m-%dT%H:%M:%S+09:00')<CR>
imap <c-h> <Left>
imap <c-j> <Down>
imap <c-k> <Up>
imap <c-l> <Right>
filetype plugin indent on
au BufNewFile,BufRead *.js set nowrap tabstop=2 shiftwidth=2
au BufNewFile,BufRead *.json set nowrap tabstop=2 shiftwidth=2
au BufNewFile,BufRead *.rb set nowrap tabstop=2 shiftwidth=2
au BufNewFile,BufRead *.rake set nowrap tabstop=2 shiftwidth=2
au BufNewFile,BufRead *.html set nowrap tabstop=2 shiftwidth=2
au BufNewFile,BufRead *.erb set nowrap tabstop=2 shiftwidth=2
au BufNewFile,BufRead *.yml set nowrap tabstop=2 shiftwidth=2
au BufNewFile,BufRead *.css set nowrap tabstop=2 shiftwidth=2
au BufNewFile,BufRead *.scss set nowrap tabstop=2 shiftwidth=2
au BufNewFile,BufRead *.md set nowrap tabstop=2 shiftwidth=2
au BufNewFile,BufRead Rakefile set nowrap tabstop=2 shiftwidth=2
au BufNewFile,BufRead Routefile set nowrap tabstop=2 shiftwidth=2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment