2014-git-work/dotfiles/.vimrc
2013-09-16 17:31:56 +09:00

54 lines
1.3 KiB
VimL
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

filetype off
autocmd BufNewFile,BufRead *.ino setfiletype arduino
colorscheme desert
nnoremap <Space> <C-w>
nnoremap <Space>, :edit $MYVIMRC<CR>
nnoremap <Space>. :source $MYVIMRC<CR>
nnoremap <Space><Space> <Space>
nnoremap <Space>Q :quit!<CR>
nnoremap <Space>S :saveas
nnoremap <Space>b :buffers<CR>
nnoremap <Space>d :bdelete<CR>
nnoremap <Space>e :Explore<CR>
nnoremap <Space>m :make<CR>
nnoremap <Space>n :bnext<CR>
nnoremap <Space>p :bprevious<CR>
nnoremap <Space>q :quit<CR>
nnoremap <Space>s :update<CR>
nnoremap <Space>t :tabnew<CR>
set autoindent
set backup
set backupdir=$HOME/.vim/tmp
"set expandtab
set foldmethod=marker
set ignorecase
set laststatus=2
set modeline
set modelines=1
set nocompatible
set nowrap
set number
set shiftwidth=2
set smartcase
set smartindent
"set softtabstop=2
set statusline=%<%f\ %h%m%r%=\ %l/%L,%c%y
set visualbell
set whichwrap=b,s,h,l,<,>,~,[,]
syntax on
"全角スペースを視覚化
highlight ZenkakuSpace cterm=underline ctermfg=lightblue guibg=#666666
au BufNewFile,BufRead * match ZenkakuSpace / /
"for matchit.vim
source $VIMRUNTIME/macros/matchit.vim
let b:match_words = &matchpairs.'<\([A-Za-z_\:][A-Za-z0-9.\-_\:]*\):</\1'
"for Vundle
set rtp+=~/.vim/bundle/vundle
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'Shougo/git-vim'
filetype plugin indent on