From 461bcdad1fc308f5c8a0defb51d1a015e943600c Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Mon, 9 Apr 2018 08:22:59 +0100 Subject: [i3] Correct battery script --- bash/.bashrc | 2 ++ i3/.config/i3blocks/bin/battery | 2 +- vim/.vimrc | 10 +++++++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/bash/.bashrc b/bash/.bashrc index 9f4e80d..3d0e6bd 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -7,3 +7,5 @@ fi # FZF [ -f ~/.fzf.bash ] && source ~/.fzf.bash + +source ~/.zgen/urbainvaes/fzf-marks-master/fzf-marks.plugin.bash diff --git a/i3/.config/i3blocks/bin/battery b/i3/.config/i3blocks/bin/battery index 7c7d76c..378ee3f 100755 --- a/i3/.config/i3blocks/bin/battery +++ b/i3/.config/i3blocks/bin/battery @@ -44,6 +44,6 @@ fi time_remaining=$(printf "%02d:%02d" \ $(( tot_minutes_remaining/60 )) \ - $(( tot_minutes_remaining/60 ))) + $(( tot_minutes_remaining - (tot_minutes_remaining/60)*60 ))) echo "$icon $charge_percent% ($time_remaining)" diff --git a/vim/.vimrc b/vim/.vimrc index f025c7c..d47790f 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -17,6 +17,7 @@ Plug 'SirVer/ultisnips' Plug 'airblade/vim-gitgutter' Plug 'AndrewRadev/splitjoin.vim' Plug 'arcticicestudio/nord-vim' +Plug 'autozimu/LanguageClient-neovim' Plug 'beloglazov/vim-online-thesaurus' Plug 'christoomey/vim-tmux-navigator' Plug 'critiqjo/lldb.nvim' @@ -66,6 +67,7 @@ Plug 'vim-scripts/ReplaceWithRegister' Plug 'vim-scripts/gmsh.vim' Plug 'wellle/targets.vim' +" Plug 'urbainvaes/vim-remembrall' Plug '~/Dropbox/projects/vim-remembrall/' if has("nvim") " Plug 'roxma/nvim-completion-manager' @@ -210,6 +212,13 @@ let g:NERDTreeHijackNetrw = 0 " Remembrall nnoremap ,, :call remembrall#remind('n', '') +nnoremap y :call remembrall#remind('n', 'y') +let g:remembrall_suffixes=['', '?'] +let g:remembrall_window='botright 10new' + +augroup remembrall + autocmd FileType tex nnoremap ,l Remembrall('n', ',l') +augroup END " Ultisnips let g:UltiSnipsEditSplit="horizontal" @@ -400,7 +409,6 @@ nnoremap ,cn :call MyColo("nord") augroup vimrc autocmd! autocmd BufWritePost *vimrc,*exrc :call feedkeys(":source %\") - " autocmd BufWritePost *vimrc,*exrc :source % autocmd BufNewFile,Bufread /tmp/mutt-* setlocal tw=72 autocmd BufWritePre * \ if !isdirectory(expand(':p:h')) | -- cgit v1.2.3