Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 63 lines (44 sloc) 1.812 kb
7dc08145 »
2011-08-20 commentary.vim 1.0
1 commentary.vim
2 ==============
3
4 Comment stuff out. Use `\\\` to comment out a line (takes a count),
5 `\\` to comment out the target of a motion (for example, `\\ap` to
6 comment out a paragraph), and `\\` in visual mode to comment out the
7 selection. That's it.
8
9 Install [repeat.vim](https://github.com/tpope/vim-repeat) to enable
10 repeating with `.` the line commenting map `\\\`.
11
12 I wrote this because 5 years after Vim added support for mapping an
13 operator, I still couldn't find a commenting plugin that leveraged that
7baa64a3 »
2011-08-20 Add concession
14 feature (I overlooked
30451e82 »
2011-08-20 Typo
15 [tcomment.vim](https://github.com/tomtom/tcomment_vim)). Striving for
8647be48 »
2011-08-20 Support nesting: /* /1* abc *1/ */
16 minimalism, it weighs in at less than 50 lines of code.
7dc08145 »
2011-08-20 commentary.vim 1.0
17
18 Oh, and it uncomments, too.
19
20 Installation
21 ------------
22
23 If you don't have a preferred installation method, I recommend
24 installing [pathogen.vim](https://github.com/tpope/vim-pathogen), and
25 then simply copy and paste:
26
27 cd ~/.vim/bundle
28 git clone git://github.com/tpope/vim-commentary.git
29
30 Once help tags have been generated, you can view the manual with
31 `:help commentary`.
32
33 FAQ
34 ---
35
36 > My favorite file type isn't supported!
37
38 Relax! You just have to adjust `'commentstring'`:
39
40 autocmd FileType apache set commentstring=#\ %s
41
42 Contributing
43 ------------
44
45 See the contribution guidelines for
46 [pathogen.vim](https://github.com/tpope/vim-pathogen#readme).
47
48 Self-Promotion
49 --------------
50
8e59f1fe »
2011-08-20 Fix copy/paste
51 Like commentary.vim? Follow the repository on
7dc08145 »
2011-08-20 commentary.vim 1.0
52 [GitHub](https://github.com/tpope/vim-commentary) and vote for it on
53 [vim.org](http://www.vim.org/scripts/script.php?script_id=3695). And if
54 you're feeling especially charitable, follow [tpope](http://tpo.pe/) on
55 [Twitter](http://twitter.com/tpope) and
56 [GitHub](https://github.com/tpope).
57
58 License
59 -------
60
d5bcdc38 »
2011-09-08 Clarify copyright
61 Copyright (c) Tim Pope. Distributed under the same terms as Vim itself.
62 See `:help license`.
Something went wrong with that request. Please try again.