There seems a lot of misinterpretation of Vim, leading to confusion or
frustration:
Vim is designed as a *text editor* using the keyboard like in the
beginning of computing.
Repeatedly there are discussions on 'what the mouse', or like here 'what
the print'. IMHO/AFAIK Vim isn't designed for that. Vim isn't a 'word
processor' and do-it-all-tool like LiberOffice Write or MS Word. It
ain't. It might look and feel nerdy to use a console editor, but then
you also have to adapt to the nerd-way of using the software. You'll
discover that Vim is loaded with nifty features that makes the keyboard
way faster than the mouse!
Learn to use the keystrokes as intended. Use another piece of software
to do the layout and that kind of things, for example pandoc
(https://pandoc.org/). Your output on a printer or PDF will astonish! By
adding code for markdown (https://daringfireball.net/projects/markdown/)
or LaTeX, even a combination of both, printing can be steered towards
the wanted output.
Examples? Lines starting with 'pandoc' uses that software with a
(Vim-made) text as _text_ source. It might need some extra installation.
You can save these code snippits eg. in cheat
(https://github.com/cheat/cheat):
# Text file conversions, basic use
pandoc <input_file>.<ext> -o <output_file>.<ext>
# To use A4 papersize and 12pt font
pandoc -V papersize:a4 -V fontsize:12pt
# To use A4 paper with smaller margins
pandoc -V geometry:a4paper
# To use 'smart' quotes, en- and em- dashes, etc
pandoc -s
# Use an empty page layout, without pagenumbers etc
\pagestyle{empty}
# Insert an image, dimensions between {} are at choice
# a `\ ' after an image produces just the image without name
{html style dimensions}
# Insert my signature in letters
{width="9.597cm" height="4.538cm"}\
# Insert an extra blank line
# use two spaces and a nonbreaking space (about)
` \'
# Insert a link to another document or url
[The linking text goes here](the link or url goes here)
# Pre-press string to make a pdf from markdown
pandoc -s -V papersize:a4 -V fontsize:12pt <input_file>.md -o <output_file>.pdf
# To make a presentation
pandoc -t beamer source.md -o slides.pdf
# Styling the presentation
pandoc -t beamer source.md -V theme:Warsaw -o slides.pdf
# RTFM http://pandoc.org/MANUAL.html
# LaTeX Beamer themes http://www.deic.uab.es/~iblanes/beamer_gallery/
Happy Vimming!
//meine
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/Z8LFql0A9KGYU0QN%40trackstand.
Saturday, March 1, 2025
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment