Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
vgod committed Mar 18, 2011
1 parent eb71fe7 commit 3f66c8b
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 64 deletions.
71 changes: 70 additions & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1 +1,70 @@
vgod's .vimrc and .vim.
vgod's vimrc
============
Author: Tsung-Hsiang (Sean) Chang <vgod@vgod.tw>
Fork me on GITHUB https://github.com/vgod/vimrc

HOW TO INSTALL
--------------

0. Check out from github
$ git clone https://github.com/vgod/vimrc ~/.vim
$ cd ~/.vim
$ git submodule update --init
1. Install ~/.vimrc and ~/.gvimrc
$ ./install-vimrc.sh
2. Compile the Command-T plugin
$ cd .vim/bundle/command-t/ruby/command-t
$ ruby extconf.rb
$ make

UPGRADE PLUGIN BUNDLES
----------------------

If a plugin was checked out as a git submodule, you can upgrade the plugin
with git pull. For example,
$ cd ~/.vim/bundle/command-t
$ git pull

HOW TO USE
----------

see the "USEFUL SHORTCUTS" section to learn my shortcuts.

Plugins
-------

vim-surround: deal with pairs of surroundings.
https://github.com/tpope/vim-surround/blob/master/doc/surround.txt

Command-T: open and navigate between files with cmd-t
https://github.com/wincent/Command-T

snipMate: TextMate-style snippets for Vim
http://www.vim.org/scripts/script.php?script_id=2540
:help snipMate to see more info.

YankRing: Maintains a history of previous yanks, changes and deletes
http://www.vim.org/scripts/script.php?script_id=1234
:help yankring to see more info.

VisIncr: Produce increasing/decreasing columns of numbers, dates, or daynames
http://www.vim.org/scripts/script.php?script_id=670

Cute Error Marker: showing error and warning icons on line
http://www.vim.org/scripts/script.php?script_id=2653
Note: MacVim users need to enable "Use experimental renderer" to see
graphical icons.


Language specific supports
--------------------------

Latex: vim-latex
Restructured Text: ctrl-u 1~5 inserts Part/Chapter/Section headers
CSS: ctrl-x ctrl-o to do omnicompletion

Other good references
---------------------

http://amix.dk/vim/vimrc.html
http://spf13.com/post/perfect-vimrc-vim-config-file
72 changes: 9 additions & 63 deletions vimrc
Original file line number Diff line number Diff line change
@@ -1,64 +1,9 @@
" vgod's vimrc
" https://github.com/vgod/vimrc

" HOW TO INSTALL
" ==============
" 0. Check out from github
" $ git clone https://github.com/vgod/vimrc ~/.vim
" $ cd ~/.vim
" $ git submodule update --init
" 1. Install ~/.vimrc and ~/.gvimrc
" $ ./install-vimrc.sh
" 2. Compile the Command-T plugin
" $ cd .vim/bundle/command-t/ruby/command-t
" $ ruby extconf.rb
" $ make

" UPGRADE PLUGIN BUNDLES
" ======================
" If a plugin was checked out as a git submodule, you can upgrade the plugin
" with git pull. For example,
" $ cd ~/.vim/bundle/command-t
" $ git pull

" HOW TO USE
" ==========
" see the "USEFUL SHORTCUTS" section to learn my shortcuts

" Plugins
" =======
"
" vim-surround: deal with pairs of surroundings.
" https://github.com/tpope/vim-surround/blob/master/doc/surround.txt
"
" Command-T: open and navigate between files with cmd-t
" https://github.com/wincent/Command-T
"
" snipMate: TextMate-style snippets for Vim
" http://www.vim.org/scripts/script.php?script_id=2540
" :help snipMate to see more info.
"
" YankRing: Maintains a history of previous yanks, changes and deletes
" http://www.vim.org/scripts/script.php?script_id=1234
" :help yankring to see more info.
"
" VisIncr: Produce increasing/decreasing columns of numbers, dates, or daynames
" http://www.vim.org/scripts/script.php?script_id=670
"
" Cute Error Marker: showing error and warning icons on line
" http://www.vim.org/scripts/script.php?script_id=2653
" Note: MacVim users need to enable "Use experimental renderer" to see
" graphical icons.
"

" Language specific supports:
" Latex: vim-latex
" Restructured Text: ctrl-u 1~5 inserts Part/Chapter/Section headers
" CSS: ctrl-x ctrl-o to do omnicompletion

" Other good references:
" http://amix.dk/vim/vimrc.html
" http://spf13.com/post/perfect-vimrc-vim-config-file
" Tsung-Hsiang (Sean) Chang <vgod@vgod.tw>
" Fork me on GITHUB https://github.com/vgod/vimrc

" read https://github.com/vgod/vimrc/blob/master/README for more info


" For pathogen.vim: auto load all plugins in .vim/bundle
call pathogen#runtime_append_all_bundles()
Expand All @@ -77,9 +22,6 @@ filetype on " Enable filetype detection
filetype indent on " Enable filetype-specific indenting
filetype plugin on " Enable filetype-specific plugins

" many plugins use hotkeys that starts with <leader>
let mapleader=","
let g:mapleader=","

" auto reload vimrc when editing it
autocmd! bufwritepost .vimrc source ~/.vimrc
Expand Down Expand Up @@ -173,6 +115,10 @@ endfun
"---------------------------------------------------------------------------
" USEFUL SHORTCUTS
"---------------------------------------------------------------------------
" set leader to ,
let mapleader=","
let g:mapleader=","

"replace the current word in all opened buffers
map <leader>r :call Replace()<CR>
Expand Down

0 comments on commit 3f66c8b

Please sign in to comment.