From cbe23b156b608bd16b043063cd2e9dd8fa735cc0 Mon Sep 17 00:00:00 2001 From: kou029w Date: Sat, 23 Feb 2013 06:58:43 +0900 Subject: [PATCH] =?UTF-8?q?dotfiles=E3=81=B8=E7=A7=BB=E5=8B=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- {shellscript => dotfiles}/.bashrc | 2 +- dotfiles/.vimrc | 51 +++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 1 deletion(-) rename {shellscript => dotfiles}/.bashrc (97%) create mode 100644 dotfiles/.vimrc diff --git a/shellscript/.bashrc b/dotfiles/.bashrc similarity index 97% rename from shellscript/.bashrc rename to dotfiles/.bashrc index 7e85185..1a47f6f 100644 --- a/shellscript/.bashrc +++ b/dotfiles/.bashrc @@ -28,7 +28,7 @@ export HISTFILESIZE=$((HISTSIZE*2)) export HISTCONTROL=ignoredups export HISTTIMEFORMAT='%Y-%m-%d %T ' -export TRASH="~/.Trash/" +export TRASH="${HOME}/.Trash/" #complete -c man sudo gksu complete -c man sudo diff --git a/dotfiles/.vimrc b/dotfiles/.vimrc new file mode 100644 index 0000000..568bea6 --- /dev/null +++ b/dotfiles/.vimrc @@ -0,0 +1,51 @@ +filetype off +autocmd BufNewFile,BufRead *.ino setfiletype arduino +colorscheme desert +nnoremap +nnoremap , :edit $MYVIMRC +nnoremap . :source $MYVIMRC +nnoremap +nnoremap Q :quit! +nnoremap S :saveas +nnoremap b :buffers +nnoremap d :bdelete +nnoremap e :Explore +nnoremap m :make +nnoremap n :bnext +nnoremap p :bprevious +nnoremap q :quit +nnoremap s :write +nnoremap t :tabnew +nnoremap u :update +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.\-_\:]*\):