Hello,

What was the biggest nuisance for me with ctags was operating only on
saved files. It made working on big files and updating them always a bit
tedious. Here is workaround - with possible big side effects:

Quick and dirty version - note expand() should take care about proper
place of saved file.

function! Semicolon()
        call writefile(getline(1,'$'), expand('%'))
        call system('ctags -R .')
        return ';'
endfunction
inoremap <expr> <silent> ; Semicolon()

m.

Reply via email to