Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

I use Static Site Generator | Nikola. Each post has a header like as follows:

<!--
.. title: Some interesting title
.. slug: some-interesting-title
.. date: 2017-01-25 06:32:15 UTC-03:00
.. tags: tag1,tag2
.. category: Enlaces
.. link:
.. description: bla, bla, bla
.. type: text
-->

My idea is create a file with tags (tag1, tag2, ... tagn), and to use insert mode completion, whith CTRL-X and CTRL-I. But I have no idea about how to set an included file in order to vim find in it.

Edited:

I've found in the documentation:

CTRL-X CTRL-I       Search for the first keyword in the current and
            included files that starts with the same characters
            as those before the cursor.  The matched keyword is
            inserted in front of the cursor.

I haven't found how and/or where declare such a files.

I've even tried with the solution from c - vim keyword completion - Stack Overflowc - vim keyword completion - Stack Overflow

I've created an empty file, and added:

set path+=/tmp/tags/**

It does not work. I use vim-enhanced-8.0.329-1.fc25.x86_64.

Any ideas?

I use Static Site Generator | Nikola. Each post has a header like as follows:

<!--
.. title: Some interesting title
.. slug: some-interesting-title
.. date: 2017-01-25 06:32:15 UTC-03:00
.. tags: tag1,tag2
.. category: Enlaces
.. link:
.. description: bla, bla, bla
.. type: text
-->

My idea is create a file with tags (tag1, tag2, ... tagn), and to use insert mode completion, whith CTRL-X and CTRL-I. But I have no idea about how to set an included file in order to vim find in it.

Edited:

I've found in the documentation:

CTRL-X CTRL-I       Search for the first keyword in the current and
            included files that starts with the same characters
            as those before the cursor.  The matched keyword is
            inserted in front of the cursor.

I haven't found how and/or where declare such a files.

I've even tried with the solution from c - vim keyword completion - Stack Overflow

I've created an empty file, and added:

set path+=/tmp/tags/**

It does not work. I use vim-enhanced-8.0.329-1.fc25.x86_64.

Any ideas?

I use Static Site Generator | Nikola. Each post has a header like as follows:

<!--
.. title: Some interesting title
.. slug: some-interesting-title
.. date: 2017-01-25 06:32:15 UTC-03:00
.. tags: tag1,tag2
.. category: Enlaces
.. link:
.. description: bla, bla, bla
.. type: text
-->

My idea is create a file with tags (tag1, tag2, ... tagn), and to use insert mode completion, whith CTRL-X and CTRL-I. But I have no idea about how to set an included file in order to vim find in it.

Edited:

I've found in the documentation:

CTRL-X CTRL-I       Search for the first keyword in the current and
            included files that starts with the same characters
            as those before the cursor.  The matched keyword is
            inserted in front of the cursor.

I haven't found how and/or where declare such a files.

I've even tried with the solution from c - vim keyword completion - Stack Overflow

I've created an empty file, and added:

set path+=/tmp/tags/**

It does not work. I use vim-enhanced-8.0.329-1.fc25.x86_64.

Any ideas?

More details about what I did
Source Link
sebelk
  • 345
  • 2
  • 10

I use Static Site Generator | Nikola. Each post has a header like as follows:

<!--
.. title: Some interesting title
.. slug: some-interesting-title
.. date: 2017-01-25 06:32:15 UTC-03:00
.. tags: tag1,tag2
.. category: Enlaces
.. link:
.. description: bla, bla, bla
.. type: text
-->

My idea is create a file with tags (tag1, tag2, ... tagn), and to use insert mode completion, whith CTRL-X and CTRL-I. But I have no idea about how to set an included file in order to vim find in it.

Edited:

I've found in the documentation:

CTRL-X CTRL-I       Search for the first keyword in the current and
            included files that starts with the same characters
            as those before the cursor.  The matched keyword is
            inserted in front of the cursor.

I haven't found how and/or where declare such a files.

I've even tried with the solution from c - vim keyword completion - Stack Overflow

I've created an empty file, and added:

set path+=/tmp/tags/**

It does not work. I use vim-enhanced-8.0.329-1.fc25.x86_64.

Any ideas?

I use Static Site Generator | Nikola. Each post has a header like as follows:

<!--
.. title: Some interesting title
.. slug: some-interesting-title
.. date: 2017-01-25 06:32:15 UTC-03:00
.. tags: tag1,tag2
.. category: Enlaces
.. link:
.. description: bla, bla, bla
.. type: text
-->

My idea is create a file with tags (tag1, tag2, ... tagn), and to use insert mode completion, whith CTRL-X and CTRL-I. But I have no idea about how to set an included file in order to vim find in it.

Edited:

I've found in the documentation:

CTRL-X CTRL-I       Search for the first keyword in the current and
            included files that starts with the same characters
            as those before the cursor.  The matched keyword is
            inserted in front of the cursor.

I haven't found how and/or where declare such a files.

Any ideas?

I use Static Site Generator | Nikola. Each post has a header like as follows:

<!--
.. title: Some interesting title
.. slug: some-interesting-title
.. date: 2017-01-25 06:32:15 UTC-03:00
.. tags: tag1,tag2
.. category: Enlaces
.. link:
.. description: bla, bla, bla
.. type: text
-->

My idea is create a file with tags (tag1, tag2, ... tagn), and to use insert mode completion, whith CTRL-X and CTRL-I. But I have no idea about how to set an included file in order to vim find in it.

Edited:

I've found in the documentation:

CTRL-X CTRL-I       Search for the first keyword in the current and
            included files that starts with the same characters
            as those before the cursor.  The matched keyword is
            inserted in front of the cursor.

I haven't found how and/or where declare such a files.

I've even tried with the solution from c - vim keyword completion - Stack Overflow

I've created an empty file, and added:

set path+=/tmp/tags/**

It does not work. I use vim-enhanced-8.0.329-1.fc25.x86_64.

Any ideas?

Documentation quoting
Source Link
sebelk
  • 345
  • 2
  • 10

I use Static Site Generator | Nikola. Each post has a header like as follows:

<!--
.. title: Some interesting title
.. slug: some-interesting-title
.. date: 2017-01-25 06:32:15 UTC-03:00
.. tags: tag1,tag2
.. category: Enlaces
.. link:
.. description: bla, bla, bla
.. type: text
-->

My idea is create a file with tags (tag1, tag2, ... tagn), and to use insert mode completion, whith CTRL-X and CTRL-I. But I have no idea about how to set an included file in order to vim find in it.

Edited:

I've found in the documentation:

CTRL-X CTRL-I       Search for the first keyword in the current and
            included files that starts with the same characters
            as those before the cursor.  The matched keyword is
            inserted in front of the cursor.

I haven't found how and/or where declare such a files.

Any ideas?

I use Static Site Generator | Nikola. Each post has a header like as follows:

<!--
.. title: Some interesting title
.. slug: some-interesting-title
.. date: 2017-01-25 06:32:15 UTC-03:00
.. tags: tag1,tag2
.. category: Enlaces
.. link:
.. description: bla, bla, bla
.. type: text
-->

My idea is create a file with tags (tag1, tag2, ... tagn), and to use insert mode completion, whith CTRL-X and CTRL-I. But I have no idea about how to set an included file in order to vim find in it.

Any ideas?

I use Static Site Generator | Nikola. Each post has a header like as follows:

<!--
.. title: Some interesting title
.. slug: some-interesting-title
.. date: 2017-01-25 06:32:15 UTC-03:00
.. tags: tag1,tag2
.. category: Enlaces
.. link:
.. description: bla, bla, bla
.. type: text
-->

My idea is create a file with tags (tag1, tag2, ... tagn), and to use insert mode completion, whith CTRL-X and CTRL-I. But I have no idea about how to set an included file in order to vim find in it.

Edited:

I've found in the documentation:

CTRL-X CTRL-I       Search for the first keyword in the current and
            included files that starts with the same characters
            as those before the cursor.  The matched keyword is
            inserted in front of the cursor.

I haven't found how and/or where declare such a files.

Any ideas?

edited title
Link
Martin Tournoij
  • 63.3k
  • 26
  • 199
  • 274
Loading
added 2 characters in body
Source Link
sebelk
  • 345
  • 2
  • 10
Loading
Source Link
sebelk
  • 345
  • 2
  • 10
Loading