Skip to content

Commit

Permalink
[Vim/YCM] Update instructions for setting up YouCompleteMe
Browse files Browse the repository at this point in the history
Previous recommended workflow was to set g:ycm_global_ycm_extra_conf
variable. Doing so would override any site specific gloabl YCM
configuration. Instead the new instructions suggest a workflow for
setting up Chromium's YCM configuration file so that it only applies to
files within the Chromium checkout.

R=eroman@chromium.org
BUG=none

Review URL: https://codereview.chromium.org/1161273006

Cr-Commit-Position: refs/heads/master@{#332653}
  • Loading branch information
asankah authored and Commit bot committed Jun 3, 2015
1 parent e3c37b3 commit 385a4fa
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions tools/vim/chromium.ycm_extra_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,22 @@
# 1. Install YCM [https://github.com/Valloric/YouCompleteMe]
# (Googlers should check out [go/ycm])
#
# 2. Point to this config file in your .vimrc:
# let g:ycm_global_ycm_extra_conf =
# '<chrome_depot>/src/tools/vim/chromium.ycm_extra_conf.py'
# 2. Create a symbolic link to this file called .ycm_extra_conf.py in the
# directory above your Chromium checkout (i.e. next to your .gclient file).
#
# 3. Profit
# cd src
# ln -rs tools/vim/chromium.ycm_extra_conf.py ../.ycm_extra_conf.py
#
# 3. (optional) Whitelist the .ycm_extra_conf.py from step #2 by adding the
# following to your .vimrc:
#
# let g:ycm_extra_conf_globlist=['<path to .ycm_extra_conf.py>']
#
# You can also add other .ycm_extra_conf.py files you want to use to this
# list to prevent excessive prompting each time you visit a directory
# covered by a config file.
#
# 4. Profit
#
#
# Usage notes:
Expand Down

0 comments on commit 385a4fa

Please sign in to comment.