Thread: [Vim-latex-devel] vim-latex okular search forward
Brought to you by:
srinathava,
tmaas
From: Mario S. <ma...@ma...> - 2010-04-23 23:35:44
|
Hy, I'm Mario Santagiuliana. I am an Italian Medical Student. Excuse me for my bad English. I want to configure vim-latex to search forward in dvi file. I'm working on fedora 12 64-bit. My desktop enviroment is Kde 4.4.2 so I use Okular. My vim installation: $ rpm -qa|grep vim|sort vim-common-7.2.411-1.fc12.x86_64 vim-enhanced-7.2.411-1.fc12.x86_64 vim-latex-1.8.23-1.20091230.r1079.fc12.noarch vim-latex-doc-1.8.23-1.20091230.r1079.fc12.noarch vim-minimal-7.2.411-1.fc12.x86_64 vim-X11-7.2.411-1.fc12.x86_64 My vimrc configuration for vim-latex: autocmd FileType tex setlocal spell spelllang=it let g:tex_flavor='latex' let g:Tex_CompileRule_dvi='latex -src-specials -interaction=nonstopmode $*' let g:Tex_ViewRuleComplete_dvi = 'okular $*.dvi >/dev/null 2>&1 &' autocmd Filetype tex imap <C-i> <Plug>Tex_InsertItemOnThisLine let g:Tex_ItemStyle_list = '\item <++>' In Okular I setup my editor with this line: vimx --remote-tab-silent +%l %f I start to edit a tex file without problem in vim. Generally I edit file with: $ vimx --servername VIMX file.tex so from Okular I can performe inverse search into my vim just opened. From vim with \ll I can compile my code. With \lv I can open Okular e from that I can do inverse search. With \ls I have nothing. From bash I can open my dvi file and view the line that I remember from vim session. For example I edit line 45 and I want to view (search forward) my change, whit \ls I can't do that, from commad line (bash) I can do that: $ okular file.dvi#src:45 Have you got any suggestion? Okular from versione 0.10 support forward search: http://okular.kde.org/news.php#itemOkular010released Thank you very much :) -- Mario Santagiuliana www.marionline.it |
From: Mario S. <ma...@ma...> - 2010-04-24 09:48:22
Attachments:
compiler.diff
|
I resolve partially the problem. I change something in compiler.vim. I add some rule for okular. In attachment diff file from old compiler.vim file to new. Now my configs line in vimrc for vim-latex are: autocmd FileType tex setlocal spell spelllang=it let g:tex_flavor='latex' let g:Tex_CompileRule_dvi='latex -src-specials -interaction=nonstopmode $*' let g:Tex_ViewRule_dvi = 'okular' autocmd Filetype tex imap <C-i> <Plug>Tex_InsertItemOnThisLine let g:Tex_ItemStyle_list = '\item <++>' I can start okular and view dvi file with \lv. I can start search forward in okular with \ls. I have got one question: is it possible to start just one time okular with \ls and the second time I use \ls tell to okular to move the view in the specific line under the cursor and not open another time another okular view? Can you give me a feedback? Thank you. In data 24/4/2010 01:17:24, Mario Santagiuliana ha scritto: > Hy, I'm Mario Santagiuliana. > I am an Italian Medical Student. Excuse me for my bad English. > > I want to configure vim-latex to search forward in dvi file. > I'm working on fedora 12 64-bit. My desktop enviroment is Kde 4.4.2 so I > use Okular. > > My vim installation: > $ rpm -qa|grep vim|sort > vim-common-7.2.411-1.fc12.x86_64 > vim-enhanced-7.2.411-1.fc12.x86_64 > vim-latex-1.8.23-1.20091230.r1079.fc12.noarch > vim-latex-doc-1.8.23-1.20091230.r1079.fc12.noarch > vim-minimal-7.2.411-1.fc12.x86_64 > vim-X11-7.2.411-1.fc12.x86_64 > > My vimrc configuration for vim-latex: > autocmd FileType tex setlocal spell spelllang=it > let g:tex_flavor='latex' > let g:Tex_CompileRule_dvi='latex -src-specials -interaction=nonstopmode $*' > let g:Tex_ViewRuleComplete_dvi = 'okular $*.dvi >/dev/null 2>&1 &' > autocmd Filetype tex imap <C-i> <Plug>Tex_InsertItemOnThisLine > let g:Tex_ItemStyle_list = '\item <++>' > > In Okular I setup my editor with this line: > vimx --remote-tab-silent +%l %f > > I start to edit a tex file without problem in vim. Generally I edit file > with: $ vimx --servername VIMX file.tex > so from Okular I can performe inverse search into my vim just opened. > From vim with \ll I can compile my code. With \lv I can open Okular e from > that I can do inverse search. > > With \ls I have nothing. > > From bash I can open my dvi file and view the line that I remember from vim > session. For example I edit line 45 and I want to view (search forward) my > change, whit \ls I can't do that, from commad line (bash) I can do that: > $ okular file.dvi#src:45 > > Have you got any suggestion? > > Okular from versione 0.10 support forward search: > http://okular.kde.org/news.php#itemOkular010released > > Thank you very much :) -- Mario Santagiuliana www.marionline.it |
From: Mario S. <ma...@ma...> - 2010-06-22 15:33:32
|
Nothing in the main trunk? In data 24/4/2010 11:52:10, Mario Santagiuliana ha scritto: > I resolve partially the problem. > > I change something in compiler.vim. > I add some rule for okular. > In attachment diff file from old compiler.vim file to new. > > Now my configs line in vimrc for vim-latex are: > autocmd FileType tex setlocal spell spelllang=it > let g:tex_flavor='latex' > let g:Tex_CompileRule_dvi='latex -src-specials -interaction=nonstopmode $*' > let g:Tex_ViewRule_dvi = 'okular' > autocmd Filetype tex imap <C-i> <Plug>Tex_InsertItemOnThisLine > let g:Tex_ItemStyle_list = '\item <++>' > > I can start okular and view dvi file with \lv. > I can start search forward in okular with \ls. > > I have got one question: is it possible to start just one time okular with > \ls and the second time I use \ls tell to okular to move the view in the > specific line under the cursor and not open another time another okular > view? > > Can you give me a feedback? > > Thank you. > > In data 24/4/2010 01:17:24, Mario Santagiuliana ha scritto: > > Hy, I'm Mario Santagiuliana. > > I am an Italian Medical Student. Excuse me for my bad English. > > > > I want to configure vim-latex to search forward in dvi file. > > I'm working on fedora 12 64-bit. My desktop enviroment is Kde 4.4.2 so I > > use Okular. > > > > My vim installation: > > $ rpm -qa|grep vim|sort > > vim-common-7.2.411-1.fc12.x86_64 > > vim-enhanced-7.2.411-1.fc12.x86_64 > > vim-latex-1.8.23-1.20091230.r1079.fc12.noarch > > vim-latex-doc-1.8.23-1.20091230.r1079.fc12.noarch > > vim-minimal-7.2.411-1.fc12.x86_64 > > vim-X11-7.2.411-1.fc12.x86_64 > > > > My vimrc configuration for vim-latex: > > autocmd FileType tex setlocal spell spelllang=it > > let g:tex_flavor='latex' > > let g:Tex_CompileRule_dvi='latex -src-specials -interaction=nonstopmode > > $*' let g:Tex_ViewRuleComplete_dvi = 'okular $*.dvi >/dev/null 2>&1 &' > > autocmd Filetype tex imap <C-i> <Plug>Tex_InsertItemOnThisLine > > let g:Tex_ItemStyle_list = '\item <++>' > > > > In Okular I setup my editor with this line: > > vimx --remote-tab-silent +%l %f > > > > I start to edit a tex file without problem in vim. Generally I edit file > > with: $ vimx --servername VIMX file.tex > > so from Okular I can performe inverse search into my vim just opened. > > From vim with \ll I can compile my code. With \lv I can open Okular e > > from that I can do inverse search. > > > > With \ls I have nothing. > > > > From bash I can open my dvi file and view the line that I remember from > > vim session. For example I edit line 45 and I want to view (search > > forward) my change, whit \ls I can't do that, from commad line (bash) I > > can do that: $ okular file.dvi#src:45 > > > > Have you got any suggestion? > > > > Okular from versione 0.10 support forward search: > > http://okular.kde.org/news.php#itemOkular010released > > > > Thank you very much :) -- Mario Santagiuliana www.marionline.it |
From: Till M. <ope...@ti...> - 2010-06-26 13:20:11
|
Hi, On Tue, Jun 22, 2010 at 05:13:33PM +0200, Mario Santagiuliana wrote: > Nothing in the main trunk? sorry I was very busy and still am pretty busy, but I will try to spend some hours on reducing the backlog for vim-latex patches soon. Regards Till |