Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

change http to git

  • Loading branch information...
commit 675172033c4cac09814e5baf72f64e1f2df32e9f 1 parent 024181b
@kepbod authored
Showing with 23 additions and 8 deletions.
  1. +4 −4 README.md
  2. +3 −3 tools/bootstrap.sh
  3. +1 −1  tools/update.sh
  4. +15 −0 vimrc
View
8 README.md
@@ -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!
@@ -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**
View
6 tools/bootstrap.sh
@@ -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
View
2  tools/update.sh
@@ -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' ' / / | / / / __ `__ \'
View
15 vimrc
@@ -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
@@ -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
@@ -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(".")=~"^$")
Please sign in to comment.
Something went wrong with that request. Please try again.