local right_layout = wibox.layout.fixed.horizontal()
if s == 1 then right_layout:add(wibox.widget.systray()) end
right_layout:add(separator)
- right_layout:add(require("widgets/pomodoro"))
- right_layout:add(separator)
right_layout:add(require("widgets/awesompd"))
right_layout:add(require("widgets/volume_widget"))
- if utils.host == "chronos" then
+ if utils.has_battery() then
right_layout:add(separator)
right_layout:add(require("widgets/battery_widget"))
end
" needs editing colorscheme
" Plugin 'jeaye/color_coded'
" Check LucHermites plugins: https://github.com/LucHermitte/lh-cpp
+ Plugin 'wincent/loupe'
call vundle#end()
set ttymouse=xterm " type of mouse
" messages and info {{{2
- set showcmd " Show (partial) command in status line.
- set ruler " show the cursor position all the time
- set confirm " Ask what to do when closing unsaved documents
- set shortmess=filnxtoOI " don't show intro message
+ set showcmd " Show (partial) command in status line.
+ set ruler " show the cursor position all the time
+ set confirm " Ask what to do when closing unsaved documents
+ set shortmess= " reset option
+ set shortmess+=a " all abbreviations
+ set shortmess+=o " overwrite file-written message
+ set shortmess+=O " file-read message overrides previous
+ set shortmess+=t " truncate file message at start
+ set shortmess+=T " truncate other messages in the middle
+ set shortmess+=W " don't give 'written' or '[w]' when writing a file
+ set shortmess+=A " ignore swapfile warning
+ set shortmess+=I " no splash screen
" editing text {{{2
set backspace=indent,eol,start " allow backspacing over everything in insert mode
map <F1> :ls<CR>:b<space>
-" move between windows
-nnoremap <C-L> <C-W>w
-nnoremap <C-H> <C-W>W
+" move between windows (skip previewwindow)
+nnoremap <silent> <C-L> <C-W>w:if &previewwindow \| wincmd w \| endif<CR>
+nnoremap <silent> <C-H> <C-W>W:if &previewwindow \| wincmd W \| endif<CR>
"xterm mouse with middleclick paste
nnoremap <MiddleMouse> i<MiddleMouse>
if executable('ag')
" Use ag in unite grep source.
let g:unite_source_grep_command = 'ag'
- let g:unite_source_grep_default_opts = '--smart-case --vimgrep --hidden --ignore ''.hg'' --ignore ''.svn'' --ignore ''.git'' --ignore ''.bzr'''
+ let g:unite_source_grep_default_opts = '--smart-case --vimgrep --ignore ''.hg'' --ignore ''.svn'' --ignore ''.git'' --ignore ''.bzr'''
let g:unite_source_grep_recursive_opt = ''
end
nnoremap <silent> [unite]a :<C-u>Unite grep:.::\12\17<CR>
" unite-file_rec {{{3
if executable('ag')
" Use ag in unite rec source
- let g:unite_source_rec_async_command = 'ag --follow --nocolor --nogroup --hidden -g ""'
+ let g:unite_source_rec_async_command = ['ag', '--follow', '--nocolor', '--nogroup', '-g', '']
end
nnoremap <silent> [unite]f :<C-u>Unite -start-insert file_rec/async<CR>
call unite#custom#source('file_rec/async', 'sorters', 'sorter_selecta')