-" set the runtime path to include Vundle and initialize
+set nocompatible
+
+"------------------------------------------------------------------------------
+" For Vundle
+"------------------------------------------------------------------------------
+"
+filetype off
set rtp+=$HOME/.vim/bundle/Vundle.vim
call vundle#begin('$HOME/.vim/bundle/')
Plugin 'thanthese/Tortoise-Typing'
Plugin 'altercation/vim-colors-solarized.git'
Plugin 'plasticboy/vim-markdown'
+Plugin 'mileszs/ack.vim'
+Plugin 'brandonbloom/csearch.vim'
call vundle#end() " required
filetype plugin indent on " required
-
syntax enable " syntaxs highlightning
+
+"------------------------------------------------------------------------------
+" Regular setting
+"------------------------------------------------------------------------------
+"
set backspace=2 " backspace in insert mode works like normal editor
set autoindent " auto indenting
set number " line numbers
set nobackup " get rid of anoying ~file
+set encoding=utf-8
+set expandtab
+set fileencodings=ucs-bom,utf-8,euc-jp
+set hid
+set hlsearch
+set incsearch
+set laststatus=2
+set number
+set mouse=a
+set ruler
+set shiftwidth=4
+set showcmd
+set smartindent
+set showmatch
+set tabstop=4
+set visualbell t_vb=
+set modeline
+set modelines=1
+" For color
"let g:solarized_termcolors=256
colorscheme solarized
set background=dark
+" Vim tips #59
+set tags+=tags;
+
+" For markdown
let g:vim_markdown_folding_disabled = 1
+" For local settings overwrite
let $LOCALFILE=expand("~/.vimrc_local")
if filereadable($LOCALFILE)
source $LOCALFILE