I was recently going through a tutorial on configuring the Vimrc file to make it behave more like traditional text editors. In that tutorial, I came across the following line:
command! -nargs=* Wrap set wrap linebreak nolist. This has the effect of allowing one to simply type ":Wrap" and activate a number of behaviors.
The problem I have is two-fold. First: is there an easy way to disable these settings (after they have been enabled) with a simple command or do I need to enter something like
":set nowrap nolinebreak list" ? Second, how does that "command!...." work? The tutorial gave no guidance as to how to interpret the mechanics of that line. What does "command!" do? What about "-nargs=*"? I understand everything else methinks... I am still too new to this to find simply reading the documentation to be particularly elucidating and have yet to find a tutorial on the subject.