Reputation: 2401
I have a text file with tags (preceded by ©) :
The Louvre is near the Seine (©Paris, ©Museum)
Pergamon Museum is in Museum Insel (©Berlin, ©Museum)
British Museum is near Russell Square (©London, ©Museum)
1) Whenever I want to use Ctrl+N and ©, in order to add a tag, I would like to have :
©Paris
©Berlin
©London
but instead, I get a list of all the different words of the buffer.
2) Better still, I would like that list to be alphabetically ordered :
©Berlin
©London
©Paris
Is there a solution to these two complementary questions ?
Upvotes: 0
Views: 65
Reputation: 23677
Partial answer:
Add character(s) to iskeyword
, in current buffer or vimrc
:set iskeyword+=©
I don't think there is a pre-defined setting to sort the completion list. Plugins might be there, not sure.
Ctrlp searches in backward direction (previous matches)
Ctrln searches in forward direction (next matches)
Upvotes: 2