diff options
| author | Franck Cuny <franckcuny@gmail.com> | 2016-08-04 11:45:44 -0700 |
|---|---|---|
| committer | Franck Cuny <franckcuny@gmail.com> | 2016-08-04 11:45:44 -0700 |
| commit | 585b48b6a605cb71ef99dd767880e1b7ee5bf24e (patch) | |
| tree | c65377350d12bd1e62e0bdd58458c1044541c27b /posts/2008-06-17-vim-function-for-creating-new-task.md | |
| parent | Use Bullet list for the index. (diff) | |
| parent | Mass convert all posts from markdown to org. (diff) | |
| download | lumberjaph-585b48b6a605cb71ef99dd767880e1b7ee5bf24e.tar.gz | |
Merge branch 'convert-to-org'
Diffstat (limited to 'posts/2008-06-17-vim-function-for-creating-new-task.md')
| -rw-r--r-- | posts/2008-06-17-vim-function-for-creating-new-task.md | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/posts/2008-06-17-vim-function-for-creating-new-task.md b/posts/2008-06-17-vim-function-for-creating-new-task.md deleted file mode 100644 index af14b52..0000000 --- a/posts/2008-06-17-vim-function-for-creating-new-task.md +++ /dev/null @@ -1,16 +0,0 @@ -I've added a new function to my .vimrc for creating quickly a new task: - -```vim -function! CreateTask() - let context = input("Enter context: ") - exe ":set noautoindent" - exe "normal 0" - exe "normal o \<tab>- [@".context."] " - exe ":set autoindent" - exe ":startinsert" -endfunction -``` - -and then this mapping: `map ct <esc>:call CreateTask()<cr>` - -Now, I've just to hit `,n` and type my context. A new line will be inserted and I just have to create my task. |
