Closed pi314 closed 6 years ago
function! s:set_title () for l:idx in [''] + map(range(2, bufnr('$') + 1), '"-". v:val') try " the ``file`` command expands ``#``, so it has to be escaped let t:localtablabel = 'cim' . l:idx execute 'file cim' . l:idx break catch /^Vim\%((\a\+)\)\=:E95/ endtry endfor endfunction setlocal buftype=nofile setlocal noswapfile call s:set_title() execute 'set guitablabel='. &guitablabel inoremap <expr> <buffer> <CR> (pumvisible() ? "<C-Y>" : "") . (getline('.') == '' ? "<C-R>*" : "<ESC>0\"*C") vnoremap <CR> "*d
Implemented with d32b1bc