今天突然在網路上看到這個方法我想說「奇怪,以前怎麼沒找到這個方法」,事實上好用多多多了...
紀錄:
map C-L -> :nohl
vimrc:
nnoremap <silent><c-l> :nohl<cr><c-l>
Ctrl + L 還蠻直覺的,平常就用來重畫 terminal,另外也有看到其他人用 <esc>, <cr> :
nnoremap <silent><esc> :nohl<cr><esc>or
nnoremap <silent><cr> :nohl<cr><cr>
We learn and do, and when we do, we learn.
nnoremap <silent><c-l> :nohl<cr><c-l>
nnoremap <silent><esc> :nohl<cr><esc>or
nnoremap <silent><cr> :nohl<cr><cr>
$(function() {
setTimeout(function (){startUpdate();}, 1);
}
或是在使用 naughty.notify 時指定:
naughty.config.presets.normal.rounded_corners = 5
naughty.notify({title = "awesome is", text = "AWESOME!!", rounded_corners = 5})不過還是要說... USE AT YOUR OWN RISK