Adds autocommand for updating the shared file
This allows neovim instances to share registers, marks, command history and some other bits. See :h shada Augroup stolen from here: https://vi.stackexchange.com/a/24564
This commit is contained in:
parent
b829ab5802
commit
292a8744e9
1 changed files with 7 additions and 0 deletions
|
@ -64,3 +64,10 @@ augroup colorcols
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd FileType,VimEnter,BufEnter * call mine#functions#colorcols()
|
autocmd FileType,VimEnter,BufEnter * call mine#functions#colorcols()
|
||||||
augroup end
|
augroup end
|
||||||
|
|
||||||
|
" share data between nvim instances (registers etc)
|
||||||
|
augroup SHADA
|
||||||
|
autocmd!
|
||||||
|
autocmd CursorHold,TextYankPost,FocusGained,FocusLost *
|
||||||
|
\ if exists(':rshada') | rshada | wshada | endif
|
||||||
|
augroup END
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue