mirror of
https://github.com/amix/vimrc
synced 2025-08-02 02:44:59 +08:00
Updated vimrc
This commit is contained in:
@ -89,7 +89,8 @@ endsnippet
|
||||
|
||||
snippet bbox "A nice box over the full width" b
|
||||
`!p
|
||||
width = int(vim.eval("&textwidth")) or 71
|
||||
if not snip.c:
|
||||
width = int(vim.eval("&textwidth - (virtcol('.') == 1 ? 0 : virtcol('.'))")) or 71
|
||||
box = make_box(len(t[1]), width)
|
||||
snip.rv = box[0]
|
||||
snip += box[1]
|
||||
|
Reference in New Issue
Block a user