4
votes
Accepted
Is it possible to break out of nested loops?
There is no goto in vimscript [1]. Like most languages that lack goto, you'll need to handle this using a variable:
let breaking = 0
for i in range(3)
for j in range(5)
echo i j
...
1
vote
How to get total width of Vim with vertical splits?
The solution is the use &columns instead of winwidth(0) to get the width of the terminal window.
1
vote
Accepted
What is the significance of duplicating syntax-group name references?
Repeated syntax-group names and cluster references are
superfluous in a particular syntax command argument; when
found, they are quietly passed over.
Read Bram Moolenaar's comment in the discussion ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
vimscript × 1367vimrc × 227
key-bindings × 117
functions × 98
neovim × 88
regular-expression × 48
syntax-highlighting × 44
autocmd × 44
buffers × 39
search × 34
command-line × 30
gvim × 29
visual-mode × 29
vim-windows × 26
variables × 26
external-command × 24
plugin-system × 24
statusline × 23
cursor-movement × 20
register × 19
autocompletion × 18
highlight × 18
vimscript-python × 18
terminal × 17
indentation × 15