Questions tagged [include]
The include tag has no usage guidance.
12
questions
1
vote
1
answer
43
views
How to use 'includeexpr' with relative paths?
Imagine there is a file src/main.js with import like this:
import { A } from '_components/A';
And _components/A in turn has
export { A } from './B';
I configured includeexpr to expand _ to src so ...
1
vote
1
answer
144
views
How to search for vue components with vim's gf?
I want to go to a vue component file.
Vue component filenames are written in PascalCase: ExampleComponent.vue
In html (or in my case blade.php) the ExampleComponent.vue is instantiated
by <example-...
0
votes
1
answer
159
views
Includeexpr + substitute not behaving as I would expect
I am using includeexpr and substitute() in a ftplugin to remove a portion of an include string for gf functionality (in twig template files, for the curious), but I get an error instead.
Twig ...
5
votes
1
answer
926
views
What is an included file in vim?
From the help:
i_CTRL-X_CTRL-I
CTRL-X CTRL-I Search for the first keyword in the current and
included files
From Tim Pope's Gitub:
[i:...
0
votes
4
answers
111
views
"Hard-include" in vim script
I want to:
let s:asciiart = ["", "", s:hardinclude(system("command params")), "", ""]
where command returns one string with:
"art-line-1", "art-line-2", "art-line-3"
so I end up with:
s:asciiart =...
3
votes
0
answers
67
views
Syntax highlighting in consecutive single-line comments
I'd like to have rich syntax highlighting (using, say, markdown syntax) inside (single-line) comments (as is done in Rust). For now, I'm using the following code, which is not satisfactory.
syn ...
4
votes
1
answer
262
views
How to populate a drop-down list for <C-x><C-i> completion?
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: ...
18
votes
4
answers
8k
views
Includes in vimrc?
Is it possible to include external files to be sourced in the vimrc file?
Is it as simple a matter as just adding source somefile?
1
vote
0
answers
59
views
Use [d with ruby functions
I have been reading through the documentation on the [d command, and other related commands.
My understanding is that they allow you to search for the definition of the function that's currently under ...
0
votes
2
answers
128
views
When editing a ruby file with includes/requires how can I open the file containing the method I am on?
I have a bunch of includes at the top of my file.
Then I use methods from the helpers throughout my file.
How can I have it so that when my cursor is on a method name my editor can (by some ...
3
votes
1
answer
174
views
Configuring include-search for PHP
I just learned of the existence of include-search, but even after reading :help include-searchand :help includeexpr I'm not sure what I need to do to have [I find included and required files.
How do ...
2
votes
1
answer
91
views
How to jump to the location which [I points to?
I've installed node plugin, which give possibility to display all lines that contain the keyword under the cursor using [I hotkey. It looks like this:
Is there possibility to jump to them?