Featured tip view archive Searching for files is made easier with the tab-completion of the :find command introduced in Vim 7.3. It is also straightforward to set up a short function to use external commands to populate your quickfix list with a set of files which you can navigate to, and there are plenty of plugins available for fuzzy matching and other advanced features. See our Featured tip for details! |
Did you know? view archive The Vim FAQ is online. There are several methods to change the indentation of a block of lines. A mapping can change the Home key to move to the first character, or the first that is nonblank. Filtering and redirection can capture output from Vim or external programs. It's easy to change between backslash and forward slash in a file path. If you create your own tags file, you can jump to the correct line and column. If you work with many files, it's easy to save them all with :wa or :xa. Simple substitutes or a Perl script can convert text using HTML entities like >. The command :g/^/exe ".w ".line(".").".txt" saves each line in the buffer to a separate file. :g// lists all lines containing the last search pattern, and :redir will capture the results. With set browsedir=buffer the File, Open dialog defaults to the current file's directory. |
From Vim Help view archive You can have Vim try to detect whether to ignore case in searches. :help 'smartcase' Toggle an option by adding ! (set spell! will turn spell checking on/off). :help :set With set, use += to add option flags, ^= to add them at the beginning, or -= to remove them. :help add-option-flags, :help set-option |