What is a Vim Tip?[]
A Vim Tip is a nugget of advice which can help solve a particular problem using the Vim editor.
See About for how we started, and Community Portal for an overview, and information on how to ask questions.
Can a Vim Tip be a script?[]
As well as advice, a Vim Tip may include commands, or snippets of Vim script.
In some cases, a tip can also contain a large block of Vim script, however that is the exception. The Vim Tips wiki is intended to facilitate learning how to use Vim. Simply posting a script, or a link to a script, with no explanation of what it does and how it works, probably with a discussion of the considerations taken and decisions made during development, does not help anyone learn how to use Vim, and is discouraged.
The Vim scripts repository on the Vim website is the correct home for substantial scripts and plugins. The Vim scripts repository is also a great place to find ready-made solutions to a multitude of problems. The Vim Tips wiki is a community in which to share and develop your knowledge.
Should I publish my script here or at vim.org?[]
If you are willing to provide support and updates for your script as it evolves, then vim.org is the place to publish. It has a versioning and change log system so users of your script can keep up to date with new releases.
If you have a short and useful script, you could consider proposing a new tip with the script, if you add helpful descriptions and explanations.
If you create a user page, you are certainly welcome to place almost anything Vim-related under your own user name (including scripts that you may want some help developing) but these will probably not become an official VimTip. Consider other resources (such as google code or other free online version-controlled code repositories) if you want to do collaborative development of a serious script.
List of all accepted tips[]
See Category:VimTipProposed for tips that have not yet been accepted.
| Contents | Top · 0-9 · A B C D E F G H I J K L M N O P Q R S T U V W X Y Z |
|---|
All items (1155)
-
Create patch for currently editing file
-
Create underlines, overlines, and strikethroughs using combining characters
-
Creating new text objects
-
Creating your own syntax files
-
Cscope
-
Ctrl-N completion for XML/XSLT attributes
-
Current buffer based menus
-
Custom keyword completion
-
Custom resizing on the spot
-
Customize text for closed folds
-
Cut or copy lines without counting the lines
-
Cut/copy and paste using visual selection
-
Cycle through buffers including hidden buffers
-
Deadkeys / Accented Characters and Mutt integration
-
Debug unexpected option settings
-
Debugging window autocommands
-
Decode MIME text using Perl in Vim
-
Decompile Java .class files automatically
-
Decrease chances of file corruption in case of computer crash
-
Define your own colors
-
Delete a pair of XML/HTML tags
-
Delete all lines containing a pattern
-
Delete files with a Vim command
-
Delete some lines with some exceptions
-
Delete words in a different way
-
Deleting a buffer without closing the window
-
Deleting nested reply threads in emails
-
Describe a SQL table from Vim
-
Desert color scheme with Vim in PuTTY
-
Detect encoding from the charset specified in HTML files
-
Detect non-Unicode Xterms
-
Detect window creation with WinEnter
-
Develop vim modules on Win
-
Dictionary completions
-
Diff current buffer and the original file
-
Diff the current buffer with another file
-
Different syntax highlighting within regions of a file
-
Disable automatic comment insertion
-
Disable beeping
-
Disable built-in command
-
Disable F1 built-in help key
-
Disable the "Hit any key to close this window" message in remote editing
-
Disabling cabbrev
-
Disabling IME input in Windows
-
Display date-and-time on status line
-
Display last viewed text lines at top of new shell
-
Display line numbers
-
Display output of shell commands in new window
-
Display the name of the function you are editing
-
Display UTF-8 characters in Mac Quicklook
-
Displaying a variable/macro definition
-
Displaying status line always
-
Displaying the current Vim environment
-
Dosini files
-
Drag and drop file names into the Vim command line
-
Drag words with Ctrl-left/right
-
Duplicate previous line word by word
-
Easier buffer switching
-
Easily change the path option
-
Easily switch between source and header file
-
Easily switch between two styles of color scheme
-
Easy (un)commenting out of source code
-
Easy block selection with mouse
-
Easy edit of files in the same directory
-
Easy floating point arithmetic
-
Easy indenting in insert and normal mode with no cursor displacement
-
Easy pasting to Windows applications
-
Easy playback of recorded keys
-
Easy word and page selection and deletion in gvim
-
Edit a file or jump to it if already open
-
Edit a temporary copy of the current file
-
Edit and organize several remote files easily
-
Edit configuration files for a filetype
-
Edit file found by whereis
-
Edit file in existing vim automatically
-
Edit gnupg-encrypted files
-
Edit gpg encrypted files
-
Edit Java jar and other files
-
Edit MoinMoin wiki files with folding
-
Edit multiple files from a list of file names
-
Edit remote files locally via SCP/RCP/FTP
-
Editing a hard link to a file
-
Editing ActiveState Perl batch files
-
Editing crontab
-
Editing databases with Vim/Perl/DBI
-
Editing files on an ftp server listening on a non-standard port
-
Editing remote files via scp in vim
-
Embedding vim in Visual Studio
-
Enable paren matching over whole file
-
Enable servername capability in vim/xterm
-
Enabling Windows shortcuts for gvim
-
Encrypt a file without leaving traces
-
Encryption
-
Enhance the calendar script with special dates
-
Enhance the word complete.vim script
-
Enhanced command window
-
Entering special characters
-
Environment variables
-
EP3 Syntax File
-
Erasing previously entered characters in insert mode
-
Errorformat and makeprg
-
Errorformat for icc7
-
Errorformat for Intel ifort
-
Errorformat for java/ant/junit/cygwin/bash
-
Errorformats
-
Evaluate an expression in any mode
-
Evaluate current line using Python
-
Example vimrc
-
Exchanging adjacent words
-
Execute a shell command in the directory shown in file explorer
-
Execute accidentally inserted commands
-
Execute command on each file in a list
-
Execute commands from buffer text under Windows
-
Execute commands without changing the search register
-
Execute external programs asynchronously under Windows
-
Execute Python from within current file
-
Execute sybase-sql queries and see the result in a split window
-
Expand existing abbreviation
-
Explorer startup and shutdown
-
Extending keywords
-
External commands on Windows
-
External paste buffer
-
Fast access to the first nine buffers
-
Fast help in full window
-
Fast jump to line that matches a regular expression
-
Fast one session mapping
-
Fast scroll mappings
-
Fast start up in a telnet session
-
Fast window resizing with plus/minus keys
-
Faster directory browsing from command line
-
Faster loading of large files
-
File explorer
-
File format
-
File no longer available - mark buffer modified
-
File search similar to cmd-t in TextMate
-
File type plugins
-
FileName Completion in Shell Scripts
-
Filetype.vim
-
Filter buffer on a search result
-
Find and edit any file in a directory using tag-like pattern matching
-
Find files in subdirectories
-
Find in files within Vim
-
Find VIMRUNTIME in a bash script
-
Finding phone numbers
-
Finding your way around in an installshield project XML file
-
Fine tuning syntax colors
-
Fix an autoindent error
-
Fix arrow keys that display A B C D on remote shell
-
Fix broken arrow key navigation in insert mode
-
Fix email quotations with long lines
-
Fix errors that relate to reading or creating files in the temp or tmp environment on an MS Windows PC
-
Fix indentation
-
Fix meta-keys that break out of Insert mode
-
Fix scrolling when using Trackpoint
-
Fix syntax highlighting
-
Fix the x command in virtualedit mode
-
Fold a C sharp region
-
Fold away empty lines
-
Fold C-style comments
-
Fold quickfix list on directory or file names
-
Folding
-
Folding for plain text files based on indentation
-
Folding functions with the prototype included
-
Folding like in Visual Basic .NET
-
Folding of find locate tar-tf output
-
Folding with Regular Expression
-
Follow tag in new window
-
Footnotes
-
For verilog users only
-
Forcing Syntax Coloring for files with odd extensions
-
Forcing UTF-8 Vim to read Latin1 as Latin1
-
Format a code block
-
Format only long lines
-
Format paragraph without changing the cursor position
-
Format pasted text automatically
-
Format your xml document using xmllint
-
Formatting paragraphs in LaTeX: an "environment-aware gqap"
-
Formatting stuff
-
Fortran highlighting problems
-
French character maps
-
Function signature previewer
-
Fuzzy insert mode completion (using FZF)
-
Fuzzy mappings of everything!
-
Generate accessor and setter methods from variable names
- Generate all Unicode characters
-
Generate calendar file
-
Generate Java setters and getters automatically
-
Generating a column of increasing numbers
-
Generic xml imap to make an element of any word you type
-
Get a shell command for changing to the current directory
-
Get Alt key to work in terminal
-
Get bright background colors in Linux console
-
Get cursor position as byte percentage instead of line percentage
-
Get inline help for PHP functions
-
Get latest releases for syntax highlighting, runtime, plugins etc
-
Get shortened messages from using echomsg
-
Get the correct indent for new lines despite blank lines
-
Get the name of the current file
-
Get the vim patched source
-
Get vim 5.x window in vim 6.x