3 ms·
Plain old vim doesn't only do vimscript, you can also script it in Perl, Python, TCL, Lua and maybe one more I cannot remember. See e.g. this python howto: http
by holowoodman 2y ago
Plain old vim doesn't only do vimscript, you can also script it in Perl, Python, TCL, Lua and maybe one more I cannot remember. See e.g. this python howto: http://codeseekah.com/2012/03/04/vim-scripting-with-python-lookup-ip-country/ http://codeseekah.com/2012/03/04/vim-scripting-with-python-l...
- comex 2y agoAlso Ruby.
- mzs 2y agoalso the way you can use shell - hmmm I'd like all the build timestamps of my 6.4 bootroms... alright I'll put all the filenames in the buffer ls /tftp/bootroms/foobar/foobar_6.4_*.bin | gvim - I'll run an awk one-liner to print the filename and date seperated by a tab :%!awk '{ printf("\%s\t", $0); system("strings " $0 " | grep '\''20[0-2][0-9],'\''") }' I don't want that long path :1,$s:.*/:: I know, I'll sort them by build date :%!sort -r -k4 -k2M -k3n -k5 Oh yuck 4 space tabs don't do it :set ts=16 :set expandtab :retab
- ericb 2y agoThis is probably the most promising answer to me. > Plain old vim By this, do you mean this is only available in vim, not NeoVim?
- xk_id 2y agoNeoVim has additional scripting functionality over Vim actually, which is why some of their plugins aren’t compatible with Vim. So OP is referring to Vim over the likes of vscode, jetbrains etc