mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-03 06:27:21 +01:00
finally figured out yanking on all oses
This commit is contained in:
@@ -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
4
vimrc
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user