Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
5516349f
Commit
5516349f
authored
Oct 11, 2013
by
Yasuhiro Matsumoto
Committed by
David Symonds
Oct 11, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc/vim: complete packages in src directory
R=golang-dev, dsymonds CC=golang-dev
https://golang.org/cl/14454059
parent
beca0e12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
complete.vim
misc/vim/autoload/go/complete.vim
+1
-0
No files found.
misc/vim/autoload/go/complete.vim
View file @
5516349f
...
...
@@ -86,6 +86,7 @@ function! go#complete#Package(ArgLead, CmdLine, CursorPos)
for
dir
in
dirs
" this may expand to multiple lines
let
root
=
split
(
expand
(
dir
.
'/pkg/'
.
s:goos
.
'_'
.
s:goarch
),
"\n"
)
call
add
(
root
,
expand
(
dir
.
'/src'
))
for
r
in
root
for
i
in
split
(
globpath
(
r
,
a:ArgLead
.
'*'
),
"\n"
)
if
isdirectory
(
i
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment