Comments (6)
I think the only thing missing for Windows support are the functions that make external calls, that is, the latexmk-functions and the view-function. I think the structure would be something like what you suggest. I hope to get some spare time soon to implement this.
As for your other suggestion: The reason I decided not to define any commands is simply that I never used the commands, I only used the mappings. And it is trivial to define both mappings and commands when the functions are available. For example, you may put in your vimrc:
command LatexView :call latex#view()<cr>
cnoreabbrev H <c-r>=getcmdpos() == 1 && getcmdtype() == ":" ? "LatexView" : "Lv"<cr>
I might consider adding some common commands, but I am not convinced that it is necessary or more convenient than just defining the commands that one need oneself. If you want to continue this discussion, I propose that you open a separate issue where we can discuss this.
PS! At the current time, the view function does not allow arguments as you have implemented for LaTeX-Box.
from vimtex.
Can you considering adding something similar to the code in this comment to this line in order to enable bib completion on windows?
Thanks!
from vimtex.
@petobens I am not sure if that same fix is necessary here. I've managed the file names in a different and much more sensible way, even though it might not be correct for windows. Could you open a separate issue for this and explain what is wrong.
from vimtex.
I've just opened a couple of new issues to separate the different issues discussed in this thread.
#18 - Make latexmk bindings work for windows
#19 - Make latex#view() work for windows
#20 - Make bib completion work on windows
As I have explained earlier, I do not have windows myself, so it is crucial that other people (@petobens @EPNGH ++) test my code, suggest changes, and report bugs. I am also happy if anyone wants to contribute with pull requests.
from vimtex.
The creation of commands such as
command LatexView :call latex#view()<cr>
was best practice suggestion I copied from Tpope at http://www.reddit.com/r/vim/comments/267vrv/i_am_tim_pope_crafter_of_plugins_ama/chooack.
For example, fugitive defines Gstatus, Gblame...
. How about Lview, Lclear!,...
? Then :L<Tab>
would remind us of the possible vim-latex commands.
from vimtex.
@EPNGH Please continue this discussion here.
from vimtex.
Related Issues (20)
- about slow syntax highlighting HOT 12
- citekey autofill not working with \Volcite and \volcite when using correct biblatex syntax HOT 4
- zathura_simple on wayland not outputting pdf HOT 7
- Contents on Zathura are not recoganizable when doing forward search if the cursor stays on an equation environment HOT 1
- Disregard contents of "comment" environment HOT 6
- Errors E716 E116 when running :VimtexTocOpen in a file containing a \label HOT 3
- Item Option highlight group and concealing HOT 3
- How to replace deprecated option 'vimtex_view_general_options_latexmk'? HOT 4
- Setting Out Dir Using Funcref and Subfiles HOT 8
- Synctex doesn't work properly on Mac (Zathura or Skim) HOT 28
- VimTex not working when configured to load on "event = "BufEnter *.tex"" in Lazy.nvim HOT 1
- What is warnings.pm? HOT 2
- Use new synctex interactive mode to speed up synctex HOT 5
- Toggle to revert changes made in issue 2401 HOT 2
- Mainfile detection fails when \input is in enumerate environment HOT 4
- l:file not defined in function vimtex#compiler#compile_selected(type) HOT 4
- Setup text argument in user-defined command HOT 3
- Wrong TeXMathZone result from `vimtex#syntax#stack()` HOT 5
- Compilation failed when using xelatex HOT 2
- Compilation fail with option "-c" HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vimtex.