54 lines
1.3 KiB
VimL
54 lines
1.3 KiB
VimL
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
|