Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vimrc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Murukesh Mohanan
vimrc
Commits
0994d7af
Commit
0994d7af
authored
Jun 15, 2017
by
Murukesh Mohanan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indent for ruby, yaml; other updates
parent
bbf93b4e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
13 deletions
+21
-13
autoload/plug.vim
autoload/plug.vim
+15
-10
ftplugin/ruby.vim
ftplugin/ruby.vim
+2
-2
ftplugin/yaml.vim
ftplugin/yaml.vim
+2
-0
vimrc
vimrc
+2
-1
No files found.
autoload/plug.vim
View file @
0994d7af
...
...
@@ -97,7 +97,7 @@ let s:plug_tab = get(s:, 'plug_tab', -1)
let
s:plug_buf
=
get
(
s
:,
'plug_buf'
,
-1
)
let
s:mac_gui
=
has
(
'gui_macvim'
)
&& has
(
'gui_running'
)
let
s:is_win
=
has
(
'win32'
)
||
has
(
'win64'
)
let
s:nvim
=
has
(
'nvim
'
)
&& exists
(
'*jobwait'
)
&&
!
s:is_win
let
s:nvim
=
has
(
'nvim
-0.2'
)
||
(
has
(
'nvim'
)
&& exists
(
'*jobwait'
)
&&
!
s:is_win
)
let
s:vim8
=
has
(
'patch-8.0.0039'
)
&& exists
(
'*job_start'
)
let
s:me
=
resolve
(
expand
(
'<sfile>:p'
))
let
s:base_spec
=
{
'branch'
:
'master'
,
'frozen'
:
0
}
...
...
@@ -442,16 +442,21 @@ function! plug#load(...)
if
!
exists
(
'g:plugs'
)
return
s:err
(
'plug#begin was not called'
)
endif
let
unknowns
=
filter
(
copy
(
a:000
),
'!has_key(g:plugs, v:val)'
)
let
names
=
a:0
==
1
&& type
(
a:1
)
==
s:TYPE
.
list ?
a:1
:
a:000
let
unknowns
=
filter
(
copy
(
names
),
'!has_key(g:plugs, v:val)'
)
if
!
empty
(
unknowns
)
let
s
=
len
(
unknowns
)
>
1
?
's'
:
''
return
s:err
(
printf
(
'Unknown plugin%s: %s'
,
s
,
join
(
unknowns
,
', '
)))
end
for
name
in
a:000
call
s:lod
([
name
],
[
'ftdetect'
,
'after/ftdetect'
,
'plugin'
,
'after/plugin'
])
endfor
call
s:dobufread
(
a:000
)
return
1
let
unloaded
=
filter
(
copy
(
names
),
'!get(s:loaded, v:val, 0)'
)
if
!
empty
(
unloaded
)
for
name
in
unloaded
call
s:lod
([
name
],
[
'ftdetect'
,
'after/ftdetect'
,
'plugin'
,
'after/plugin'
])
endfor
call
s:dobufread
(
unloaded
)
return
1
end
return
0
endfunction
function
!
s:remove_triggers
(
name
)
...
...
@@ -575,7 +580,7 @@ function! s:infer_properties(name, repo)
let
uri
=
repo
else
if
repo
!~
'/'
let
repo
=
'vim-scripts/'
.
repo
throw
printf
(
'Invalid argument: %s (implicit `vim-scripts'' expansion is deprecated)'
,
repo
)
endif
let
fmt
=
get
(
g
:,
'plug_url_format'
,
'https://git::@github.com/%s.git'
)
let
uri
=
printf
(
fmt
,
repo
)
...
...
@@ -1063,7 +1068,7 @@ function! s:update_finish()
elseif
has_key
(
spec
,
'tag'
)
let
tag
=
spec
.
tag
if
tag
=~
'\*'
let
tags
=
s:lines
(
s:system
(
'git tag --list '
.
s
tring
(
tag
).
' --sort -version:refname 2>&1'
,
spec
.
dir
))
let
tags
=
s:lines
(
s:system
(
'git tag --list '
.
s
:shellesc
(
tag
).
' --sort -version:refname 2>&1'
,
spec
.
dir
))
if
!
v
:
shell_error &&
!
empty
(
tags
)
let
tag
=
tags
[
0
]
call
s:log4
(
name
,
printf
(
'Latest tag for %s -> %s'
,
spec
.
tag
,
tag
))
...
...
@@ -2022,7 +2027,7 @@ function! s:git_validate(spec, check_branch)
" Check tag
if
has_key
(
a:spec
,
'tag'
)
let
tag
=
s:system_chomp
(
'git describe --exact-match --tags HEAD 2>&1'
,
a:spec
.
dir
)
if
a:spec
.
tag
!=
# tag
if
a:spec
.
tag
!=
# tag
&&
a:spec
.
tag
!~
'\*'
let
err
=
printf
(
'Invalid tag: %s (expected: %s). Try PlugUpdate.'
,
\
(
empty
(
tag
)
?
'N/A'
:
tag
),
a:spec
.
tag
)
endif
...
...
ftplugin/ruby.vim
View file @
0994d7af
set
shiftwidth
=
2
softtabstop
=
2
tabstop
=
2
set
expandtab
set
local
shiftwidth
=
2
softtabstop
=
2
tabstop
=
2
set
local
expandtab
ftplugin/yaml.vim
0 → 100644
View file @
0994d7af
setlocal
shiftwidth
=
2
softtabstop
=
2
tabstop
=
2
setlocal
expandtab
vimrc
View file @
0994d7af
...
...
@@ -14,7 +14,7 @@ filetype on
filetype plugin on
filetype plugin indent on
syntax enable
set grepprg=grep\ -nH
set grepprg=grep\ -n
R
H
" Spaces are better than a tab character
" set expandtab
...
...
@@ -135,6 +135,7 @@ Plug 'gabrielelana/vim-markdown', {'for': 'markdown'}
Plug 'majutsushi/tagbar', {'for': ['cpp', 'c', 'go', 'sh', 'javascript']}
Plug 'godlygeek/tabular'
Plug 'dhruvasagar/vim-table-mode'
Plug 'tpope/vim-liquid', {'for': ['html', 'markdown']}
if executable('cmake')
" YCM command lifted from vim-plug readme
...
...
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