Recommand buffer mapping for completion
This commit is contained in:
@@ -79,10 +79,10 @@ You can also start automatically the completion when entering '+' or '@' by
|
|||||||
adding the next lines to your vimrc:
|
adding the next lines to your vimrc:
|
||||||
|
|
||||||
" Auto complete projects
|
" Auto complete projects
|
||||||
au filetype todo imap + +<C-X><C-O>
|
au filetype todo imap <buffer> + +<C-X><C-O>
|
||||||
|
|
||||||
" Auto complete contexts
|
" Auto complete contexts
|
||||||
au filetype todo imap @ @<C-X><C-O>
|
au filetype todo imap <buffer> @ @<C-X><C-O>
|
||||||
|
|
||||||
The TodoComplete function is designed to complete projects (starting by '+')
|
The TodoComplete function is designed to complete projects (starting by '+')
|
||||||
and context (starting by '@'). If you use it on a regular word, it will do a
|
and context (starting by '@'). If you use it on a regular word, it will do a
|
||||||
|
|||||||
@@ -67,9 +67,10 @@ You can also start automatically the completion when entering '+' or '@' by
|
|||||||
adding the next lines to your vimrc:
|
adding the next lines to your vimrc:
|
||||||
|
|
||||||
" Auto complete projects
|
" Auto complete projects
|
||||||
au filetype todo imap + +<C-X><C-O>
|
au filetype todo imap <buffer> + +<C-X><C-O>
|
||||||
|
|
||||||
" Auto complete contexts
|
" Auto complete contexts
|
||||||
au filetype todo imap @ @<C-X><C-O>
|
au filetype todo imap <buffer> @ @<C-X><C-O>
|
||||||
|
|
||||||
===============================================================================
|
===============================================================================
|
||||||
COMPLETION *todo-complete*
|
COMPLETION *todo-complete*
|
||||||
|
|||||||
Reference in New Issue
Block a user