Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 41775

Question about the Lua binding in Neovim

0 votes

How to detect whether the current file might contains a long line?

Finally, I use combination of strwidth and getfsize to achieve my goal: is_supported = function () if vim.fn.strwidth(vim.fn.getline('.')) > 300 or vim.fn.getfsize(vim.fn.expand("%")) > 1024 * 1 …
Kindred's user avatar
  • 153
3 votes
2 answers
94 views

How to detect whether the current file might contains a long line?

I'm using NeoVim so I prefer script written in Lua, but VimScript is also welcome! …