How can I delete a line without putting it into my default buffer?
Example:
line that will be copied.
line that I want to be substitued with the previou
the following mappings will produce:
nnoremap x "_x
nnoremap d "_d
nnoremap D "_D
vnoremap d "_d
nnoremap d ""d
nnoremap D ""D
vnoremap d ""d
Also, it is a nice practice to have the "leader" key set to comma, e.g:
let mapleader = ","
let g:mapleader = ","
these 2 snippets will make ",d" be your new cut command.
If you would like to use these mappings togther with a shared system clipboard configuration, see further details at https://github.com/pazams/d-is-for-delete