19 lines
480 B
VimL
19 lines
480 B
VimL
function! dead#functions#MyHighlights() abort
|
|
highlight Trail ctermbg=red guibg=red
|
|
call matchadd('Trail', '\s\+$', 100)
|
|
highlight ColorColumn ctermbg=magenta
|
|
call matchadd('ColorColumn', '\%81v', 100)
|
|
endfunction
|
|
|
|
function! dead#functions#PopOutOfInsertMode() abort
|
|
if v:insertmode
|
|
call feedkeys("\<C-\>\<C-n>")
|
|
endif
|
|
endfunction
|
|
|
|
function! dead#functions#Relativize(v) abort
|
|
if &number
|
|
let &relativenumber = a:v
|
|
endif
|
|
endfunction
|