Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " GTD "
- function! LoadCompteurs()
- let g:noAction=readfile("compteurs")[1]
- let g:noProjet=readfile("compteurs")[3]
- endfunction
- function! AssignerNoAction()
- let noAssigne = g:noAction
- let g:noAction = g:noAction + 1
- return noAssigne
- endfunction
- function! AssignerNoProjet()
- let noAssigne = g:noProjet
- let g:noProjet = g:noProjet + 1
- return noAssigne
- endfunction
- nmap ZL :call LoadCompteurs()<CR>
- nmap ZU :new compteurs<CR>:2<CR>cc<c-r>=noAction<CR><ESC>:4<CR>cc<c-r>=noProjet<CR><ESC>:wq<CR>
- nmap ZA i<c-r>=printf('A%04d', AssignerNoAction())<CR><ESC>
- nmap ZP i<c-r>=printf('P%04d', AssignerNoProjet())<CR><ESC>
- " Probablement pour GTD mais souvent pratique "
- set linebreak
- set breakindent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement