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)
-
A better gm command
-
A better interfacing of (La)TeX with the quickfix mode
-
Abbreviation that prompts whether to expand it or not
-
Abbreviations only on shortcut
-
Accelerated motion
-
Access Python Help
-
Access vim@vim.org using Newsgroup Reader
-
Accessing the system clipboard
-
Add a newline after given patterns
-
Add classname based on filename while in input mode
-
Add html tags with substitute
-
Add Java import statements automatically
-
Add trailing blanks to lines for easy visual blocks
-
Add Vim to the Windows Explorer context menu
-
Add Vim to Windows Send To menu
-
Add your function heading with a keystroke
-
Add your note files to Vim help
-
Add/change file extension in current buffer
-
Adding a console to gdbvim
-
Adding MPI and PVM syntax highlighting
-
Adding Vim to MS-Windows File Explorer Menu
-
AES256 encryption in Vim
-
Align endif with corresponding if or ifdef directive
-
Align numbers at decimal point
-
Align text into a table
-
Align text plugin
-
All folds open when opening a file
-
All the right moves
-
Allow Inform header files to be distinguished from C headers
-
Alter the display of buffers in the buffers menu
-
Alternate delimiters for the replace command
-
Alternative tab navigation
-
Always keep quickfix window at specified height
-
Always start on first line of git commit message
-
Ampersand in freebsd shell commands to view LaTeX files
-
Any word completion
-
Append output of an external command
-
Apply range to any command that does not accept ranges
-
Applying substitutes to a visual block
-
Arbitrary tags for file names
-
Associate files with no extension to Vim under Windows
-
Auctex-style environment creation in LaTeX
-
Auto closing an HTML tag
-
Auto commands for C/C++ editing
-
Auto compile Javascript with Closure
-
Auto copy the mouse selection
-
Auto end-quote html/xml attribute values as you type in insert mode
-
Auto execute yuicompressor
-
Auto highlight current word when idle
-
Auto insert Java class template when editing a new Java file
-
Auto save files when focus is lost
-
Auto spelling correction using abbreviations
-
Auto tags by project.vim
-
Auto-fold Perl subs
-
Auto-save current buffer periodically
-
Autocheckout from perforce
-
Autocmd to update ctags file
-
Autocomplete with TAB when typing words
-
Autoconvert leading eight spaces to tab when type or paste in Makefile
-
Autoloading Cscope Database
-
Automatic Commenting of Preprocessor Directives in C
-
Automatic file type detection with fully qualified ClearCase names
-
Automatic formatting of paragraphs
-
Automatic insertion of C/C++ header gates
-
Automatic scrolling of text
-
Automatic word wrapping
-
Automatically add Python paths to Vim path
-
Automatically append closing characters
-
Automatically create and update cscope database
-
Automatically create tmp or backup directories
-
Automatically fitting a quickfix window height
-
Automatically generate PHPdoc comments
-
Automatically indent an XML file using XSLT
-
Automatically maximizing gvim in KDE
-
Automatically open the quickfix window on :make
-
Automatically position the cursor when editing email messages
-
Automatically quit Vim if quickfix window is the last
-
Automatically redate file headers
-
Automatically refresh display of html on saving file
-
Automatically reload files with mixed line-endings in DOS fileformat
-
Automatically set screen title
-
Automatically sort Quickfix list
-
Automatically Update Copyright Notice in Files
-
Automatically wrap left and right
-
Autoselect the right compiler using the filetype
-
Avoid scrolling when switch buffers
-
Avoid the escape key
-
Avoiding the "Hit ENTER to continue" prompts
-
Backing up and commenting vimrc
-
Backspace key using puTTY to RH9 box
-
Backward search for LaTeX documents
-
Bash file encoding alias
-
Basic postfix abbreviations
-
Best Vim Tips
-
Better colors for syntax highlighting
-
Better indent support for php with html
-
Bookmark files
-
Bookmarks as menu item
-
Brackets and parentheses in Perl
-
Browsing programs with tags
-
Buffer bar to list buffers
- Buffers
-
Build Python-enabled Vim on Windows with MinGW
-
Build Vim in Windows with Cygwin
-
Build Vim in Windows with Visual Studio
-
Building Vim
-
Category:Building Vim
-
Building vim with color on HP-UX
-
Bulk rename files with Vim
-
C++ code completion
-
C/C++ function abbreviations
-
Cache user-preferred option values for later reset
-
Calculate equations from within vim
-
Calculator and code evaluation using Perl
-
Calculator Editing
-
Call TortoiseSVN commands from within Vim
-
Capitalize words and regions easily
-
Capitalize words in insert and normal modes without moving the cursor
-
Capture all keys
-
Capture ex command output
-
Capture SQL query output
-
Change between backslash and forward slash
-
Change C++ comments to C comments
-
Change cursor shape in different modes
-
Change filetype based on directory path
-
Change font
-
Change font size quickly
-
Change guifont to see more of your file
-
Change statusline color to show insert or normal mode
-
Change the color scheme
-
Change the color scheme to show where you are
-
Change the gvim mouse arrow cursor
-
Change the Windows Explorer hotkey for Diff with Vim
-
Change vimrc with auto reload
-
Changing all HTML tags to lowercase
-
Changing case with regular expressions
-
Changing the default syntax highlighting
-
Check for comments independent of filetype
-
Check your syntax files for configurable options
-
Chop long lines
-
Cleanup your HTML
-
Clojure Tips
-
Close vim you left open remotely
-
Close windows from gvim popup menu
-
Cobol editing with Vim
-
ColdFusion and matchit
-
Collect filenames of current subtree
-
Color highlighting on telnet
-
Combine quickfix steps
-
Combining move and scroll
-
Combining vimdiff with cvs diff
-
Comfortable handling of registers
-
Command line file name completion
-
Command line switch to source a script
-
Command line tricks
-
Command-history facilities for Oracle/sqlplus user
-
Comment Lines according to a given filetype
-
Comment lines in different filetypes
-
Comment your code blocks automatically
-
Comment/UnComment visually selected text
-
Commenting out a range of lines
-
Commenting with opfunc
-
Compile a separate copy of Vim for Python coding
-
Compile Java with Jikes
-
Compile Java with Sun JDK javac
-
Compiler for perl
-
Compiling LaTeX from Vim
-
Completion using a syntax file
-
Compress Vim doc files to save space
-
Configuring the cursor
-
Console-like fonts for Windows GVim
-
Context sensitive access to MSDN help
-
Continue omnicompletion for python modules
-
Continuing doxygen comments
-
Control the position of the new window
-
Convenience wrapper for setline
-
Convert between hex and decimal
-
Convert enum to string table
-
Converting LANG to UTF-8
-
Converting tabs to spaces
-
Converting variables to or from camel case
-
Copy an Entire Buffer to the Clipboard
-
Copy and paste between sessions using a temporary file
-
Copy and paste between Vim instances
-
Copy C++ function declaration into implementation file
-
Copy current file to another location from within vim
-
Copy filename to clipboard
-
Copy or change search hit
-
Copy paragraphs without excess newlines to MS Word
-
Copy parts of filename to clipboard
-
Copy search matches
-
Copy, cut and paste
-
Correct format-flowed email function
-
Correcting accented characters
-
Count number of matches of a pattern
-
Create a color scheme based on another
-
Create LaTeX Tables
-
Create new subroutines
-
Create one mapping for both console and GUI