This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function! yankring#reset() abort | |
| let s:yankring = [] | |
| for l:i in range(1, 9) | |
| execute 'let l:contents = @' . l:i | |
| call add(s:yankring, l:contents) | |
| endfor | |
| endfunction | |
| call yankring#reset() | |
| function! yankring#yank(contents) abort |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function! rename#opfunc(type) abort | |
| if a:type == 'line' | |
| return | |
| endif | |
| normal! `[v`]d | |
| augroup rename_insert | |
| autocmd! | |
| autocmd InsertLeave * call s:refactor_var() | autocmd! rename_insert | |
| augroup END | |
| startinsert |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function! s:is_edge_window(direction) abort | |
| " If window is on the 'edge' | |
| let l:win = winnr() | |
| execute 'noautocmd wincmd ' . a:direction | |
| let l:edge_window = winnr() == l:win | |
| if !l:edge_window | |
| execute 'noautocmd ' . l:win . 'wincmd w' | |
| endif | |
| return l:edge_window | |
| endfunction |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\NeoVim] | |
| @="Edit with &NeoVim" | |
| "Icon"="\"D:\\Applications\\Neovim\\bin\\nvim-qt.exe\"" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\NeoVim\command] | |
| @="D:\\Applications\\Neovim\\bin\\nvim-qt.exe \"%1\" " |