"***************************************************************************** "** Name: lineind.vim - indent/unindent lines ** "** ** "** Type: global VIM plugin ** "** ** "** Author: Christian Habermann ** "** christian (at) habermann-net (point) de ** "** ** "** Copyright: (c) 2002 by Christian Habermann ** "** ** "** License: GNU General Public License 2 (GPL 2) or later ** "** ** "** This program is free software; you can redistribute it ** "** and/or modify it under the terms of the GNU General Public ** "** License as published by the Free Software Foundation; either ** "** version 2 of the License, or (at your option) any later ** "** version. ** "** ** "** This program is distributed in the hope that it will be ** "** useful, but WITHOUT ANY WARRANTY; without even the implied ** "** warrenty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ** "** PURPOSE. ** "** See the GNU General Public License for more details. ** "** ** "** Version: 1.0.0 ** "** tested under Linux and Win32, VIM 6.0, VIM 6.1 ** "** ** "** History: 1.0.0 29. Nov. 2002 ** "** comments updated ** "** function same as 0.1.0, first release ** "** ** "** 0.1.0 3. Jan. 2002: ** "** initial version, not released ** "** ** "***************************************************************************** "** Description: ** "** This script adds the feature of indention and unindention of ** "** selected lines. Enter visual-mode and select the lines you want to ** "** indent/unindent. Press TAB to indent or SHIFT-TAB to unindent. ** "** ** "** Installation: ** "** To use it copy it in your local plugin-directory ** "** (Unix: ~/.vim/plugin). After starting VIM this script should be ** "** sourced automatically. ** "** ** "** Configuration: ** "** In .vimrc set VIM-variable 'shiftwidth' to the number of spaces ** "** you want to shift. ** "** e.g.: ** "** set shiftwidth=4 ** "** ** "** Known limitations: ** "** none ** "** ** "** Known bugs: ** "** none ** "** ** "***************************************************************************** " allow user to avoid loading this plugin and prevent loading twice if exists ("loaded_lineind") finish endif let loaded_lineind = 1 " the mappings: vmap >gv vmap