2014-git-work/dotfiles/.vimrc

55 lines
1.3 KiB
VimL
Raw Permalink Normal View History

2013-02-23 06:58:43 +09:00
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>
2013-02-26 00:38:18 +09:00
nnoremap <Space>s :update<CR>
2013-02-23 06:58:43 +09:00
nnoremap <Space>t :tabnew<CR>
set autoindent
set backup
set backupdir=$HOME/.vim/tmp
2013-09-16 17:31:56 +09:00
"set expandtab
2013-02-23 06:58:43 +09:00
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
2013-09-16 17:31:56 +09:00
"set softtabstop=2
2013-02-23 06:58:43 +09:00
set statusline=%<%f\ %h%m%r%=\ %l/%L,%c%y
set visualbell
set whichwrap=b,s,h,l,<,>,~,[,]
syntax on
2013-09-16 17:31:56 +09:00
"全角スペースを視覚化
highlight ZenkakuSpace cterm=underline ctermfg=lightblue guibg=#666666
au BufNewFile,BufRead * match ZenkakuSpace / /
2013-02-23 06:58:43 +09:00
"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