"writing a function" :help
(scroll a bit)
(find "usr_41.txt Write a Vim script")
<C-]>
(read)
"learn about |" :h :|
"split an array in vimscript" (what does that mean? "splitting a string into an array" or… something else?) :h split() or if that's not what you want,
:h list-functions
:h i_ctrl-w is not intuitive when you start Vim for the first time but:1. it is easy to understand how it works and apply that to subsequent searches, 2. it is indicated in the first screen of :help. So yeah, after using that search query once, it is very intuitive. Schizophrenia != intelligence + curiosity. "Let's say on entering a ruby file we want to press enter" :h autocmd
(reading)
autocmd BufEnter *.rb <CR>
(doesn't work)
(thinking)
(oh! <CR> should be a normal mode command of course!)
autocmd BufEnter *.rb normal <CR>
(doesn't work)
(oh! I remember, :normal only accepts ^M!)
autocmd BufEnter *.rb normal ^M
"change the background color" (look at how it's done in a random colorscheme)
:hi Normal guibg=#0066ff
"how to set guicursor" :h guicursor
What do you want to do with your guicursor if not setting its color and/or shape and/or blinking behavior? Everything is right there.Vim has a large documentation that you learn to use little by little, query after query but all your examples assume no prior experience with Vim's :help Impatience leads nowhere. --- By the way I never downvote anything: I upvote to express my agreement and I answer to express my disagreement. That, and I don't have downward triangles anyway, a consequence of my presumably low "karma", maybe? |