diff options
author | Matthew Lemon <y@yulqen.org> | 2023-06-04 14:04:39 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-06-04 14:04:39 +0100 |
commit | 173f5d256ad9579cf82826c2017a2da1fe5cf90d (patch) | |
tree | fa6b191931d9cbf9cd0382c64751b2aee3857450 /vim/vimrc | |
parent | 5704d01630ba8eaea74cf8113d7fe7242d5fbdca (diff) |
Adds taskwarrior keybinding back to vimrc
Diffstat (limited to '')
-rw-r--r-- | vim/vimrc | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -45,6 +45,17 @@ set tags+=./tags set background=dark set completeopt=menuone,longest +" Function to allow adding a line of text to taskwarrior +function! TaskWarriorAddCurrentLine() + let current_line = getline('.') + silent execute ":!task add " . shellescape(current_line) + redraw! + echo "Task added: " . current_line + delete +endfunction + +nnoremap <leader>q :call TaskWarriorAddCurrentLine()<CR> + " colorscheme goes here, outside source control source ~/.vim/ephemera.vim highlight SignColumn guibg=blue ctermbg=black |