mirror of
https://github.com/freitass/todo.txt-vim.git
synced 2025-11-16 05:43:47 -05:00
Added an example to be reference
This commit is contained in:
7
Todo.txt
7
Todo.txt
@@ -1,9 +1,10 @@
|
|||||||
(A) 2011-05-31 Stop breaking lines automatically @ftplugin
|
(A) 2011-05-30 Sort lines per priority @ftplugin
|
||||||
(B) 2011-05-31 Start documentation @doc
|
(B) 2011-05-31 Start documentation @doc
|
||||||
2011-05-30 Sort lines per priority @ftplugin
|
(C) 2011-05-30 Create README.markdown to be published in github @doc
|
||||||
|
(C) 2011-06-01 Improve syntax file @syntax
|
||||||
2011-05-30 Map commands to add, rm, ls, pri, depri etc @ftplugin
|
2011-05-30 Map commands to add, rm, ls, pri, depri etc @ftplugin
|
||||||
2011-05-30 Create README.markdown to be published in github
|
|
||||||
2011-05-30 Contact main project for reference
|
2011-05-30 Contact main project for reference
|
||||||
|
X 2011-05-31 Stop breaking lines automatically @ftplugin
|
||||||
X 2011-05-30 Implement filetype detection @ftdetect
|
X 2011-05-30 Implement filetype detection @ftdetect
|
||||||
X 2011-05-30 Implement colorized priorities @syntax
|
X 2011-05-30 Implement colorized priorities @syntax
|
||||||
X 2011-05-31 Highlight date, project and context of tasks with no priority @syntax
|
X 2011-05-31 Highlight date, project and context of tasks with no priority @syntax
|
||||||
|
|||||||
@@ -1,3 +1,57 @@
|
|||||||
|
" Vim Todo.txt plugin
|
||||||
|
" Last Change: 2011 Jun 01
|
||||||
|
" Maintainer: Leandro Freitas <freitass@gmail.com>
|
||||||
|
" License: This file is placed in the public domain.
|
||||||
|
|
||||||
|
if exists("g:loaded_todo")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
" Stop breaking lines automatically
|
" Stop breaking lines automatically
|
||||||
set textwidth=0
|
set textwidth=0
|
||||||
set wrapmargin=0
|
set wrapmargin=0
|
||||||
|
|
||||||
|
"" Vim global plugin for correcting typing mistakes
|
||||||
|
"" Last Change: 2000 Oct 15
|
||||||
|
"" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
"" License: This file is placed in the public domain.
|
||||||
|
"
|
||||||
|
"if exists("g:loaded_typecorr")
|
||||||
|
" finish
|
||||||
|
"endif
|
||||||
|
"let g:loaded_typecorr = 1
|
||||||
|
"
|
||||||
|
"let s:save_cpo = &cpo
|
||||||
|
"set cpo&vim
|
||||||
|
"
|
||||||
|
"iabbrev teh the
|
||||||
|
"iabbrev otehr other
|
||||||
|
"iabbrev wnat want
|
||||||
|
"iabbrev synchronisation
|
||||||
|
" \ synchronization
|
||||||
|
"let s:count = 4
|
||||||
|
"
|
||||||
|
"if !hasmapto('<Plug>TypecorrAdd')
|
||||||
|
" map <unique> <Leader>a <Plug>TypecorrAdd
|
||||||
|
"endif
|
||||||
|
"noremap <unique> <script> <Plug>TypecorrAdd <SID>Add
|
||||||
|
"
|
||||||
|
"noremenu <script> Plugin.Add\ Correction <SID>Add
|
||||||
|
"
|
||||||
|
"noremap <SID>Add :call <SID>Add(expand("<cword>"), 1)<CR>
|
||||||
|
"
|
||||||
|
"function s:Add(from, correct)
|
||||||
|
" let to = input("type the correction for " . a:from . ": ")
|
||||||
|
" exe ":iabbrev " . a:from . " " . to
|
||||||
|
" if a:correct | exe "normal viws\<C-R>\" \b\e" | endif
|
||||||
|
" let s:count = s:count + 1
|
||||||
|
" echo s:count . " corrections now"
|
||||||
|
"endfunction
|
||||||
|
"
|
||||||
|
"if !exists(":Correct")
|
||||||
|
" command -nargs=1 Correct :call s:Add(<q-args>, 0)
|
||||||
|
"endif
|
||||||
|
"
|
||||||
|
"let &cpo = s:save_cpo
|
||||||
|
|
||||||
|
let g:loaded_todo = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user