Questions tagged [word-processing]

Questions about editing prose (sentences and paragraphs)

Filter by
Sorted by
Tagged with
45 votes
6 answers
22k 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 ...
SF.'s user avatar
  • 2,049
43 votes
4 answers
21k views

How can I easily create and maintain tables?

Here is (part of) a table I use in some documentation: +---------------+------------------------+---------------------------------------+ | TASK NAME | WHEN | DESCRIPTION ...
Martin Tournoij's user avatar
18 votes
3 answers
6k 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 ...
Jason Hu's user avatar
  • 1,345
18 votes
1 answer
451 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 ...
Martin Tournoij's user avatar
15 votes
1 answer
6k 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 ...
Martin Tournoij's user avatar
10 votes
1 answer
308 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 ...
David Lord's user avatar
7 votes
4 answers
6k 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, ...
Raúl Barriga's user avatar
5 votes
4 answers
930 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 ...
Amaru's user avatar
  • 125
5 votes
0 answers
77 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, ...
Eirik S.'s user avatar
  • 111
4 votes
1 answer
161 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 ...
Eirik S.'s user avatar
  • 111
3 votes
2 answers
397 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é ...
mrzool's user avatar
  • 1,002
2 votes
1 answer
3k 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 ...
easytarget's user avatar
2 votes
1 answer
513 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 = ...
DevBee's user avatar
  • 43
2 votes
1 answer
163 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 ...
Martin Tournoij's user avatar
2 votes
1 answer
199 views

How to have word count exclude bracketed text?

I'm using vim to write documents and trying to get word count to exclude anything that is delimited by brackets, which I use for notes or comments that are not a part of the document. So I don't want ...
aris's user avatar
  • 145
1 vote
0 answers
44 views

Measurement/ tracking the time for editing a file (overall and statistics)

I use vim for coding and also for writing scientific articles and book chapters. It would be very interesting to know the time I spent on a file. For example how many hours or minutes the buffer was ...
Robert Winkler's user avatar
0 votes
2 answers
244 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: ...
fmv1992's user avatar
  • 181
0 votes
1 answer
74 views

How to customize word definition in vim?

Suppose that i am editing a line such as below(just a bash command),my cursor is locating at the monitor's m: 1.How can quickly move cursor at the alsa's a? ffmpeg -f pulse -i alsa_output.pci-...
showkey's user avatar
  • 1,104
0 votes
1 answer
67 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 ...
myc3lium's user avatar
0 votes
0 answers
337 views

Stenography (Plover) integration

I use Vim for academic writing and my preferred writing method is using stenography with Plover. Is there any initiative to integrate Stenography/Plover into Vim? Currently, I am switching keyboards ...
Robert Winkler's user avatar