New answers tagged indentation
2
Instead of using an external fmt program to format your text by filtering it through the external command, consider using Vim built-in commands gq or gw.
Both commands take a motion or text object to determine which lines of text to act on (by the way, the same is true for the ! command, which also takes a motion, so you can use !}fmt to format from the ...
Top 50 recent answers are included
Related Tags
indentation × 309vimrc × 32
formatting × 22
tab-characters × 17
filetype-html × 16
key-bindings × 14
whitespace × 12
vimscript × 11
neovim × 11
filetype × 11
filetype-python × 9
cut-copy-paste × 8
cursor-movement × 8
visual-mode × 7
filetype-tex × 7
comments × 6
filetype-c++ × 6
alignment × 6
filetype-javascript × 6
folding × 5
wrapping × 5
filetype-c × 5
filetype-php × 5
syntax-highlighting × 4
autocmd × 4