vim-config
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:My personal VIM configuration.
My personal VIM configuration
=============================

What does it do to my Vim?
--------------------------

It adds the following configuration, you can override it if you wish (see [how](#i-like-some-of-your-configuration-but-i-want-some-of-my-own-too)).

1. Uses the desert theme when running Vim in a GUI.
2. Installs [Pathogen](https://github.com/tpope/vim-pathogen)
4. Uses the built in apache syntax for files with the extension _conf_.
5. Uses 2 spaces instead of tabs (except for Makefile's).
6. Uses _smartindent_.
7. Attaches a `:set paste` and `:set nopaste` toggle to <F5>.
8. Adds line numbers.
9. Turns on an option to move the view to search results while typing your search query.
10. Adds the ability to have .vimrc configuration per directories
11. Sets the <Leader> to `,`.
12. Installs a load of [plugins](#what-comes-bundled).

Installation
------------

### Linux / Mac

```sh
curl https://raw.githubusercontent.com/johngeorgewright/vim-config/master/install.sh | sh
```

### Windows

```bat
cd C:\Users\[you]
git clone https://github.com/johngeorgewright/vim-config.git vimfiles
mklink _vimrc vimfiles\_vimrc
cd vimfiles
git submodule update --init
cd bundle\vimproc
# Windows using Mingw (32bit Vim):
make -f make_mingw32.mak
# Windows using Mingw (64bit Vim):
make -f make_mingw64.mak
```

Updating
--------

Once you've installed this VIM package, you can always check and install updates. Run:

```sh
cd $HOME/.vim && git pull origin master && git submodule update --init
```

Or, you can save the above line as a bash alias:

```sh
# ~/.bashrc
alias updatevim="cd $HOME/.vim && git pull origin master && git submodule update --init"
```

What comes bundled?
-------------------

- [Ack](https://github.com/mileszs/ack.vim)
- [Airline](https://github.com/bling/vim-airline)
- [Bufkill](http://www.vim.org/scripts/script.php?script_id=1147)
- [Camel Case Motion](https://github.com/vim-scripts/camelcasemotion)
- [CoffeeScript](https://github.com/kchmck/vim-coffee-script)
- [CSS Color](https://github.com/skammer/vim-css-color)
- [CSS3 Syntax](https://github.com/hail2u/vim-css3-syntax)
- [Ctrl-P](https://github.com/kien/ctrlp.vim) - NOTE: Ctrl-P uses a feature to reset the working directory to the selected file's nearest repo ancestor. This is pretty annoying for svn users so I've turned it off.
- [Delimit Mate](https://github.com/Raimondi/delimitMate)
- [Easy Motion](https://github.com/Lokaltog/vim-easymotion)
- [Exchange](https://github.com/tommcdo/vim-exchange)
- [Fugitive](https://github.com/tpope/vim-fugitive.git)
- [Gundo](http://sjl.bitbucket.org/gundo.vim/)
- [Handlebars](https://github.com/nono/vim-handlebars)
- [IndentLine](https://github.com/Yggdroot/indentLine)
- [Jade](https://github.com/digitaltoad/vim-jade)
- [JSON](https://github.com/elzr/vim-json)
- [JST](https://github.com/briancollins/vim-jst)
- [Less](https://github.com/groenewege/vim-less)
- [Literal CoffeeScript](https://github.com/mintplant/vim-literate-coffeescript.git)
- [Markdown](https://github.com/tpope/vim-markdown.git) - This is mainly used for the literal coffee plugin
- [MRU](https://github.com/vim-scripts/mru.vim)
- [Mustache](https://github.com/juvenn/mustache.vim)
- [NerdTree](https://github.com/scrooloose/nerdtree) - Toggling focus has been mapped to <F2> and toggling the view has been mapped to <S-F2>
- [RVM](https://github.com/tpope/vim-rvm)
- [Shell](https://github.com/johngeorgewright/shell.vim)
- [Slim](https://github.com/slim-template/vim-slim)
- [Snipmate](https://github.com/msanders/snipmate.vim)
- [Sparkup](https://github.com/tristen/vim-sparkup)
- [Splice](https://github.com/sjl/splice.vim)
- [Stylus](https://github.com/wavded/vim-stylus)
- [Surround](https://github.com/tpope/vim-surround)
- [Syntastic](https://github.com/scrooloose/syntastic)
- [TagList](http://vim-taglist.sourceforge.net/)
- [tComment](https://github.com/vim-scripts/tComment)
- [TypeScript](https://github.com/leafgarland/typescript-vim)
- [VimProc](https://github.com/Shougo/vimproc.vim)
- [VimShell](https://github.com/Shougo/vimshell.vim)

### Fancy Powerline fonts

To get fancy Powerline fonts in the Airline status bar, go and install one of the [patched fonts](https://github.com/Lokaltog/powerline-fonts) and then add the following to your ~/.vimrc file:

```vim
set guifont=[Your patched font]
let g:airline_powerline_fonts=1
```


I like some of your configuration, but I want some of my own too
----------------------------------------------------------------

### Linux
```vim
# If you're on linux just edit the created ~/.vim file
```

### Windows
```vim
" C:\Users\[you]\_vimrc

runtime _vimrc

" Add your config here...
```


本源码包内暂不包含可直接显示的源代码文件,请下载源码包。