Slide 20
Slide 20 text
USEFUL STUFF
"." = cursor
"'<" = selection start
"'>" = selection end
'\v' = very magic
line(“.”)
getpos(“.”)
setpos(“.”, [0,12,3])
getline(12)
setline(12, ”potato”)
append(12, [“line after 12”, ”line after 13”])
matchend(“some string”, ‘\v.*’)
matchlist(“some string”, ‘\v(regex|with|groups)’)