Questions tagged [word-processing]
Questions about editing prose (sentences and paragraphs)
16
questions
0
votes
1answer
36 views
Vim wordcount for alphanumeric characters only
I know that vim has a function wordcount() that returns a dictionary containing the number of bytes, lines, words etc in the current buffer. The problem I have is that the words field of the dict from ...
2
votes
1answer
89 views
How can I get a reading time estimate?
Is there any way to display the reading time estimate in Vim? For example "this will take about 4 minutes to read".
The closest that I know of is g<C-g>, which gives:
Col 29 of 75; Line 68 of ...
1
vote
1answer
1k views
Entering italic text in vim
How does one enter (and view) italic text in vim?
I am interested in a keymap by which I can toggle to "italic mode" and back.
Example from the infopage of a certain vim plugin: see the text under ...
0
votes
2answers
193 views
Dictionary (as in wikitionary) plugin indication
I'm looking for a dictionary (as in the wikitionary; not the data structure)
plugin for vim.
One where I could put my cursor on pyrolysis, type a command such as
:Dictionary and get something like:
...
3
votes
2answers
297 views
Case-insensitive abbreviations
I use abbreviations extensively to make writing in languages other than English easier. For example, I have something like this set up for when I'm writing in Italian:
inoreabbrev perche' perché
...
12
votes
3answers
4k views
automatically rewrap lines when writing markdown in VIM
Very often, I write markdown in VIM, and there will be paragraphs in those markdown. To help my editing, I setup my Vim to wrap a line on 80 chars. It works nice if I just keep typing, but the problem ...
2
votes
1answer
313 views
Find out duplicate words with differing case
I need to confirm I have not created duplicate variables in a c file, while converting code from another language which is case insensitive.
For example, a file's content (below 2 lines) is:
x = ...
4
votes
1answer
127 views
Format options setting collapses lines
I set up this nifty custom function to help me use Vim for word processing:
func! WordProcessorMode()
setlocal formatoptions=ant
setlocal textwidth=60
setlocal wrapmargin=0
endfu
com! WP ...
4
votes
0answers
62 views
vipJ unwrapping fails when using custom function
I have decided to use Vim for editing prose, as I find it to be a much more work-conducive, clutter-free environment than most so-called text processors expressly built for that purpose. To that end, ...
6
votes
4answers
5k views
Colorizing plain text
I love vim, i use it all the time for write codes, but now I want to write some personal notes.
I'm trying vim-pandoc (with vim-pandoc-syntax) and it's nice to have 'rich text' features like titles, ...
5
votes
4answers
908 views
How do I make dictionary completion look in a different file if triggered after the @ sign?
I have been using Vim as a research database, and I use tags in the form of @tag for each note, written in the second line after the title. I might have more than one tag.
How can I make dictionary ...
16
votes
1answer
297 views
Prevent Vim from breaking up links mid-tag in markdown
Let's say I have this Markdown file:
[Lorem ipsum dolor sit ](http://vi.stackexchange.com/many-links-are-often-very)
Lookin' good. But the link isn't finished it, so I type -long, and now Vim
breaks ...
14
votes
1answer
4k views
Is it possible to easily work with .odt, .doc, .docx, .rtf, and other non-plain-text formats in Vim?
Occasionally someone sends me a .odt, .doc, and .docx file; opening them in OpenOffice is always a pain because, well, OpenOffice.
Right now I use a variety of commandline tools (such as odt2txt) to ...
43
votes
6answers
16k views
Can I justify text in Vim?
The only reason why I'd ever edit a text file in Pico or Nano, and not in Vim was its "Justify" command ^J. It would reformat a paragraph of text, creating line breaks at word breaks so that the text ...
10
votes
1answer
166 views
Is there a <C-w> for WORDs?
Pressing Ctrl-w in Insert mode will delete the previous word. It is equivalent to Ctrl-Backspace in Windows, and Opt-Delete in OS X, and really speeds up typing.
Vim has the separate concepts of word ...
35
votes
4answers
14k views
How can I easily create and maintain tables?
Here is (part of) a table I use in some documentation:
+---------------+------------------------+---------------------------------------+
| TASK NAME | WHEN | DESCRIPTION ...