dotfilesへ移動
This commit is contained in:
parent
f5660637a1
commit
cbe23b156b
2 changed files with 52 additions and 1 deletions
|
@ -28,7 +28,7 @@ export HISTFILESIZE=$((HISTSIZE*2))
|
||||||
export HISTCONTROL=ignoredups
|
export HISTCONTROL=ignoredups
|
||||||
export HISTTIMEFORMAT='%Y-%m-%d %T '
|
export HISTTIMEFORMAT='%Y-%m-%d %T '
|
||||||
|
|
||||||
export TRASH="~/.Trash/"
|
export TRASH="${HOME}/.Trash/"
|
||||||
#complete -c man sudo gksu
|
#complete -c man sudo gksu
|
||||||
complete -c man sudo
|
complete -c man sudo
|
||||||
|
|
51
dotfiles/.vimrc
Normal file
51
dotfiles/.vimrc
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
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 :write<CR>
|
||||||
|
nnoremap <Space>t :tabnew<CR>
|
||||||
|
nnoremap <Space>u :update<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
|
||||||
|
|
||||||
|
"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
|
Loading…
Add table
Reference in a new issue