LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   word autocompleteion in vi (https://www.linuxquestions.org/questions/linux-newbie-8/word-autocompleteion-in-vi-785576/)

lipun4u 01-29-2010 06:39 AM

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

I have changed my .vimrc file as

Code:

    :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 ??

neonsignal 01-29-2010 07:22 AM

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:

Code:

:set complete+=k

lipun4u 02-01-2010 02:44 AM

thanx a lot !!!!!!!


All times are GMT -5. The time now is 02:33 PM.