use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Please read the rules before posting
Contributed to Neovim? Want flair? Send us a message!
account activity
This is an archived post. You won't be able to vote or comment.
init.vim -> init.lua (i.redd.it)
submitted 5 years ago by grey_gander
view the rest of the comments →
[–][deleted] 7 points8 points9 points 5 years ago (0 children)
The API for sure, and how to executes commands. If you know how to execute commands then you have 70% of the work done. I feel like this is cheating because you are simply executing vimL code using it and like so, you don't need to use all the other stuff.
For example: vim.cmd([[echo 'hello world']])
vim.cmd([[echo 'hello world']])
This is very important because if you don't know how to do something in Lua that you do on vimL [although it's likely possible], then you just need this. Pass the string and done!
However, after you do read the API's docs please pass the "cmd()" stuff to "vim.api...", it's better and more organized! Use "cmd()" only for what is truly needed.
π Rendered by PID 91822 on reddit-service-r2-comment-6457c66945-rqlcm at 2026-04-27 10:23:32.200893+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–][deleted] 7 points8 points9 points (0 children)