Thread: [Vim-latex-devel] texviewer and Win
Brought to you by:
srinathava,
tmaas
From: Mikolaj M. <mi...@wp...> - 2003-04-02 16:17:10
|
Hello, Yesterday I commited texviewer.vim file. It works as charm under Linux but on Windows it doesn't work at all. I have grep (from cygwin) but it looks like grep output was not intercepted. Can someone help me? Mikolaj |
From: Srinath A. <sr...@fa...> - 2003-04-02 22:18:56
|
Hey Mikolaj, This is very cool! It works out of the box for me :) (with a few small hitches which are "ignorable"). I wonder if you have some settings different. For me: shell=cmd.exe shellquote= shellxquote= grepprg=fgrep\ -n\ $* (I put fgrep in my windows path) If you want to use shell=bash, remember to also set :set shellxquote=' otherwise fgrep is called as bash -c "fgrep -n \\label{" etc... Those double quotes make my shell prompt just hang... A couple of suggestions: 1. In the cwindow, the first item always seems to be highlighted in addition to the line on which the cursor is. 2. Could you make the preview window show the label line in the center of the preview window instead of at the top. Also make the preview window larger. If possible make it customizable with some setting :) 3. Make the <F9> key customizable using the same technique in imaps.vim 4. Put this as a menu item in "Tex-Suite->Complete Ref/Cite" Another thing is that as of now, citations are only searched for in .bib files. Often times, for small papers, I prefer the .bbl file which contains things like -----------------------------------%<----------------------------------- \begin{thebibliography}{99} \bibitem{shimoyama:93} I.~Shimoyama, H.~Miura, K.~Suzuki, and Y.~Ezura, ``Insect-like microrobots with external skeletons,'' {\em IEEE Control Sys. Magazine}, 13:37--41, February 1993. \end{thebibliography} -----------------------------------%<----------------------------------- Can support for this be built as well? Sometimes, the .bbl file is not used and the above can be directly inserted into the .tex file.... Srinath On Wed, 2 Apr 2003, Mikolaj Machowski wrote: > Hello, > > Yesterday I commited texviewer.vim file. It works as charm under Linux > but on Windows it doesn't work at all. I have grep (from cygwin) but it > looks like grep output was not intercepted. > Can someone help me? > > Mikolaj > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > Vim-latex-devel mailing list > Vim...@li... > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel > > -- Srinath Avadhanula Apr 2 11:45am (null cookie; hope that's ok) |
From: Mikolaj M. <mi...@wp...> - 2003-04-03 15:30:47
|
On Wed, Apr 02, 2003 at 02:18:52PM -0800, Srinath Avadhanula wrote: > Hey Mikolaj, > This is very cool! It works out of the box for me :) (with a few small > hitches which are "ignorable"). I wonder if you have some settings > different. > For me: > shell=cmd.exe > shellquote= > shellxquote= > grepprg=fgrep\ -n\ $* 'grep -n' doesn't give info about file name if only one file match. I have add info about this in latex-suite.txt. I have grep from cygwin. Where are coming from your fgrep? If this is standalone app maybe this should be Official lS Grep Utility with link from download page and special settings in texrc? > A couple of suggestions: > 1. In the cwindow, the first item always seems to be highlighted in > addition to the line on which the cursor is. Highlighting of first line indicates current error number in quickfix engine. Viewer use cwindow but not :cnext and :cprev. First of all - I don't know how to get rid of this highlighting. Second - I am not sure if this is really necessary. In this way you can always use quickfix methods. IMO info about this in docs is enough (done). > 2. Could you make the preview window show the label line in the center > of the preview window instead of at the top. Also make the preview > window larger. If possible make it customizable with some setting :) Done. > 3. Make the <F9> key customizable using the same technique in imaps.vim How customizable? As I wrote before I don't like here IMAPS mechanism. > 4. Put this as a menu item in "Tex-Suite->Complete Ref/Cite" Done. > Another thing is that as of now, citations are only searched for in .bib > files. Often times, for small papers, I prefer the .bbl file which > contains things like > -----------------------------------%<----------------------------------- > \begin{thebibliography}{99} > \bibitem{shimoyama:93} > I.~Shimoyama, H.~Miura, K.~Suzuki, and Y.~Ezura, ``Insect-like microrobots > with external skeletons,'' {\em IEEE Control Sys. Magazine}, 13:37--41, > February 1993. > \end{thebibliography} > -----------------------------------%<----------------------------------- > Can support for this be built as well? Sometimes, the .bbl file is not > used and the above can be directly inserted into the .tex file.... Done. Strange thing. Vim (or grep) doesn't want look for "\\bibitem{", accepts only "bibitem{". I hope it is robust enough. m. -- LaTeX + Vim = http://vim-latex.sourceforge.net/ Learn Touch Typing with Vim: http://vim.sourceforge.net/script.php?script_id=461 vim.pl - http://skawina.eu.org/mikolaj |
From: Srinath A. <sr...@fa...> - 2003-04-04 19:28:25
|
On Thu, 3 Apr 2003, Mikolaj Machowski wrote: > > 3. Make the <F9> key customizable using the same technique in imaps.vim > > How customizable? As I wrote before I don't like here IMAPS mechanism. > I think you are misunderstanding me... I mean that the <F9> key should be customizable... For example, in imaps.vim, we first provide a map called <Plug>IMAP_JumpForward and then map <C-j> to it if the user has not already mapped some other key to <Plug>IMAP_JumpForward. This allows people to use other keys according to their convinience. (I personally use <C-Space> for imaps and have <C-j> mapped to <down> in insert mode). This mechanism also allows a console user to use this functionality. As of now, neither <F9> nor the menu mapping is available to a true console user. This way at least we provide a way for him to construct something for himself. Srinath |
From: Mikolaj M. <mi...@wp...> - 2003-04-05 16:02:06
|
On Fri, Apr 04, 2003 at 11:28:23AM -0800, Srinath Avadhanula wrote: > On Thu, 3 Apr 2003, Mikolaj Machowski wrote: > > > 3. Make the <F9> key customizable using the same technique in imaps.vim > > > > How customizable? As I wrote before I don't like here IMAPS mechanism. > > > I think you are misunderstanding me... I mean that the <F9> key should > be customizable... For example, in imaps.vim, we first provide a map > called <Plug>IMAP_JumpForward and then map <C-j> to it if the user has Ah, I have already done that. The only thing I need to move mapping to <Plug> to some central place. main.vim? m. |
From: Srinath A. <sr...@fa...> - 2003-04-06 23:06:50
|
On Sat, 5 Apr 2003, Mikolaj Machowski wrote: > > I think you are misunderstanding me... I mean that the <F9> key should > > be customizable... For example, in imaps.vim, we first provide a map > > called <Plug>IMAP_JumpForward and then map <C-j> to it if the user has > > Ah, I have already done that. The only thing I need to move mapping to > <Plug> to some central place. main.vim? > No! Let the mappings remain in texviewer.vim... Since its in the ftplugin/tex directory, they'll get executed every time anyway... No need to clutter up main.vim with things its not meant for. Srinath -- Srinath Avadhanula Apr 6 4:01pm Join in the new game that's sweeping the country. It's called "Bureaucracy". Everybody stands in a circle. The first person to do anything loses. |