Vim plugins
Following vim plugins are used by me.
- VIM JDE ([http://www.vim.org/scripts/script.php?script_id=1213])
Some of the shortcuts don't work on my machine:-( I wrote a separate post which can be accessed here. - closetag (useful for Html/XML editing)
http://www.vim.org/scripts/script.php?script_id=13
Use Ctrl+_ to insert end tag for nearest open tag. - surround
http://www.vim.org/scripts/script.php?script_id=1697
Select some text and surround it with specific string.
- cs
change the surrounding character in normal mode.
Syntax : cs<old_surrounding><new-surrounding>
Example: text is "Hello world", use command cs"*, the text is changed to *Hello world*.
Note: Not all characters can be old_surrounding. Usually, ', ", [, {, ( are allowed. - ds
delete the surrounding character in normal mode.
Syntax : ds<surrounding>
Example: text is "Hello world", use command ds", the text is changed to Hello world. - ys
add a surrounding character to a text object in normal mode.
Syntax: ys<text_object><surrounding>
Example:text is Hello, use command ysiw", the text is changed to "Hello". - s
Select some text in visual mode, press key "s" and input surrounding character(s). Then the selected text is enclosed with that specific character(s). Tag can be inserted.
- closetag
http://www.vim.org/scripts/script.php?script_id=13
Functions and mappings to close open HTML/XML tags
- Autoclose
http://www.vim.org/scripts/script.php?script_id=1849
Inserts matching bracket, paren, brace or quote.
As mentioned in the post, the script disables arrow keys in insert mode. In that case, escape sequences are inserted.
Solution: Comment out following two lines in file autoclose.vim:
inoremap <silent> <Esc> <C-R>=<SID>CloseStackPop('')<CR><Esc>
inoremap <silent> <C-[> <C-R>=<SID>CloseStackPop('')<CR><C-[>
- taglist
http://www.vim.org/scripts/script.php?script_id=273
"The "Tag List" plugin is a source code browser plugin for Vim and provides an overview of the structure of source code files and allows you to efficiently browse through source code files for different programming languages. "
- EnhCommentify
http://www.vim.org/scripts/script.php?script_id=23
Very handy to add comments to code.
- Asciidoc plugin
This plugin can be used to write document in asciidoc format.
page revision: 10, last edited: 09 Mar 2009 04:05