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
f9c40430
Commit
f9c40430
authored
May 04, 2016
by
Murukesh Mohanan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ycm tex symbols
parent
82ac4fb8
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
10 deletions
+19
-10
.vim/.gitignore
.vim/.gitignore
+1
-1
.vim/after/syntax/tex.vim
.vim/after/syntax/tex.vim
+3
-0
.vim/autoload/plug.vim
.vim/autoload/plug.vim
+12
-5
.vim/vimrc
.vim/vimrc
+3
-4
No files found.
.vim/.gitignore
View file @
f9c40430
...
...
@@ -4,4 +4,4 @@ doc/*
plugged
view
spell/en.utf-8.add.spl
autoload/plug.vim.ol
g
autoload/plug.vim.ol
d
.vim/after/syntax/tex.vim
0 → 100644
View file @
f9c40430
This diff is collapsed.
Click to expand it.
.vim/autoload/plug.vim
View file @
f9c40430
...
...
@@ -722,15 +722,25 @@ function! s:assign_name()
silent
!
execute
'f'
fnameescape
(
name
)
endfunction
function
!
s:chsh
(
swap
)
let
prev
=
[
&
shell
,
&shellredir
]
if
!
s:is_win
&&
a:swap
set
shell
=
sh
shellredir
=>
%s\
2
>
&
1
endif
return
prev
endfunction
function
!
s:bang
(
cmd
,
...)
try
let
[
sh
,
shrd
]
=
s:chsh
(
a:0
)
" FIXME: Escaping is incomplete. We could use shellescape with eval,
" but it won't work on Windows.
let
cmd
=
a:0
>
0
?
s:with_cd
(
a:cmd
,
a:1
)
:
a:cmd
let
cmd
=
a:0
?
s:with_cd
(
a:cmd
,
a:1
)
:
a:cmd
let
g:_plug_bang
=
'!'
.
escape
(
cmd
,
'#!%'
)
execute
"normal! :execute g:_plug_bang\<cr>\<cr>"
finally
unlet
g:_plug_bang
let
[
&
shell
,
&shellredir
]
=
[
sh
,
shrd
]
endtry
return
v
:
shell_error ?
'Exit status: '
.
v
:
shell_error
:
''
endfunction
...
...
@@ -1823,10 +1833,7 @@ endfunction
function
!
s:system
(
cmd
,
...)
try
let
[
sh
,
shrd
]
=
[
&
shell
,
&shellredir
]
if
!
s:is_win
set
shell
=
sh
shellredir
=>
%s\
2
>
&
1
endif
let
[
sh
,
shrd
]
=
s:chsh
(
1
)
let
cmd
=
a:0
>
0
?
s:with_cd
(
a:cmd
,
a:1
)
:
a:cmd
return
system
(
s:is_win
?
'('
.
cmd
.
')'
:
cmd
)
finally
...
...
.vim/vimrc
View file @
f9c40430
...
...
@@ -135,7 +135,7 @@ Plug 'godlygeek/tabular'
if executable('cmake')
" YCM command lifted from vim-plug readme
Plug 'Valloric/YouCompleteMe', { 'do': YCMInstallCmd(), 'for': ['cpp', 'c', 'sh', 'js', 'vim'] }
Plug 'Valloric/YouCompleteMe', { 'do': YCMInstallCmd(), 'for': ['cpp', 'c', 'sh', 'js', 'vim'
, 'tex'
] }
autocmd! User YouCompleteMe if !has('vim_starting') | call youcompleteme#Enable() | endif
endif
if executable('go')
...
...
@@ -179,9 +179,8 @@ autocmd BufWritePost *.sh,*.py if get(b:, 'is_new', 0) | silent execute '!chmod
let g:SuperTabDefaultCompletionType = "context"
let g:SuperTabClosePreviewOnPopupClose = 1
"
set omnifunc=syntaxcomplete#Complete
set omnifunc=syntaxcomplete#Complete
set foldmethod=syntax
set foldlevelstart=3
let g:syntastic_cpp_compiler_options = ' -std=c++11'
let g:syntastic_python_python_exec = '/usr/bin/python3'
"let g:LatexBox_latexmk_options = ' -xelatex '
...
...
@@ -249,7 +248,7 @@ autocmd BufNewFile * nested call FindInPath(expand('<afile>'))
" From http://vi.stackexchange.com/questions/2358/
autocmd FileType * exec("setlocal dictionary+=".$HOME."/.vim/dictionary/".expand('<amatch>'))
set completeopt+=menuone,
longest,preview
set completeopt+=menuone,
noinsert
set complete+=k
runtime local/$CONFLOCAL.vim
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