Sign in

1. Adding console logs to render expressions

2. Trace a function’s call with the Error object


Visual Mode “o”

Skipping To Empty Lines “}”


set completefunc=Registers
function! Registers(findstart, base)
if a:findstart == 1
return 0
endif
" Imagine, if you will, this is a full list
" of all your registers...
let l:regs = [ '"', '0', '1', '2', '3', '4', '5', '6', ...]
return {
\'words': map(l:regs,
\{ i, reg -> {
\'key': reg,
\'word': getreginfo(reg).regcontents[0],
\'abbr': '@' . reg,
\'menu': slice(trim(getreginfo(reg).regcontents[0]), 0, 20)
\}
\})
\}
endfunction




Vim Beefs


function logger(geeting) {
return function(name) {
console.log(greeting, 'My name is ', name)
}
}

logger('Hi!')('Bob')

// Hi! My name is Bob
function logger(store) {
return…

Netrw


Sean

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store