Vim Tips Wiki
No edit summary
Line 226: Line 226:
 
** Ranger Smith
 
** Ranger Smith
   
==Other Evil Heroes
+
==Other Evil Heroes==
 
** Mario
 
** Mario
 
** Donkey Kong/Donkey
 
** Donkey Kong/Donkey

Revision as of 06:02, 22 July 2010

Tip 4 Printable Monobook Previous Next

created 2001 · complexity basic · author Jamo.sp · version 5.7


In insert mode, type the first couple of characters of a word, then press:

  • Ctrl-N to insert the next matching word; or
  • Ctrl-P to insert the previous matching word.

This is particularly useful when entering the names of variables in a program.

The 'complete' option controls where the keywords are searched (include files, tag files, buffers, and more).

The 'completeopt' option controls how the completion occurs (for example, whether a menu is shown).

Donkey Kong TV Series World of Fan

Heroes

    • Donkey Kong
    • Diddy Kong
    • Tiny Kong
    • Lanky Kong
    • Chunky Kong
    • Cranky Kong
    • Funky Kong
    • Bluster Kong
    • Numbuh 1
    • Numbuh 2
    • Numbuh 3
    • Numbuh 4
    • Numbuh 5
    • Numbuh 362
    • Numbuh Infinity
    • Numbuh 86
    • Numbuh 60
    • Numbuh 0
    • Numbuh 83
    • Numbuh 84
    • Numbuh 35
    • Numbuh 78
    • Numbuh 34
    • Numbuh 42
    • Numbuh 14
    • Numbuh 15
    • Numbuh 16
    • Numbuh 13
    • Numbuh 58
    • Numbuh 59
    • Numbuhs 44
    • Numbuh 41
    • Numbuh 43
    • Numbuh 100
    • Numbuh 12
    • Numbuh 206
    • Numbuh 911
    • Numbuh 74,239
    • Numbuh 71,562
    • Numbuh 275
    • Numbuh 116
    • Numbuh 398
    • Numbuh 440
    • Numbuh 92
    • Numbuh 93
    • Numbuh 202
    • Numbuh V05
    • Numbuh 88
    • Tommy Gilligan
    • Lizzie Devine
    • Mushi
    • Joey Beetles
    • Maurice
    • Other Numbuhs
    • Other Heroes

Evil Heroes

      • Isabella Garcia-Shapiro
    • Gretchen
    • Milly
    • Adyson
    • Ginger
    • Katie
    • Holly
    • unnamed brunette
    • unnamed bould
    • Candace Flynn
    • Buford
    • Baljeet
    • Stacy
    • Suzy Johnson
    • Perry
    • Pinky
    • Yasmin
    • Cloe
    • Sasha
    • Jade
    • Nita
    • Nora
    • Cameron
    • Harvey
    • Ms. Calabash
    • Cindy Vortex
    • Libby
    • Miss Cooper
    • Todd
    • Stewart, Oliver and Simon
    • Belinda
    • Josie
    • Penny
    • Amanda
    • David
    • Evan
    • Gia
    • Bo
    • Justin
    • Autumn Harrison
    • Hanson
    • Haley
    • Jeremy
    • Yamauchi
    • Carey
    • Scooter
    • Juilet
    • Peter
    • Shannon
    • Phillip
    • Keith
    • Susie Williams
    • Melissa
    • Mackenzie
    • Nichloas
    • Karen
    • Arthur Read
    • D.W.
    • Bob the Tomato
    • Junior the Asapergus
    • Laura the Carrot
    • Annie the Celery
    • Percy the Pea
    • Black Spider-Man
    • Ms. Grimwood
    • Elsa Frankensteen
    • Phantasma
    • Winnie the Werewolf
    • Sibela
    • Tanis
    • Matches
    • Grim
    • Billy
    • Mandy
    • Shreako
    • Freako
    • Meako
    • Dee Dee
    • Mee Mee
    • Lee Lee
    • Alvin
    • Simon
    • Theodore
    • Brittany
    • Jeanette
    • Eleanor
    • Chuck E.
    • Big Momma
    • Carrie
    • E.T. the Alien
    • Tom Baker
    • Max Grabelski
    • Ralph
    • Gordy
    • Kelsey
    • Dana
    • Fishman
    • Barnhill
    • Haley Long
    • Maggie
    • Pupert
    • Rayna
    • Ami
    • Yumi
    • Kaz
    • Zim
    • Gir
    • Dib
    • Gaz
    • Tommy Pickles
    • Angelica Pickles
    • Chuckie
    • Phil and Lil
    • Stu
    • Grandpa Pickles
    • Muno
    • Foofa
    • Brobee
    • Toodee
    • Plex
    • Tinky Winky
    • Dipsy
    • Laa-Laa
    • Po
    • Noo-Noo
    • Pablo
    • Tyrone
    • Tasha
    • Austin
    • Uniqua
    • Arnold
    • Janet
    • Ralphie
    • Rintoo
    • Cecilia Nuthatch
    • Cera
    • Dana and Dinah
    • Ralphie Parker
    • Randy
    • Mark
    • Henry
    • Connie
    • Matthew Turner
    • Ranger Smith

Other Evil Heroes

    • Mario
    • Donkey Kong/Donkey
    • DK/D.Kong
    • Link
    • Samus
    • Zero Suit Samus/ZeroSuitSamus
    • Kirby
    • Fox
    • Pikachu
    • Marth
    • Mr. Game & Watch/Mr.Game&Watch/Game & Watch
    • Luigi
    • Diddy Kong/Diddy
    • Zelda
    • Sheik
    • Pit
    • Falco
    • Pokemon Trainer/P.Trainer
    • Squirtle/Zenigame
    • Ivysaur/Fushigisou
    • Charizard/Lizardon
    • Ike
    • Snake
    • Peach
    • Yoshi
    • Ganondorf
      • Ice Climbers
    • Ice Climber/IceClimber
    • Lucario
    • Ness
    • Sonic
    • Toon Link/ToonLink
    • R.O.B./Robot
    • Olimar/Pikmin & Olimar
      • Captain Falcon
    • C. Falcon/C.Falcon
    • Jigglypuff/Purin
    • Lucas
    • Dr. Mario/Dr.Mario
    • Young Link/YoungLink
    • Pichu
    • Mewtwo
    • Roy

The Evil Army

      • King K. Rool
    • Father
    • Delightful Children
    • Master Hand
    • Crazy Hand
    • Tabuu
    • Cree
    • Chad Dickson
    • Klump
    • Krusha
    • Captain Scurvy
    • Cutlass
    • Green Kroc
    • Polly Roger the Parrot
    • Teen Ninjas
    • the Jets
    • Master Eye
    • Crazy Eye
    • Fighting Polygons
    • Fighting Wire Frames
    • Fighting Alloys
    • Metal Characters
    • Subspace Bosses
    • False Characters
    • Dark Characters
    • Subspace Minions
    • Many KND Villains
    • Many Disney Villains
    • Many Other Villains

Other The Evil Army

    • Bowser/Koopa
    • Meta Knight/Metaknight
    • King Dedede/Dedede
    • Ganondorf
    • Wolf
    • Wario
    • Waluigi

See also

References

Comments

Also see script#182 and script#73


Completion such as this is also why it is a good idea to have descriptive variable names, so you can easily tell if you have the completion you were after.


It's completion that made me unable to use Visual Studio's editor (which has some completion, but it's not as good) anymore. I get lots of use out of:

  • File completion: <C-X><C-F>
  • Line completion: <C-X><C-L>
  • Omni completion: <C-X><C-O>

If you have several words you would like to complete, you can use Ctrl-X Ctrl-P to extend the match. For example, suppose a line exists in your file:

$res = mysql_query($q) or die(mysql_error());

You want to type the line:

$result = mysql_query($q) or die(mysql_error());

Type:

$result = my

Keep pressing Ctrl-P until you get to mysql_query.

Then pressing Ctrl-X Ctrl-P will give:

$result = mysql_query($q