Vim Tips Wiki
No edit summary
m (Changed protection level for "Any word completion": Spam should be over. (‎[move=autoconfirmed] (indefinite)))
 
(9 intermediate revisions by 6 users not shown)
Line 17: Line 17:
 
This is particularly useful when entering the names of variables in a program.
 
This is particularly useful when entering the names of variables in a program.
   
The <tt>'complete'</tt> option controls where the keywords are searched (include files, tag files, buffers, and more).
+
The <code>'complete'</code> option controls where the keywords are searched (include files, tag files, buffers, and more).
   
The <tt>'completeopt'</tt> option controls how the completion occurs (for example, whether a menu is shown).
+
The <code>'completeopt'</code> option controls how the completion occurs (for example, whether a menu is shown).
 
==Donkey Kong TV Series World of Fan==
 
 
==Heroes==
 
*** Numbuh 1
 
** Donkey Kong
 
** Diddy Kong
 
** Tiny Kong
 
** Lanky Kong
 
** Chunky Kong
 
** Cranky Kong
 
** Funky Kong
 
** Candy Kong
 
** Bluster Kong
 
** 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
 
** Numbuhs 8
 
** Tommy Gilligan
 
** Lizzie Devine
 
** Mushi
 
** Joey Beetles
 
** Maurice
 
** Other Numbuhs
 
** Other Heroes
 
 
==Evil Heroes/Other Evil Heroes==
 
*** Isabella Garcia-Shapiro
 
** Melissa (P&F)
 
** Gretchen
 
** Milly
 
** Adyson
 
** Ginger
 
** Katie
 
** Holly
 
** unnamed bould
 
** unnamed brunette
 
** Candace Flynn
 
** Buford
 
** Baljeet
 
** Stacy
 
** Jenny
 
** Milo
 
** Oscar
 
** Bea
 
** Stan
 
** Eric
 
** Kyle
 
** Kenny
 
** Wendy
 
** Cloe
 
** Yasmin
 
** Sasha
 
** Jade
 
** Nita
 
** Nora
 
** Cameron
 
** Harvey
 
** Ms. Calabash
 
** Jimmy Neutron
 
** Sheen
 
** Carl
 
** Cindy Vortex
 
** Libby
 
** Nick
 
** 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.
 
** Gatomon
 
** Bob the Tomato
 
** Junior the Asapergus
 
** Laura the Carrot
 
** Annie the Celery
 
** Percy the Pea
 
** Animated Lizzie
 
** Black Spider-Man
 
** Ms. Grimwood
 
** Matches
 
** Elsa Frankensteen
 
** Phantasma
 
** Winnie the Werewolf
 
** Sibela
 
** Tanis
 
** Grim
 
** Billy
 
** Mandy
 
** Melody
 
** Harmony
 
** Rhythm
 
** Shreako
 
** Freako
 
** Meako
 
** Con Carne
 
** Dexter
 
** Alvin
 
** Simon
 
** Theodore
 
** Brittany
 
** Jeanette
 
** Eleanor
 
** Magilla Gorilla
 
** Chuck E.
 
** Big Momma
 
** Carrie
 
** E.T. the Alien
 
** Tom Baker
 
** Max Grabelski
 
** Ralph
 
** Gordy
 
** Kelsey
 
** Dana
 
** Fishman
 
** Barnhill
 
** Huckleberry Hound
 
** Jake Long
 
** Haley Long
 
** Maggie
 
** Pupert
 
** Rayna
 
** Blossom
 
** Bubbles
 
** Buttercup
 
** Ami
 
** Yumi
 
** Kaz
 
** Zim
 
** Gir
 
** Dib
 
** Gaz
 
** T.J.
 
** Vince
 
** Ashley
 
** Gretchen Grundler
 
** Mikey
 
** Gus
 
** Fred Flinstone
 
** Barney Pebble
 
** Rikochet
 
** Buena Girl
 
** Backabulb
 
** Headmistress
 
** Megawatt
 
** Penny Plutonium
 
** Potato Potata Jr.
 
** Tomato Tamata
 
** Francisco of the Forest
 
** Sonic Sumo
 
** El Haystack Grande
 
** French Twist
 
** Minotoro
 
** El Perrito
 
** Snow Pea
 
** Cindy Slam
 
** Zero Kelvin
 
** Pierre Del Fuego
 
** Protozoa
 
** Mr. Herriman
 
** Frankie
 
** Bloo
 
** Mac
 
** Eduardo
 
** Wilt
 
** Coco
 
** Doug
 
** Todd Bartholomew
 
** Riley Eugene
 
** Sierra McCool
 
** Jennifer and Claudia
 
** Buzz Winters
 
** Donny
 
** Jacobo
 
** Johnny Hitswell
 
** Abbey
 
** Tasumi
 
** Lloyd
 
** Francine
 
** Edward J. Horton
 
** Kurt Blobberts
 
** Douglas McNoggin
 
** Little Critter
 
** Little Sister
 
** Tommy Pickles
 
** Angelica Pickles
 
** Chuckie
 
** Phil and Lil
 
** Stu
 
** Grandpa Pickles
 
** Charlie Brown
 
** Sally Brown
 
** Lucy
 
** Linus
 
** Peppermint Patty
 
** Jenny Wakeman
 
** Brad
 
** Tuck
 
** Sheldon
 
** Brit and Tiff
 
** Leo
 
** Annie
 
** Quincy
 
** June
 
** Muno
 
** Foofa
 
** Brobee
 
** Toodee
 
** Plex
 
** Tinky Winky
 
** Dipsy
 
** Laa-Laa
 
** Po
 
** Noo-Noo
 
** Timmy Turner
 
** Chester
 
** A.J.
 
** Tootie
 
** Pablo
 
** Tyrone
 
** Tasha
 
** Austin
 
** Uniqua
 
** Mr. Whiskers
 
** Brandy
 
** Ed the Otter
 
** Lola Boa
 
** Cheryl and Meryl
 
** Margo
 
** Arnold
 
** Janet
 
** Ralphie
 
** Rintoo
 
** Louie
 
** Cecilia Nuthatch
 
** Cera
 
** Dana and Dinah
 
** Hyp, Mutt, and Nod
 
** Ralphie Parker
 
** Randy
 
** Johnny Bravo
 
** Mark
 
** Henry
 
** Connie
 
** Matthew Turner
 
** Ronald McDonald
 
** Ranger Smith
 
** Top Cat
 
** The Jack
 
** Ed
 
** Edd
 
** Eddy
 
** Jonny
 
** Jimmy
 
** Sarah
 
** Kevin
 
** Rolf
 
** Nazz
 
** Sara Crewe
 
** Dora
 
** Diego
 
** Alicia
 
** Baby Jaguar
 
** Boot
 
** Benny
 
** Tico
 
** Isa
 
** Sheep
 
** 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
 
*** 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
 
** 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
 
** Banana.B
 
** 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
 
** Mewtwo
 
** Wario
 
** Waluigi
 
 
==Evil Army Heroes of Reforms==
 
* Twilight Princess Characters (Link, Zelda, and Ganondorf.)
 
 
==The Evil Army of World==
 
***** Antagonist Painful
 
**** Evil Darkness of the Antagonist Glitch
 
*** The Tamastebuu
 
** Master Eye
 
** Crazy Eye
 
** The Antagonist of Darkness
 
** Eviling Darkness
 
** Mega Eye
 
** The Evil Army Grunt Soliders
 
** The Hero of Bad of Baddest Negatives of the DNK World
 
* The Evil Army of Subspace Heroes of Bad
 
* An Evil Beast Armor Blood Subspace into on-out of Master Hand Forming
 
* An Evil Beast Armor Blood Subspace into on-out of Crazy Hand Forming
 
 
==The Evil Army Forms==
 
** Master-Ta-Crazy-Buu Cut-Out
 
** Isabella's Cut-Out Evil Spirit Former of the Hands
 
** Sparking Ticklest Hand Arming of A-Isabella Forming Dragon Armor Transforming of Evil Final Hands-to-Hand
 
 
==Villainsllar of World==
 
** The SuperVillain SuperMarket Deli
 
*** Rhythmier Wising Fallen Angel in the Sky Super-Villains Disco-Rap Go Raping We Are Fireside Evil Super Villains World of the Fireside Girl Camp Disco Party Angel in the Sky
 
** A Bestest Subspace Evil SuperVillains World Palace of the Evil Side Joint
 
** The Diner Super-Villains Cookin Styling World Homing Cook of Steak Palace!
 
** Eviling Singing Train Station Day Out of Negative of after Eviling World Singin-Villains Fireside Evil
 
** Disco-Villains Party Palace
 
 
==Leaders==
 
* King K. Rool (Evil Supreme Darkest Side Many All the Villains Evil Army of the Darkness Side)
 
* Father (Nigel's House of Villains)
 
* Isabella Garcia-Shapiro (Various Many Webepisodes)
 
* Tabuu (Various All the Villains and Evil Heroes Many Webepisodes)
 
* Master Hand (Various All the Real Villains and Evil Heroes in the Evil Ways of K.N.D. Operatives)
 
 
==Nigel's House of Villains Series==
 
** Father (Leader) (Codename: Kids Next Door)
 
* Isabella Garcia-Shapiro (Phineas and Ferb)
 
* Eris (Sinbad: The Legend of Seven Seas)
 
* Evil Jimmy (The Adventures of Jimmy Neutron Boy Genius)
 
* Vlad Plasmius (Danny Phantom)
 
 
==Others in Father's House of Villains==
 
* Banana.B (American Dragon Jake Long)
 
* Noo-Noo (Teletubbies)
 
* Ms. Cooper (Magical Doremi/Ojamajo Doremi)
 
* Cyclobots (Power Rangers Time Force)
 
* Wuya and Chase Young (Xiaolin Showdown)
 
* Nita and Nora (Bratz Babyz the Movie)
 
* Winnie the Werewolf (Scooby-Doo and the Ghoul School)
 
* K. Rool (Donkey Kong Country Series)
 
* Delightful Children (Codename: KND)
 
* Big Boo, King Boo, and Boo (Mario)
 
* All the KND Villains (Codename: Kids Next Door)
 
* All the Evil Heroes (Many Various Shows and Movies)
 
* All the Other Villains (Many Movies and TV Shows)
 
   
 
==See also==
 
==See also==

Latest revision as of 03:12, 25 November 2015

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).

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