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