lousiana technology park clients code example
Example 1: what is the meaningof noremap
remap is an option that makes mappings work recursively. By default it is on and I'd recommend you leave it that way. The rest are mapping commands, described below:
:map and :noremap are recursive and non-recursive versions of the various mapping commands. What that means is that if you do:
:map j gg
:map Q j
:noremap W j
j will be mapped to gg. Q will also be mapped to gg, because j will be expanded for the recursive mapping. W will be mapped to j (and not to gg) because j will not be expanded for the non-recursive mapping.
Now remember that Vim is a modal editor. It has a normal mode, visual mode and other modes.
For each of these sets of mappings, there is a mapping that works in normal, visual, select and operator modes (:map and :noremap), one that works in normal mode (:nmap and :nnoremap), one in visual mode (:vmap and :vnoremap) and so on.
For more guidance on this, see:
:help :map
:help :noremap
:help recursive_mapping
:help :map-modes
Example 2: what is package.lock.json
It could be you, or another person trying to initialize the
project on the other side of the world by running npm install.
So your original project and the newly initialized project are
actually different. Even if a patch or minor release should
not introduce breaking changes, we all know bugs can
(and so, they will) slide in.
The package-lock.json sets your currently installed version
of each package in stone and npm will use those exact
versions when running npm install.
This concept is not new, and other programming language
package managers (like Composer in PHP) use a similar
system for years.
The package-lock.json file needs to be committed to your
Gitrepository, so it can be fetched by other people if
the project is public or you have collaborators, or if
you use Git as a source for deployments.
The dependencies versions will be updated in the
package-lock.json file when you run npm update.