LunarVim/general/functions.vim

16 lines
515 B
VimL
Raw Normal View History

2020-08-08 05:20:01 +02:00
" Random Useful Functions
2020-05-10 22:20:02 +02:00
" Turn spellcheck on for markdown files
2020-05-11 05:27:51 +02:00
augroup auto_spellcheck
autocmd BufNewFile,BufRead *.md setlocal spell
augroup END
2020-09-04 22:15:26 +02:00
nnoremap <f10> :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<'
\ . synIDattr(synID(line("."),col("."),0),"name") . "> lo<"
\ . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">"<cr>
2020-10-29 23:02:02 +01:00
2021-03-10 05:55:11 +01:00
augroup highlight_yank
autocmd!
au TextYankPost * silent! lua vim.highlight.on_yank { higroup='IncSearch', timeout=200 }
augroup END