*vimconfig* For Vim version 6.1. Last change: 2002 Apr 22 VIMCONFIG USER MANUAL by Lubomir Host http://www.platon.sk/projects/vimconfig/ The notation used in this manual is explained here: |notation| (type ':help notation') Note: Use CTRL-] and CTRL-T when looking for keyword. ============================================================================== 1. Short description *conf-description* Vimconfig is a complete set of Vim 6.1 configurations files. It includes personal vimrc config file with many features and some usefull plugins e.g. for html, TeX, Perl, ... . COMMON features *conf-common* --------------- - multiple keys mapping, see |conf-keys|. - defined new commands for better work, see |conf-commands|. - support for user specific and machine specific settings. See |conf-specific-setup|. - improved status bar, see |conf-statusbar|. - ability to open multiple files at ViM startup when they are specified at command line |conf-startup|. - when opening new file a common used strings are inserted according to file type; ie. #include directives in *.c files and so on. See |conf-plugin-template|. - automatic 'perltidy' detection and usage for Perl source codes indentation. ============================================================================== 2. Keyboard mapping *conf-keys* |conf-keys-global| Global keyboard mapping |conf-keys-insert-mode| Insert mode keyboard mapping |conf-keys-normal-mode| Normal mode keyboard mapping |conf-keys-cmdline-mode| Cmdline mode keyboard mapping |conf-keys-plugin| Filetype specific keyboard mapping |conf-keys-plugin-insert-mode| Insert mode keyboard mapping in filetype plugins |conf-keys-plugin-normal-mode| Normal mode keyboard mapping in filetype plugins |conf-keys-plugin-cmdline-mode| Cmdline mode keyboard mapping in filetype plugins GLOBAL KEYBOARD MAPPING ~ *conf-keys-global* ----------------------- KEYS (INSERT mode) *conf-keys-insert-mode* ------------------ *conf-key-CTRL-a* *conf-key-CTRL-A* CTRL-A - move to beginning of line ( key). *conf-key-CTRL-e* *conf-key-CTRL-E* CTRL-E - move to end of line ( key). *conf-key-CTRL-d* *conf-key-CTRL-D* CTRL-D - delete current line without saving it to buffer. Undo seems to be possible. This uses function SafeLineDelete(). See |conf-func-SafeLineDelete|. *conf-key-CTRL-l* *conf-key-CTRL-L* CTRL-L - mapped to CTRL-X CTRL-L, see |i_CTRL-X_CTRL-L| for explanation. *conf-key-CTRL-o* *conf-key-CTRL-0* CTRL-O CTRL-V - This work like CTRL-O CTRL-V in normal mode, see |conf-keys-normal-mode-CTRL-0|. CTRL-O CTRL-K - This work like CTRL-O CTRL-K in normal mode, see |conf-keys-normal-mode-CTRL-0|. CTRL-O CTRL-O - This work like CTRL-O CTRL-O in normal mode, see |conf-keys-normal-mode-CTRL-0|. KEYS (NORMAL mode) *conf-keys-normal-mode* ------------------ *conf-keys-normal-mode-CTRL-0* CTRL-O CTRL-V - Quickly split new window with your Vim configuration directory ~/.vim. CTRL-O CTRL-K - Quickly split new window with your Vim configuration file ~/.vimrc. CTRL-O CTRL-O - Start opening new window. Type name of file and press . New window will be opened with requested file. *conf-key-CTRL-x* *conf-key-CTRL-X* CTRL-X - go to the next window. New |foldcommands| are defined. Here is a list of defined commands. All commands have a global behavior. E.g. ZO is like zO but this opens all folds in whole range of the file, not only in the selected area. ZX Zx ZA Za ZD Zd ZC Zc ZO Zo KEYS (COMMAND-LINE mode) *conf-keys-cmdline-mode* ------------------------ ============================================================================== 3. New commands *conf-commands* Here is a list of defined commands: ~ ------------------------------------------------------------- |conf-com-Printf| :Printf |conf-com-FoldLongLines| :FoldLongLines |conf-com-Indent| :Indent |conf-com-CallProg| :CallProg |conf-com-OpenAllWin| :OpenAllWin |conf-com-UnquoteMailBody| :UnquoteMailBody |conf-com-ReadFileAboveCursor| :ReadFileAboveCursor |conf-com-R| :R |conf-com-Help| :Help |conf-com-Calendar| :Calendar |conf-com-CallProg| :CallProg |conf-com-Explore| :Explore |conf-com-FoldLongLines| :FoldLongLines |conf-com-Help| :Help |conf-com-Inc| :Inc |conf-com-IncN| :IncN |conf-com-IncR| :IncR |conf-com-Indent| :Indent |conf-com-LoadFile| :LoadFile |conf-com-LoadTemplateFile| :LoadTemplateFile |conf-com-MatchDebug| :MatchDebug |conf-com-Next| :Next |conf-com-NetUserPass| :NetUserPass |conf-com-Nread| :Nread |conf-com-Nwrite| :Nwrite |conf-com-OpenAllWin| :OpenAllWin |conf-com-Print| :Print |conf-com-Printf| :Printf |conf-com-R| :R |conf-com-ReadFileAboveCursor| :ReadFileAboveCursor |conf-com-Sexplore| :Sexplore |conf-com-Source| :Source |conf-com-Snip| :Snip |conf-com-UnquoteMailBody| :UnquoteMailBody ------------------------------------------------------------- Note: Use CTRL-] and CTRL-T when looking for keyword. FUNCTIONS *conf-functions* --------- Here is a list of defined functions: ~ ------------------------------------------------------------- |conf-func-Help| Help() |conf-func-ChangeFoldMethod| ChangeFoldMethod() |conf-func-FoldLongLines| FoldLongLines() |conf-func-AutoLastMod| AutoLastMod() |conf-func-LastMod| LastMod() |conf-func-OpenAllWin| OpenAllWin() |conf-func-CallProg| CallProg() |conf-func-Compile| Compile() |conf-func-Indent| Indent() |conf-func-UnquoteMailBody| UnquoteMailBody() |conf-func-SafeLineDelete| SafeLineDelete() |conf-func-GetID| GetID() |conf-func-ReadFileAboveCursor| ReadFileAboveCursor() |conf-func-RemoveAutogroup| RemoveAutogroup() ------------------------------------------------------------- Note: Use CTRL-] and CTRL-T when looking for keyword. ============================================================================== SPECIFIC USER SETUP ~ *conf-specific-setup* ------------------- If you will use specific setup (e.g you are working on multiple machines), you can make it withoutch changing main configuration file ~/.vimrc. Simply put your specific setup to one (or multiple) files. These files are automaticaly sourced by vim on vim startup (if exists and are readable): Supported filenames: ~ Sourced at begin of ~/.vimrc: (in this order!) ~/.vim/vimrc-local.pre ~/.vim/vimrc-local-.pre ~/.vim/vimrc-local-.pre ~/.vim/vimrc-local--.pre ~/.vim/vimrc-local ~/.vim/vimrc-local- ~/.vim/vimrc-local- ~/.vim/vimrc-local-- Sourced at end of ~/.vimrc: (in this order!) ~/.vim/vimrc-local.post ~/.vim/vimrc-local-.post ~/.vim/vimrc-local-.post ~/.vim/vimrc-local--.post Note: Please substitute '' and '' with your machine name or your user name. *conf-statusbar* *conf-startup* *conf-com-Calendar* :Calendar - *conf-com-CallProg* :CallProg *conf-com-Explore* :Explore *conf-com-FoldLongLines* :FoldLongLines *conf-com-Help* :Help *conf-com-Inc* :Inc *conf-com-IncN* :IncN *conf-com-IncR* :IncR *conf-com-Indent* :Indent - indents whole document; especially usable for C source codes *conf-com-LoadFile* :LoadFile *conf-com-LoadTemplateFile* :LoadTemplateFile *conf-com-MatchDebug* :MatchDebug *conf-com-Next* :Next *conf-com-NetUserPass* :NetUserPass *conf-com-Nread* :Nread *conf-com-Nwrite* :Nwrite *conf-com-OpenAllWin* :OpenAllWin *conf-com-Print* :Print *conf-com-Printf* :Printf *conf-com-ReadFileAboveCursor* *conf-com-R* :R :ReadFileAboveCursor *conf-com-Sexplore* :Sexplore *conf-com-Source* :Source *conf-com-Snip* :Snip *conf-com-UnquoteMailBody* :UnquoteMailBody removes starting '>' characters from every line ============================================================================== x.x Autocommands *conf-autocommands* ============================================================================== x.x Plugins *conf-plugins* ============================================================================== X.x Thanks *conf-thanks* Very thanks to many people which contribute on this Vim configuration files. Here is a list of contributors (alphabetical order): ~ Srinath Avadhanula Ondrej Jombik 'Nepto' Martin Karas 'Wolcaan' ============================================================================== vim:tw=78:ts=8:ft=FEATURES:norl:iskeyword=!-~,^*,^|,^"