From c0a4ca9018dd82f2b1f0a4c246b7bc0e1fa47145 Mon Sep 17 00:00:00 2001 From: "Ein Verne(einverne)" Date: Mon, 4 May 2015 18:50:36 +0800 Subject: [PATCH] fix error --- README.md | 11 +++++++++-- python_vimrc | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 707407b..3846d94 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,18 @@ This is my vim dot file. vundle相关配置在vundle_vimrc中,用vundle管理插件,插件列表`:PluginList`查看 python相关配置在python_vimrc中 -在vim目录下 +Windows下,在vim目录下 +``` git init -git remote add origin PATH/TO/REPO +git remote add origin https://github.com/einverne/dotfile.git git fetch git checkout -t origin/master +``` +然后再vim目录下安装Vundle + + git clone https://github.com/gmarik/Vundle.vim.git vimfiles/bundle/Vundle.vim + +进入vim,运行 `:PluginInstall` 安装剩余插件 diff --git a/python_vimrc b/python_vimrc index 54b712a..fccddf2 100644 --- a/python_vimrc +++ b/python_vimrc @@ -25,7 +25,7 @@ au BufRead,BufNewFile *py,*pyw,*.c,*.h set tabstop=8 " C: tabs (pre-existing files) or 4 spaces (new files) au BufRead,BufNewFile *.py,*pyw set shiftwidth=4 au BufRead,BufNewFile *.py,*.pyw set expandtab -fu Select_c_style!() +fu! Select_c_style() if search('^\t', 'n', 150) set shiftwidth=8 set noexpandtab