let s:unimpaired_prev = "[" let s:unimpaired_next = "]" " 'o' mappings are for options in official unimpaired, but this is what I like execute 'nnoremap ' . s:unimpaired_prev . 'oq copen' execute 'nnoremap ' . s:unimpaired_next . 'oq cclose' execute 'nnoremap ' . s:unimpaired_prev . 'ol lopen' execute 'nnoremap ' . s:unimpaired_next . 'ol lclose' " for plugins, probably better to map here than in plugin config file execute 'nnoremap ' . s:unimpaired_prev . 'u MundoShow' execute 'nnoremap ' . s:unimpaired_next . 'u MundoHide'