Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-29-2010, 07:39 AM   #1
Registered: Sep 2008
Location: Mumbai, india
Distribution: ubuntu and hp-unix
Posts: 118

Rep: Reputation: 15
Red face word autocompleteion in vi

I want to add word autocompletion feature to my vi editor.

I have changed my .vimrc file as

    :set nu
    :set cindent
    :set shiftwidth=4
    :set tabstop=4
    :set softtabstop=4
    :set comments=sl:/*,mb:*,els:*/
    :set dictionary=.dict
And my .dict file contains C++ keyword(near about 90 words).

But why it's not working ??
Old 01-29-2010, 08:22 AM   #2
Senior Member
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 53

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
When editing, use <ctrl-X><ctrl-K> to use the dictionary to autocomplete during an insert.

To add it permanently to the autocomplete list, include the following line in .vimrc:

:set complete+=k

Last edited by neonsignal; 01-29-2010 at 08:23 AM.
Old 02-01-2010, 03:44 AM   #3
Registered: Sep 2008
Location: Mumbai, india
Distribution: ubuntu and hp-unix
Posts: 118

Original Poster
Rep: Reputation: 15
thanx a lot !!!!!!!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
print second word in 1st line along with 5th word in all the lines after the first bangaram Programming 5 08-31-2009 04:42 AM
variable length string using GD (word wrap, carriage return, word/character count)? frieza Programming 1 02-14-2009 06:21 PM
Problems Copying & Pasting In Word When Word Closes - Ubuntu davidx Linux - Software 3 10-22-2008 09:21 PM
LXer: Benchmarking Microsoft Word 95 through Word 2007 LXer Syndicated Linux News 0 07-24-2008 02:00 AM
[SOLVED] find a word in a file, and change a word beneath it ?? vikas027 Programming 10 02-14-2008 10:46 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration