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
8151c6cb
Commit
8151c6cb
authored
Apr 20, 2017
by
Murukesh Mohanan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
syntax colouring changes
parent
dc7cad30
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
22 deletions
+45
-22
autoload/plug.vim
autoload/plug.vim
+32
-22
spell/en.utf-8.add
spell/en.utf-8.add
+10
-0
vimrc
vimrc
+3
-0
No files found.
autoload/plug.vim
View file @
8151c6cb
...
...
@@ -426,7 +426,10 @@ function! s:dobufread(names)
let
path
=
s:rtp
(
g:plugs
[
name
]).
'/**'
for
dir
in
[
'ftdetect'
,
'ftplugin'
]
if
len
(
finddir
(
dir
,
path
))
return
s:doautocmd
(
'BufRead'
)
if
exists
(
'#BufRead'
)
doautocmd
BufRead
endif
return
endif
endfor
endfor
...
...
@@ -618,10 +621,10 @@ function! s:syntax()
syn
match
plugTag
/(tag: [^)]\+)/
syn
match
plugInstall
/\(^+ \)\@<=[^:]*/
syn
match
plugUpdate
/\(^* \)\@<=[^:]*/
syn
match
plugCommit
/^ \X*[0-9a-f]\{7} .*/
contains
=
plugRelDate
,
plugEdge
,
plugTag
syn
match
plugCommit
/^ \X*[0-9a-f]\{7
,9
} .*/
contains
=
plugRelDate
,
plugEdge
,
plugTag
syn
match
plugEdge
/^ \X\+$/
syn
match
plugEdge
/^ \X*/
contained nextgroup
=
plugSha
syn
match
plugSha
/[0-9a-f]\{7}/
contained
syn
match
plugSha
/[0-9a-f]\{7
,9
}/
contained
syn
match
plugRelDate
/([^)]*)$/
contained
syn
match
plugNotLoaded
/(not loaded)$/
syn
match
plugError
/^x.*/
...
...
@@ -817,6 +820,10 @@ function! s:do(pull, force, todo)
let
type
=
type
(
spec
.
do
)
if
type
==
s:TYPE
.
string
if
spec
.
do
[
0
]
==
':'
if
!
get
(
s:loaded
,
name
,
0
)
let
s:loaded
[
name
]
=
1
call
s:reorg_rtp
()
endif
call
s:load_plugin
(
spec
)
try
execute spec
.
do
[
1
:]
...
...
@@ -861,7 +868,7 @@ function! s:checkout(spec)
let
output
=
s:system
(
'git rev-parse HEAD'
,
a:spec
.
dir
)
if
!
v
:
shell_error &&
!
s:hash_match
(
sha
,
s:lines
(
output
)[
0
])
let
output
=
s:system
(
\
'git fetch --depth 999999 && git checkout '
.
s:esc
(
sha
),
a:spec
.
dir
)
\
'git fetch --depth 999999 && git checkout '
.
s:esc
(
sha
)
.
' --'
,
a:spec
.
dir
)
endif
return
output
endfunction
...
...
@@ -979,6 +986,10 @@ function! s:update_impl(pull, force, args) abort
let
s:clone_opt
=
get
(
g
:,
'plug_shallow'
,
1
)
?
\
'--depth 1'
.
(
s:git_version_requirement
(
1
,
7
,
10
)
?
' --no-single-branch'
:
''
)
:
''
if
has
(
'win32unix'
)
let
s:clone_opt
.=
' -c core.eol=lf -c core.autocrlf=input'
endif
" Python version requirement (>= 2.7)
if
python &&
!
has
(
'python3'
)
&&
!
ruby
&&
!
use_job &&
s:update
.
threads
>
1
redir
=>
pyv
...
...
@@ -1060,11 +1071,11 @@ function! s:update_finish()
endif
endif
call
s:log4
(
name
,
'Checking out '
.
tag
)
let
out
=
s:system
(
'git checkout -q '
.
s:esc
(
tag
).
' 2>&1'
,
spec
.
dir
)
let
out
=
s:system
(
'git checkout -q '
.
s:esc
(
tag
).
'
--
2>&1'
,
spec
.
dir
)
else
let
branch
=
s:esc
(
get
(
spec
,
'branch'
,
'master'
))
call
s:log4
(
name
,
'Merging origin/'
.
branch
)
let
out
=
s:system
(
'git checkout -q '
.
branch
.
' 2>&1'
let
out
=
s:system
(
'git checkout -q '
.
branch
.
'
--
2>&1'
\
.
(
has_key
(
s:update
.
new
,
name
)
?
''
:
(
'&& git merge --ff-only origin/'
.
branch
.
' 2>&1'
)),
spec
.
dir
)
endif
if
!
v
:
shell_error && filereadable
(
spec
.
dir
.
'/.gitmodules'
)
&&
...
...
@@ -1143,9 +1154,6 @@ endfunction
function
!
s:job_exit_cb
(
self
,
data
)
abort
let
a:self
.
running
=
0
let
a:self
.
error
=
a:data
!=
0
if
has_key
(
a:self
,
'tempname'
)
call
delete
(
a:self
.
tempname
)
endif
call
s:reap
(
a:self
.
name
)
call
s:tick
()
endfunction
...
...
@@ -1167,8 +1175,8 @@ function! s:spawn(name, cmd, opts)
let
job
=
{
'name'
:
a:name
,
'running'
:
1
,
'error'
:
0
,
'lines'
:
[
''
],
\
'new'
:
get
(
a:opts
,
'new'
,
0
)
}
let
s:jobs
[
a:name
]
=
job
let
cmd
=
has_key
(
a:opts
,
'dir'
)
?
s:with_cd
(
a:cmd
,
a:opts
.
dir
)
:
a:cmd
let
argv
=
s:is_win
? cmd
:
[
'sh'
,
'-c'
,
cmd
]
let
argv
=
add
(
s:is_win
?
[
'cmd'
,
'/c'
]
:
[
'sh'
,
'-c'
],
\
has_key
(
a:opts
,
'dir'
)
?
s:with_cd
(
a:cmd
,
a:opts
.
dir
)
:
a:cmd
)
if
s:nvim
call
extend
(
job
,
{
...
...
@@ -1185,12 +1193,7 @@ function! s:spawn(name, cmd, opts)
\
'Invalid arguments (or job table is full)'
]
endif
elseif
s:vim8
if
s:is_win
let
job
.
tempname
=
tempname
().
'.bat'
call
writefile
([
argv
],
job
.
tempname
)
let
argv
=
job
.
tempname
endif
let
jid
=
job_start
(
argv
,
{
let
jid
=
job_start
(
s:is_win
?
join
(
argv
,
' '
)
:
argv
,
{
\
'out_cb'
:
function
(
's:job_cb'
,
[
's:job_out_cb'
,
job
]),
\
'exit_cb'
:
function
(
's:job_cb'
,
[
's:job_exit_cb'
,
job
]),
\
'out_mode'
:
'raw'
...
...
@@ -1773,6 +1776,7 @@ function! s:update_ruby()
tries
=
VIM
::
evaluate
(
'get(g:, "plug_retries", 2)'
)
+
1
nthr
=
VIM
::
evaluate
(
's:update.threads'
).
to_i
maxy
=
VIM
::
evaluate
(
'winheight(".")'
).
to_i
vim7
=
VIM
::
evaluate
(
'v:version'
).
to_i
<=
703
&& RUBY_PLATFORM
=~
/darwin/
cd
=
iswin ?
'cd /d'
:
'cd'
tot
=
VIM
::
evaluate
(
'len(s:update.todo)'
)
||
0
bar
=
''
...
...
@@ -1862,11 +1866,17 @@ function! s:update_ruby()
main
=
Thread
.
current
threads
=
[]
watcher
=
Thread
.
new
{
require
'io/console'
#
>=
Ruby
1
.
9
nil until IO
.
console
.
getch
==
3
.
chr
if
vim7
while
VIM
::
evaluate
(
'getchar(1)'
)
sleep
0
.
1
end
else
require
'io/console'
#
>=
Ruby
1
.
9
nil until IO
.
console
.
getch
==
3
.
chr
end
mtx
.
synchronize
do
running
=
false
threads
.
each
{
|
t
|
t
.
raise Interrupt
}
threads
.
each
{
|
t
|
t
.
raise Interrupt
}
unless vim7
end
threads
.
each
{
|
t
|
t
.
join
rescue nil
}
main
.
kill
...
...
@@ -2279,7 +2289,7 @@ function! s:preview_commit()
let
b:plug_preview
=
!
s:is_preview_window_open
()
endif
let
sha
=
matchstr
(
getline
(
'.'
),
'^ \X*\zs[0-9a-f]\{7}'
)
let
sha
=
matchstr
(
getline
(
'.'
),
'^ \X*\zs[0-9a-f]\{7
,9
}'
)
if
empty
(
sha
)
return
endif
...
...
@@ -2384,7 +2394,7 @@ function! s:revert()
return
endif
call
s:system
(
'git reset --hard HEAD@{1} && git checkout '
.
s:esc
(
g:plugs
[
name
].
branch
),
g:plugs
[
name
].
dir
)
call
s:system
(
'git reset --hard HEAD@{1} && git checkout '
.
s:esc
(
g:plugs
[
name
].
branch
)
.
' --'
,
g:plugs
[
name
].
dir
)
setlocal
modifiable
normal
!
"_dap
setlocal
nomodifiable
...
...
spell/en.utf-8.add
View file @
8151c6cb
...
...
@@ -81,3 +81,13 @@ JSON
kubernetes
YNW
Redis
servergroup
RolesDB
CKMS
OpenStack
MYM
Kanseito
syslog
YAML
config
ACL
vimrc
View file @
8151c6cb
...
...
@@ -134,6 +134,7 @@ Plug 'ctrlpvim/ctrlp.vim'
Plug 'gabrielelana/vim-markdown', {'for': 'markdown'}
Plug 'majutsushi/tagbar', {'for': ['cpp', 'c', 'go', 'sh', 'javascript']}
Plug 'godlygeek/tabular'
Plug 'dhruvasagar/vim-table-mode'
if executable('cmake')
" YCM command lifted from vim-plug readme
...
...
@@ -174,6 +175,8 @@ colorscheme molokai
highlight Normal ctermbg=none
highlight NonText ctermbg=none
highlight Visual ctermbg=DarkGrey
highlight NonText ctermfg=grey
highlight Comment ctermfg=grey
set cursorline
" From http://vi.stackexchange.com/questions/258/
...
...
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