finally figured out yanking on all oses

This commit is contained in:
Thomas Ruoff
2018-02-06 22:37:37 +01:00
parent 0b4b639784
commit 07e12d28ff
2 changed files with 17 additions and 0 deletions

View File

@@ -4,6 +4,19 @@ Generel stuff that I need to get into my muscle memory.
* `CTRL-W [hjkl]` - switch to window left, above, below, right * `CTRL-W [hjkl]` - switch to window left, above, below, right
## yanking
* `"ay` - replace content of register 'a'
* `"Ay` - append to content of register 'a'
* `y` - will put stuff in the default register `""` and `"0`
* `d` - will put stuff just in the default register `""` - so `"0p` will still
paste the last yank
* `3yy` - yank next three lines
* `CTRL-r +` - paste register '+' in insert mode
* `"*` - linux the PRIMARY clipboard, system clipboard on other operating
systems
* `"+` - the system clipboard on all operating systems
## unimpared ## unimpared
* `]b` - :bnext * `]b` - :bnext
* `[b` - :bprevious * `[b` - :bprevious

4
vimrc
View File

@@ -80,6 +80,10 @@ set wildignore+=*.swp,*.bak,*.jpg,*.gif,*.png,*.git,
set splitright set splitright
set splitbelow set splitbelow
" yank delete change and put operations go by default in `"+` register
" so in the systems clipboard accessable by CTRL-V on all OS types
set clipboard=unnamedplus
" set ignorecase " set ignorecase
set infercase set infercase
set smartcase set smartcase