Added inverse search configuration for vim-latex
This commit is contained in:
12
latex.vim
12
latex.vim
@@ -1,4 +1,15 @@
|
||||
" Settings for using LaTeX
|
||||
|
||||
function! SetServerName()
|
||||
if has('win32')
|
||||
let nvim_server_file = $TEMP . "/curnvimserver.txt"
|
||||
else
|
||||
let nvim_server_file = "/tmp/curnvimserver.txt"
|
||||
endif
|
||||
let cmd = printf("echo %s > %s", v:servername, nvim_server_file)
|
||||
call system(cmd)
|
||||
endfunction
|
||||
|
||||
set grepprg=grep\ -nH\ $*
|
||||
let g:tex_flavor='latex'
|
||||
set iskeyword+=:
|
||||
@@ -6,3 +17,4 @@ autocmd BufRead *.tex set tw=100
|
||||
autocmd BufRead *.tex set spell
|
||||
autocmd BufRead,BufEnter *.tex map <F9> :w <CR> :!/usr/bin/waf configure build <CR>
|
||||
autocmd BufRead,BufEnter *.tex let b:AutoPairs = {'(':')', '[':']', '{':'}'}
|
||||
autocmd FileType tex call SetServerName()
|
||||
|
||||
Reference in New Issue
Block a user