Wikia

Vim Tips Wiki

Changes: From Vim Help

Edit

Back to page

m (Reverted edits by Emprego.curitiba (talk | block) to last version by JohnBeckett)
(Archive of new edition, repeats 200806.)
 
Line 1: Line 1:
 
'''This is an archive of the ''From Vim Help'' section on the [[Vim Tips Wiki|home page]]'''
 
'''This is an archive of the ''From Vim Help'' section on the [[Vim Tips Wiki|home page]]'''
   
Every few weeks, the section on the [[Vim Tips Wiki|home page]] will be replaced. Old items will be moved here so anyone interested can browse them.
+
We occasionally replace the FVH section on the home page, and items are copied to here so anyone interested can browse them.
   
 
To discuss suggestions for new items, please edit the [[Talk:From Vim Help|talk page]].
 
To discuss suggestions for new items, please edit the [[Talk:From Vim Help|talk page]].
  +
  +
==July 2012==
  +
*You can have Vim try to detect whether to ignore case in searches. {{help|'smartcase'}}
  +
*Toggle an option by adding <tt>!</tt> (<tt>set spell!</tt> will turn spell checking on/off). {{help|:set}}
  +
*With <tt>set</tt>, use <tt>+=</tt> to add option flags, or <tt>-=</tt> to remove them. {{help|add-option-flags}}
   
 
==May 2010==
 
==May 2010==

Latest revision as of 10:38, June 26, 2012

This is an archive of the From Vim Help section on the home page

We occasionally replace the FVH section on the home page, and items are copied to here so anyone interested can browse them.

To discuss suggestions for new items, please edit the talk page.

July 2012Edit

May 2010Edit

  • :verbose abbreviate lists each abbreviation and where it was defined. :help :abbreviate-verbose
  • Avoid an insert-mode abbreviation by pressing Ctrl-V (or Ctrl-Q if you use Ctrl-V for paste) before the character after the abbreviation. :help abbreviations
  • Setting the 'display' option to include "lastline" will show as much of the final (wrapped) line as will fit on the screen. :help 'display'

April 2010Edit

March 2010Edit

  • Use :source myfile.vim to execute Ex commands (commands prefixed with a ':') from a file. :help :source
  • Use :source! myfile.vim to execute normal-mode Vim commands from a file. :help :source
  • Use :scriptnames to list all sourced scripts, in order of execution. :help :scriptnames

February 2010Edit

  • The system() function runs an external program and captures its output. :help system()
  • The 'shell' option determines the shell used to run external programs. :help 'shell'
  • The variable v:shell_error holds the return status from the last external program. :help v:shell_error

January 2010Edit

  • Use :pwd to show the current directory. :help :pwd
  • Use :cd - to change to the previous current directory (before last :cd /my/path). :help :cd-
  • Use :lcd /my/path for "local" change directory (this window only). :help :lcd

Previous yearsEdit

Around Wikia's network

Random Wiki