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
a2271b9b
Commit
a2271b9b
authored
Jun 10, 2016
by
Murukesh Mohanan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tex changes
parent
fac911b1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
22 deletions
+62
-22
.vim/autoload/plug.vim
.vim/autoload/plug.vim
+35
-20
.vim/ftplugin/tex.vim
.vim/ftplugin/tex.vim
+17
-2
.vim/local/lab.vim
.vim/local/lab.vim
+9
-0
.vim/spell/en.utf-8.add
.vim/spell/en.utf-8.add
+1
-0
No files found.
.vim/autoload/plug.vim
View file @
a2271b9b
...
@@ -397,7 +397,20 @@ function! s:reorg_rtp()
...
@@ -397,7 +397,20 @@ function! s:reorg_rtp()
endfunction
endfunction
function
!
s:doautocmd
(...)
function
!
s:doautocmd
(...)
execute
'doautocmd'
((
v
:
version
>
703
||
has
(
'patch442'
))
?
'<nomodeline>'
:
''
)
join
(
a:000
)
if
exists
(
'#'
.
join
(
a:000
,
'#'
))
execute
'doautocmd'
((
v
:
version
>
703
||
has
(
'patch442'
))
?
'<nomodeline>'
:
''
)
join
(
a:000
)
endif
endfunction
function
!
s:dobufread
(
names
)
for
name
in
a:names
let
path
=
s:rtp
(
g:plugs
[
name
]).
'/**'
for
dir
in
[
'ftdetect'
,
'ftplugin'
]
if
len
(
finddir
(
dir
,
path
))
return
s:doautocmd
(
'BufRead'
)
endif
endfor
endfor
endfunction
endfunction
function
!
plug#
load
(...)
function
!
plug#
load
(...)
...
@@ -415,9 +428,7 @@ function! plug#load(...)
...
@@ -415,9 +428,7 @@ function! plug#load(...)
for
name
in
a:000
for
name
in
a:000
call
s:lod
([
name
],
[
'ftdetect'
,
'after/ftdetect'
,
'plugin'
,
'after/plugin'
])
call
s:lod
([
name
],
[
'ftdetect'
,
'after/ftdetect'
,
'plugin'
,
'after/plugin'
])
endfor
endfor
if
exists
(
'#BufRead'
)
call
s:dobufread
(
a:000
)
doautocmd
BufRead
endif
return
1
return
1
endfunction
endfunction
...
@@ -453,9 +464,7 @@ function! s:lod(names, types, ...)
...
@@ -453,9 +464,7 @@ function! s:lod(names, types, ...)
endif
endif
call
s:source
(
rtp
,
a:2
)
call
s:source
(
rtp
,
a:2
)
endif
endif
if
exists
(
'#User#'
.
name
)
call
s:doautocmd
(
'User'
,
name
)
call
s:doautocmd
(
'User'
,
name
)
endif
endfor
endfor
endfunction
endfunction
...
@@ -463,21 +472,19 @@ function! s:lod_ft(pat, names)
...
@@ -463,21 +472,19 @@ function! s:lod_ft(pat, names)
let
syn
=
'syntax/'
.
a:pat
.
'.vim'
let
syn
=
'syntax/'
.
a:pat
.
'.vim'
call
s:lod
(
a:names
,
[
'plugin'
,
'after/plugin'
],
syn
,
'after/'
.
syn
)
call
s:lod
(
a:names
,
[
'plugin'
,
'after/plugin'
],
syn
,
'after/'
.
syn
)
execute
'autocmd! PlugLOD FileType'
a:pat
execute
'autocmd! PlugLOD FileType'
a:pat
if
exists
(
'#filetypeplugin#FileType'
)
call
s:doautocmd
(
'filetypeplugin'
,
'FileType'
)
doautocmd filetypeplugin
FileType
call
s:doautocmd
(
'filetypeindent'
,
'FileType'
)
endif
if
exists
(
'#filetypeindent#FileType'
)
doautocmd filetypeindent
FileType
endif
endfunction
endfunction
function
!
s:lod_cmd
(
cmd
,
bang
,
l1
,
l2
,
args
,
names
)
function
!
s:lod_cmd
(
cmd
,
bang
,
l1
,
l2
,
args
,
names
)
call
s:lod
(
a:names
,
[
'ftdetect'
,
'after/ftdetect'
,
'plugin'
,
'after/plugin'
])
call
s:lod
(
a:names
,
[
'ftdetect'
,
'after/ftdetect'
,
'plugin'
,
'after/plugin'
])
call
s:dobufread
(
a:names
)
execute printf
(
'%s%s%s %s'
,
(
a:l1
==
a:l2
?
''
:
(
a:l1
.
','
.
a:l2
)),
a:cmd
,
a:bang
,
a:args
)
execute printf
(
'%s%s%s %s'
,
(
a:l1
==
a:l2
?
''
:
(
a:l1
.
','
.
a:l2
)),
a:cmd
,
a:bang
,
a:args
)
endfunction
endfunction
function
!
s:lod_map
(
map
,
names
,
prefix
)
function
!
s:lod_map
(
map
,
names
,
prefix
)
call
s:lod
(
a:names
,
[
'ftdetect'
,
'after/ftdetect'
,
'plugin'
,
'after/plugin'
])
call
s:lod
(
a:names
,
[
'ftdetect'
,
'after/ftdetect'
,
'plugin'
,
'after/plugin'
])
call
s:dobufread
(
a:names
)
let
extra
=
''
let
extra
=
''
while
1
while
1
let
c
=
getchar
(
0
)
let
c
=
getchar
(
0
)
...
@@ -486,6 +493,13 @@ function! s:lod_map(map, names, prefix)
...
@@ -486,6 +493,13 @@ function! s:lod_map(map, names, prefix)
endif
endif
let
extra
.=
nr2char
(
c
)
let
extra
.=
nr2char
(
c
)
endwhile
endwhile
if
v
:
count
call
feedkeys
(
v
:
count
,
'n'
)
endif
call
feedkeys
(
'"'
.
v
:
register
,
'n'
)
if
mode
(
1
)
==
'no'
call
feedkeys
(
v
:
operator
)
endif
call
feedkeys
(
a:prefix
.
substitute
(
a:map
,
'^<Plug>'
,
"\<Plug>"
,
''
)
.
extra
)
call
feedkeys
(
a:prefix
.
substitute
(
a:map
,
'^<Plug>'
,
"\<Plug>"
,
''
)
.
extra
)
endfunction
endfunction
...
@@ -846,13 +860,14 @@ function! s:names(...)
...
@@ -846,13 +860,14 @@ function! s:names(...)
endfunction
endfunction
function
!
s:check_ruby
()
function
!
s:check_ruby
()
silent
!
ruby
require
'thread'
; VIM
::
command
(
'let g:plug_ruby = 1'
)
silent
!
ruby
require
'thread'
; VIM
::
command
(
"let g:plug_ruby = '#{RUBY_VERSION}'"
)
if
get
(
g
:,
'plug_ruby'
,
0
)
if
!
exists
(
'g:plug_ruby'
)
unlet
g:plug_ruby
redraw
!
return
1
return
s:warn
(
'echom'
,
'Warning: Ruby interface is broken'
)
endif
endif
redraw
!
let
ruby_version
=
split
(
g:plug_ruby
,
'\.'
)
return
s:warn
(
'echom'
,
'Warning: Ruby interface is broken'
)
unlet
g:plug_ruby
return
s:version_requirement
(
ruby_version
,
[
1
,
8
,
7
])
endfunction
endfunction
function
!
s:update_impl
(
pull
,
force
,
args
)
abort
function
!
s:update_impl
(
pull
,
force
,
args
)
abort
...
...
.vim/ftplugin/tex.vim
View file @
a2271b9b
...
@@ -2,8 +2,23 @@ inoremap <buffer> [[ \begin{}<Esc>i
...
@@ -2,8 +2,23 @@ inoremap <buffer> [[ \begin{}<Esc>i
setlocal
colorcolumn
=+
1
setlocal
colorcolumn
=+
1
setlocal
spell
spelllang
=
en_gb
setlocal
spell
spelllang
=
en_gb
autocmd
CursorHold
*
.
tex
w
autocmd
CursorHold
<
buffer
>
update
inoreabbrev
<
buffer
>
/
.
<
bar
>
\rangle
<
esc
>
bba
inoremap
<
buffer
>
$ $$
<
left
>
inoremap
<
buffer
>
gls \gls
{}<
left
>
inoremap
<
buffer
>
glr \gls
{
rsa
}
inoremap
<
buffer
>
glg \gls
{
gpg
}
inoremap
<
buffer
>
glf \gls
{
fr
}
highlight ColorColumn ctermbg
=
grey guibg
=
grey
highlight ColorColumn ctermbg
=
grey guibg
=
grey
"let g:vimtex_latexmk_options ='-pdflatex="xelatex -shell-escape %O %S " -pdf -dvi- -ps- -synctex=1'
"let g:LatexBox_latexmk_options = ' -xelatex '
"let g:LatexBox_latexmk_async = 1
"let g:LatexBox_latexmk_preview_continuously = 1
"let g:LatexBox_quickfix = 4
let
g:vimtex_view_general_viewer
=
'qpdfview'
let
g:vimtex_view_general_options
=
'--unique @pdf\#src:@tex:@line:@col'
" In qpdfview, use the following for source editor:
" gvim --remote-tab-silent +%2 %1
let
g:vimtex_view_general_options_latexmk
=
'--unique'
.vim/local/lab.vim
0 → 100644
View file @
a2271b9b
if
has
(
"gui_running"
)
if
has
(
"gui_gtk2"
)
set
guifont
=
Ubuntu\ Mono\
for
\ Powerline\
13
set
guioptions
-=
r
endif
endif
let
g:airline_powerline_fonts
=
1
set
textwidth
=
80
.vim/spell/en.utf-8.add
View file @
a2271b9b
...
@@ -70,3 +70,4 @@ bullwhip
...
@@ -70,3 +70,4 @@ bullwhip
manpage
manpage
manpages
manpages
filetype
filetype
QEMU
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