Skip to content

Commit

Permalink
change http to git
Browse files Browse the repository at this point in the history
  • Loading branch information
kepbod committed Aug 22, 2012
1 parent 024181b commit 6751720
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
### Manual Install

0. A Vim/MacVim/gVim with version higher than 7.3 has been installed on your computer, and back up your origin vim stuff;
1. Install Vundle to install and update plugins, `git clone http://github.com/gmarik/vundle.git $HOME/.vim/bundle/vundle`;
2. Install hybrid theme, `git clone http://github.com/w0ng/vim-hybrid.git $HOME/.vim/bundle/vim-hybrid`;
3. Get ivim from github website, `git clone http://github.com/kepbod/ivim.git $HOME/ivim`;
1. Install Vundle to install and update plugins, `git clone git://github.com/gmarik/vundle.git $HOME/.vim/bundle/vundle`;
2. Install hybrid theme, `git clone git://github.com/w0ng/vim-hybrid.git $HOME/.vim/bundle/vim-hybrid`;
3. Get ivim from github website, `git clone git://github.com/kepbod/ivim.git $HOME/ivim`;
4. Make symbolic links of vimrc to your home directory, `ln -s $HOME/ivim/vimrc $HOME/.vimrc`;
5. Install plugins, `vim +BundleInstall! +BundleClean! +qa!`;
6. Just enjoy it!
Expand Down Expand Up @@ -46,7 +46,7 @@ bash $HOME/ivim/tools/update.sh

**Git**

* All the installations are based on [Git](http://git-scm.com/) which is a famous distributed revision control system. If you use Windows, you may need install [msysgit](http://code.google.com/p/msysgit/).
* All the installations are based on [Git](http://git-scm.com/) which is a famous distributed revision control system. If you use Windows, you may need install [msysgit](http://msysgit.github.com//).

**Ctags**

Expand Down
6 changes: 3 additions & 3 deletions tools/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ for i in $HOME/.vim $HOME/.vimrc $HOME/.gvimrc; do [ -e $i ] && mv -f $i $i.back
# install ivim
printf '\033[0;34m%s\033[0m\n' "Cloning ivim..."
rm -rf $HOME/ivim
git clone http://github.com/kepbod/ivim.git $HOME/ivim
git clone git://github.com/kepbod/ivim.git $HOME/ivim
ln -s $HOME/ivim/vimrc $HOME/.vimrc

printf '\033[0;34m%s\033[0m\n' "Installing Vundle..."
git clone http://github.com/gmarik/vundle.git $HOME/.vim/bundle/vundle
git clone git://github.com/gmarik/vundle.git $HOME/.vim/bundle/vundle

printf '\033[0;34m%s\033[0m\n' "Installing hybrid theme..."
git clone http://github.com/w0ng/vim-hybrid.git $HOME/.vim/bundle/vim-hybrid
git clone git://github.com/w0ng/vim-hybrid.git $HOME/.vim/bundle/vim-hybrid

printf '\033[0;34m%s\033[0m\n' "Installing plugins using Vundle..."
vim +'set nospell' +BundleInstall! +BundleClean! +qa! $HOME/ivim/tools/info.txt
Expand Down
2 changes: 1 addition & 1 deletion tools/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ printf '\033[0;34m%s\033[0m\n' 'Upgrading ivim...'
cd $HOME/ivim/
if git pull origin master
then
vim +'set nospell' +BundleInstall! +BundleClean! +qa! $HOME/ivim/tools/info.txt
vim +'set nospell' +BundleInstall! +BundleClean! +mapclear +qa! $HOME/ivim/tools/info.txt
printf '\033[0;34m%s\033[0m\n' ' _ _ '
printf '\033[0;34m%s\033[0m\n' ' (_) __(_)___ ___ '
printf '\033[0;34m%s\033[0m\n' ' / / | / / / __ `__ \'
Expand Down
15 changes: 15 additions & 0 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ set fileformats=unix,mac,dos " Auto detect the file formats
"--------------------------------------------------

filetype off " Required!
let g:vundle_default_git_proto='git'
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" Let Vundle manage Vundle
Expand Down Expand Up @@ -482,6 +483,9 @@ set gdefault " turn on 'g' flag
nnoremap / /\v
vnoremap / /\v
cnoremap s/ s/\v
nnoremap ? ?\v
vnoremap ? ?\v
cnoremap s? s?\v
" Keep search matches in the middle of the window
nnoremap n nzzzv
Expand Down Expand Up @@ -671,6 +675,17 @@ vnoremap > >gv
nnoremap ; :
vnoremap ; :
" Repeat last substitution, including flags, with &.
nnoremap & :&&<CR>
xnoremap & :&&<CR>
" Keep the cursor in place while joining lines
nnoremap J mzJ`z
" Select entire buffer
nnoremap vaa ggvGg_
nnoremap Vaa ggVG
" Map \<Space> to commenting
function! IsWhiteLine()
if (getline(".")=~"^$")
Expand Down

0 comments on commit 6751720

Please sign in to comment.