Search Results
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 |
Use this tag for questions specifically regarding Neovim-only features (i.e. features not found in Vim and other Vi-like editors). It should only be used if the problem does NOT occur in Vim or other Vi-like editors.
1
vote
1
answer
727
views
Define default value to a variable
I want to assign an expression to a variable, and if it has no value, use some default.
On almost every programming language I can use something like:
let linked_hl_id = hlID(l:linked_group) || 114
B …
2
votes
How can I change the default grep call (grepprg) to exclude directories?
Sharing my answer adopted from other answers (works and tested on macOSX):
" Grep {{{
" This is only availale in the quickfix window, owing to the filetype
" restriction on the autocmd (see below).
fu …