" Disable spell checking and set up custom mappings. setlocal nospell if getwininfo(win_getid())[0].loclist == 0 finish endif nnoremap q :lclose nnoremap dd :lremove