LunarVim.LunarVim/general/functions.vim

16 lines
515 B
VimL
Raw Normal View History

2020-08-07 23:20:01 -04:00
" Random Useful Functions
2020-05-10 16:20:02 -04:00
" Turn spellcheck on for markdown files
2020-05-10 23:27:51 -04:00
augroup auto_spellcheck
autocmd BufNewFile,BufRead *.md setlocal spell
augroup END
2020-09-04 16:15:26 -04: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 18:02:02 -04:00
2021-03-09 23:55:11 -05:00
augroup highlight_yank
autocmd!
au TextYankPost * silent! lua vim.highlight.on_yank { higroup='IncSearch', timeout=200 }
augroup END