update vimdoc
This commit is contained in:
parent
702081b0ed
commit
559c76232e
@ -986,8 +986,8 @@ Quick start ~
|
|||||||
project, by following the instructions [33] in the Tern [10]
|
project, by following the instructions [33] in the Tern [10]
|
||||||
documentation.
|
documentation.
|
||||||
|
|
||||||
3. Make sure that Vim's working directory is beneath that directory when
|
3. Make sure that Vim's working directory is a descendent of that directory
|
||||||
working with JavaScript files.
|
(or that directory itself) when working with JavaScript files.
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
*youcompleteme-explanation*
|
*youcompleteme-explanation*
|
||||||
@ -997,16 +997,16 @@ JavaScript completion is based on Tern [10]. This completion engine requires a
|
|||||||
file named '.tern-project' [33] to exist in the current working directory or a
|
file named '.tern-project' [33] to exist in the current working directory or a
|
||||||
directory which is an ancestor of the current working directory when the tern
|
directory which is an ancestor of the current working directory when the tern
|
||||||
server is started. YCM starts the Tern server the first time a JavaScript file
|
server is started. YCM starts the Tern server the first time a JavaScript file
|
||||||
is edited, thus the working directory of Vim must be, or must be a child of,
|
is edited, so Vim's working directory at that time needs to be a descendent of
|
||||||
the directory containing the '.tern-project' file.
|
the directory containing the '.tern-project' file (or that directory itself).
|
||||||
|
|
||||||
Alternatively, as described in the Tern documentation [34], a global '.tern-
|
Alternatively, as described in the Tern documentation [34], a global '.tern-
|
||||||
config' file may be used.
|
config' file may be used.
|
||||||
|
|
||||||
Currently, multiple Tern servers, are not supported. To switch to a different
|
Multiple Tern servers, are not supported. To switch to a different JavaScript
|
||||||
JavaScript project, you can do one of the following:
|
project, you can do one of the following:
|
||||||
|
|
||||||
- start a new instance of Vim from the new project's directory, or
|
- start a new instance of Vim from the new project's directory
|
||||||
|
|
||||||
- change Vim's working directory (':cd /path/to/new/project') and restart the
|
- change Vim's working directory (':cd /path/to/new/project') and restart the
|
||||||
'ycmd' server (|:YcmRestartServer|)
|
'ycmd' server (|:YcmRestartServer|)
|
||||||
@ -1020,11 +1020,12 @@ JavaScript project, you can do one of the following:
|
|||||||
*youcompleteme-tips-tricks*
|
*youcompleteme-tips-tricks*
|
||||||
Tips and tricks ~
|
Tips and tricks ~
|
||||||
|
|
||||||
The following advice is based on the author's experience. The canonical
|
This section contains some advice for configuring '.tern-project' and working
|
||||||
reference for correctly configuring Tern is the documentation [34]. Any issues,
|
with JavaScript files. The canonical reference for correctly configuring Tern
|
||||||
improvements, advice, etc. should be sought from the Tern [10] project. For
|
is the Tern documentation [34]. Any issues, improvements, advice, etc. should
|
||||||
example, see the list of tern plugins [35] for the list of plugins which can be
|
be sought from the Tern [10] project. For example, see the list of tern plugins
|
||||||
enabled in the 'plugins' section of the '.tern-project' file.
|
[35] for the list of plugins which can be enabled in the 'plugins' section of
|
||||||
|
the '.tern-project' file.
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
*youcompleteme-configuring-tern-for-node-support*
|
*youcompleteme-configuring-tern-for-node-support*
|
||||||
|
Loading…
Reference in New Issue
Block a user