Tom 12 年之前
父节点
当前提交
2969a7701d
共有 2 个文件被更改,包括 34 次插入0 次删除
  1. 28 0
      .vimrc
  2. 6 0
      setup.sh

+ 28 - 0
.vimrc

@@ -0,0 +1,28 @@
+# vimconfig.com
+set number	# Show line numbers
+set no wrap	# Wrap lines
+set showbreak=+++	# Wrap-broken line prefix
+set textwidth=100	# Line wrap (number of cols)
+set showmatch	# Highlight matching brace
+set visualbell	# Use visual bell (no beeping)
+ 
+set hlsearch	# Highlight all search results
+set ignorecase	# Always case-insensitive
+set incsearch	# Searches for strings incrementally
+ 
+set autoindent	# Auto-indent new lines
+set expandtab	# Use spaces instead of tabs
+set shiftwidth=4	# Number of auto-indent spaces
+set smartindent	# Enable smart-indent
+set smarttab	# Enable smart-tabs
+set softtabstop=2	# Number of spaces per Tab
+ 
+## Advanced
+set ruler	# Show row and column ruler information
+ 
+set undolevels=1000	# Number of undo levels
+set backspace=indent,eol,start	# Backspace behaviour
+
+set autoread
+
+colorscheme desert 

+ 6 - 0
setup.sh

@@ -18,3 +18,9 @@ if [[ ! -f ~/.gitconfig ]]; then
   rm ~/.gitconfig 2> /dev/null
 fi
 ln -s ~/dotfiles/.gitconfig ~/.gitconfig
+
+if [[ ! -f ~/.vimrc ]]; then
+  mv -i ~/.vimrc ~/.vimrc.bak;
+  rm ~/.vimrc 2> /dev/null
+fi
+ln -s ~/dotfiles/.vimrc ~/.vimrc