Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 43 lines (32 sloc) 1.635 kB
8262382 @tpope Use # style markdown headings
authored
1 # endwise.vim
9a9d199 @tpope Add a README
authored
2
3 This is a simple plugin that helps to end certain structures
4 automatically. In Ruby, this means adding `end` after `if`, `do`, `def`
5 and several other keywords. In Vimscript, this amounts to appropriately
6 adding `endfunction`, `endif`, etc. There's also Bourne shell, VB
11be5c9 @rhysd Add C and C++ PreProcessor support
rhysd authored
7 (don't ask), C/C++ preprocessor, and Lua support.
9a9d199 @tpope Add a README
authored
8
9 A primary guiding principle in designing this plugin was that an
10 erroneous insertion is never acceptable. The behavior is only triggered
11 once pressing enter on the end of the line. When this happens, endwise
12 searches for a matching end structure and only adds one if none is
13 found.
14
15 While the goal was to make it customizable, this turned out to be a tall
16 order. Every language has vastly different requirements. Nonetheless,
17 for those bold enough to attempt it, you can follow the model of the
18 autocmds in the plugin to set the three magic variables governing
19 endwise's behavior.
20
8262382 @tpope Use # style markdown headings
authored
21 ## Installation
9a9d199 @tpope Add a README
authored
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-endwise.git
29
8262382 @tpope Use # style markdown headings
authored
30 ## Self-Promotion
9a9d199 @tpope Add a README
authored
31
32 Like endwise.vim? Follow the repository on
33 [GitHub](https://github.com/tpope/vim-endwise) and vote for it on
74306aa @imgx64 README: Fix link to script page in vim.org
imgx64 authored
34 [vim.org](http://www.vim.org/scripts/script.php?script_id=2386). And if
9a9d199 @tpope Add a README
authored
35 you're feeling especially charitable, follow [tpope](http://tpo.pe/) on
36 [Twitter](http://twitter.com/tpope) and
37 [GitHub](https://github.com/tpope).
38
8262382 @tpope Use # style markdown headings
authored
39 ## License
9a9d199 @tpope Add a README
authored
40
41 Copyright (c) Tim Pope. Distributed under the same terms as Vim itself.
42 See `:help license`.
Something went wrong with that request. Please try again.