New rabbit hole unlocked: Vim layer
Has anyone experience with keyd (https://man.archlinux.org/man/extra/keyd/keyd.1.en) to remap keys to emulate Vim navigation?
My goal is a config file I can use across different GUIs.
New rabbit hole unlocked: Vim layer
Has anyone experience with keyd (https://man.archlinux.org/man/extra/keyd/keyd.1.en) to remap keys to emulate Vim navigation?
My goal is a config file I can use across different GUIs.
As a bit of a diversion, I somehow ended up working through the #golang #tutorial this weekend.
I don't remotely consider myself much of a programmer. Possibly, a bit of a code janitor. I was just looking for a bit of an introduction to an unfamiliar language.
I have to say, #Go has some really clear, clean, and helpful #Documentation for a beginner wanting to get started with the language. I'm impressed.
Between the interactive tour(https://go.dev/tour/welcome/1) and the Getting Started tutorial(https://go.dev/doc/tutorial/), I honestly had fun dipping my toes into Go.
Additional resources:
https://gobyexample.com/
At this point, I think I'm satisfied with the vim-go plugin providing me with a stoopid simple template for prototyping very basic example programs.
It's definitely not a #REPL like I'm used to with #Python or running from the #CLI; but, it's a bit of a useful workflow to get started. *shrug*
These keybindings help a bit:
```
augroup go
autocmd!
autocmd BufNewFile,BufRead *.go setlocal
\ noexpandtab
\ tabstop=4
\ shiftwidth=4
autocmd FileType go nmap <leader>b :<C-u>call <SID>build_go_files()<CR>
autocmd FileType go nmap <leader>d <Plug>(go-doc)
autocmd FileType go nmap <leader>f <Plug>(go-fmt)
autocmd FileType go nmap <leader>i <Plug>(go-info)
autocmd FileType go nmap <leader>l <Plug>(go-lint)
autocmd FileType go nmap <leader>r <Plug>(go-run)
autocmd FileType go nmap <leader>v <Plug>(go-vet)
autocmd FileType go nmap <leader>t <Plug>(go-test)
autocmd FileType go nmap <Leader>c <Plug>(go-coverage-toggle)
augroup END
```