-
Notifications
You must be signed in to change notification settings - Fork 4
/
README
88 lines (52 loc) · 2.38 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
My MacVIM Setup for the Textmate Convert
to use:
- clone this repo somewhere (I have it at ~/Vim/config)
mkdir ~/Vim
git clone git://github.com/railsjedi/vimconfig.git ~/Vim/config
- symlink the vim files to where you cloned it
ln -s $HOME/Vim/config ~/.vim
ln -s $HOME/Vim/config/vimrc ~/.vimrc
ln -s $HOME/Vim/config/gvimrc ~/.gvimrc
- clone my awesome snippet repo (or fork it and clone your own)
git://github.com/railsjedi/snipmate-snippets.git ~/Vim/snippets
ln -s $HOME/Vim/snippets ~/Vim/config/snippets
--------
What I have configured:
- Pathogen: for easy adding/removing/updating of plugins (they go in the ~/.vim/bundle/ directory)
- NerdTree: file manager
- SnipMate: for textmate style snippets
- tComment: comment/uncommenting. use command-/ to toggle line comments
- VividChalk: great looking color scheme (looks exactly like VibrantInk on textmate)
- Surround: tools to easily surround/modify wrapped blocks of code
- vim-cucumber: helps vim work better with Cucumber
- vim-rails: helps vim work better with Rails
- vim-haml: helps vim work better with Haml
- vim-liquid: helps vim work better with the Liquid markup language
- ack.vim: for project wide searching
- fugitive: some handy git integration
- vim-git: latest runtime git files
- vim-ruby: latest ruby configuration files
- buffer-explorer: tools to easily navigate the open buffers
- endwise: automatically adds end statements to common ruby blocks
- jquery: adds some minor syntax highlighting updates for jQuery scripts
- abolish: no idea what this does
- repeat: no idea what this does
- unimpaired: no idea what this does
TODO:
- map these textmate commands to vim equivalents:
- do something cool with bcat (outputs to browsers)
CONTROL-SHIFT-H: this should "tidy" the document.
primarily use this for reformating javascript or html files
CONTROL-SHIFT-V: this should "validate" the document
html docs should validate using w3c markup validation service
javascript files should validate using jslint
ruby files should validate using ruby syntax parser
COMMAND-R: this should "run" the file
rspec: run test using rspec command
cucumber: run cucumber test
ruby: run file
html: ?
COMMAND-SHIFT-R: should run a focused unit test
rspec: run a specific test
cucumber: run a specific scenario
CONTROL-H: should look up documentation on the current word (or current highlighted word)