|
Softpanorama |
May the source be with you, but remember the KISS principle ;-)
|
[Dec 31, 2004] Seven useful tips from Editor of Softpanorama (New Year present for readers of this page):
buflist - Buffer browser vim online
The buffer browser plugin provides you an easy way to switch from a buffer to another. The layout has been inspired on the taglist script.
Press the <F4> key to toggle the buffer list on and off. Help can be displayed by pressing the 'h' key.
General keymaps:
- <S-F3>/<S-F4> to decrease/increase window height by 1
- <C-S-F3>/<C-S-F4> to decrease/increase window height by 5
Usage when not in buffer list:
- <F4> to open/access buffer list panel
- \\0 to \\9 to mark window with number
- \\p to mark window as preview window
Usage when in buffer list:
- h to toggle help
- q to close buffer list (same as CTRL-W q)
- p to preview file in preview window
- d to delete currently selected buffer
- u to update buffer list
- x to toggle path display
- s to toggle sorting by buffer number/name/extension
- n/N to edit file in new window below/above <F4>
- <CR> to edit file in last window visited before <F4>
- \\0 to \\9 to edit file in window marked 0 to 9
- <F4> to go back to <F4> window
- <S-F3> to decrease buffer list width by 1
- <S-F4> to increase buffer list width by 1
- <C-S-F3> to decrease buffer list width by 5
- <C-S-F4> to increase buffer list width by 5
Remark: the \ is in fact defined as <Leader>, it might thus change regarding your environment settings.
Indent Finder - Configure vim to the indentation of the open buffer vim online
For each new open buffer, scans the buffer, find the indentation being used in the file and configure vim to this indentation.
This solves the problem of files with different indentations.
There is a windows version on the project homepage : "http://phil.freehackers.org/indent-finder";
vimconfig - Vim 6.0 configuration files vimrc, ftplugins, plugins vim online
Vim 6.0 configuration files.
This package include vimrc file, filetype plugins (mail, perl, TeX) and some plugins from another projects.
Useful functions (e.g. for folding, autoreload of ~/.vimrc ...)
The LATEST version of project can be downloaded from:
http://www.platon.sk/projects/vimconfig/
sudo.vim - Allows one to edit a file with prevledges from an unprivledged session. vim online
" sudo.vim: A vim plugin by Rich Paul (vim@rich-paul.net)
"
" This script eases use of vim with sudo by adding the ability to
" edit one file with root privleges without running the whole
" session that way.
"
" Usage: put it in the plugin directory, and
" (command line): vim sudo:/etc/passwd
" (within vim): :e sudo:/etc/passwd
"
" sudo will ask for your password if need be.
"
install details " Usage: put it in the plugin directory, and
Its really irksome when your compiler complains for any unmatched "{" or "(" or "[". With this plugin you can highlight all those unmatched "{" or "(" or "[" as you type. This helps you to keep track of where the exact closing bracket should come. This plugin also warns you of any extra "}" or ")" or "]" you typed.
Customization:
- Specifying Additional Bracket-pairs.
User can specify additional matching pairs in
the global option 'matchpairs', see :help 'matchpairs'
For eg: set mps+=<:> (to include <> pair)
put the above setting in .vimrc file and restart vim.
- To get rid of highlighting when you quit insert
mode, add this mapping in your vimrc
noremap! <Esc> <Esc>:match NONE<CR>
To test how this plugin works type something like
{
( ) [ ]
( ( ( ) ) )
}
Happy vimming.
-ncrinstall details Drop this in your plugins directory or
manually source this file using
:so UnMtchBracket.vim
C-fold - Automates folding and unfolding C & C++ comments and code blocks. vim online
Automatically folds all blocks (i.e. { } ) in C and C++ and defines a function that performs a command e.g. zo on all folds beginning with text that matches a given pattern.
This allows for the following mappings defined by the plugin:
z[ - Opens all doxygen-style comments
z] - Closes all doxygen-style comments
z{ - Opens all code blocks (i.e. { })
z} - Closes all code blocksinstall details Extract the archive from your home directory. This will extract the following files:
.vim/plugins/cfold.vim
.vim/after/syntax/c.vim
Also requires the folding of Doxygen-style comments. This requires vimscript #5. This can be done easily by adding the 'fold' keyword to the end of the 'doxygenComment' region in the 'doxygen.vim' syntax file:
syn region doxygenComment start= ... keepend fold
Additional languages can be supported as appropriate (e.g. Java) by copying 'c.vim' and renaming to the syntax file for the language (e.g. java.vim).
| 2004-12-30] | tolerable.vim : A black-on-white scheme inspired by BBEdit |
| (1.1) Trying to better fulfill my creed of "no bold" - Ian Langworth | |
| [2004-12-30] | vtreeexplorer : tree based file explorer - vim only implemenation |
| (1.20) Auto-loading for TreeExplorer buffer type - useful if you save and restore a session with the explorer in it. Updated email address. - scott urban | |
| [2004-12-30] | nqc.vim : NQC programming support (for the LEGO MINDSTORMS RCX-Controller) |
| (3.1) + Aligned line end comments for consecutive lines. + Uncomment more than one block at once. + The dialog windows (GUI) have been replaced by more flexible command line inputs. + Online documentation improved. - Fritz Mehner | |
| [2004-12-30] | Abc-Menu : Adds alphabetic menus of commands |
| (0.9) Initial upload - Jochen Behrens |
Copyright © 1996-2008 by Dr. Nikolai Bezroukov. www.softpanorama.org was created as a service to the UN Sustainable Development Networking Programme (SDNP) in the author free time. Submit comments This document is an industrial compilation designed and created exclusively for educational use and is placed under the copyright of the Open Content License(OPL). Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.
Standard disclaimer: The statements, views and opinions presented on this web page are those of the author and are not endorsed by, nor do they necessarily reflect, the opinions of the author present and former employers, SDNP or any other organization the author may be associated with. We do not warrant the correctness of the information provided or its fitness for any purpose.
Last modified: February 28, 2008