nnoremap <leader>[ :tabprev<cr>
nnoremap <leader>] :tabnext<cr>
-" Wrap
-nnoremap <leader>W :set wrap!<cr>
-
" paste from selection
nnoremap <leader>p* :silent! set paste<CR>"*p:set nopaste<CR>
" paste from clipboard
" Select (charwise) the contents of the current line, excluding indentation.
nnoremap vv ^vg_
-" Toggle [i]nvisible characters
-nnoremap <leader>i :set list!<cr>
-
" Unfuck my screen
nnoremap U :syntax sync fromstart<cr>:AirlineRefresh<cr>:redraw!<cr>
" Don't use Ex mode, use Q for formatting
map Q gq
-" allow undoing in insert-mode
-inoremap <C-U> <C-G>u<C-U>
+" break undo sequence before removing word
inoremap <C-W> <C-G>u<C-W>
nmap <Leader>b :set expandtab tabstop=4 shiftwidth=4 softtabstop=4<CR>
" save with sudo
cnoremap w!! w !sudo tee % > /dev/null
+" uppercase previous word
+inoremap <C-C> <Esc>gUiwgi
+
" plugins options {{{1
" ag {{{2
let g:AgSmartCase = 1
" checkattach {{{2
let g:checkattach_filebrowser = 'ranger'
+let g:checkattach_once = 'y'
" delimitmate {{{2
let delimitMate_expand_cr = 2
let g:sneak#target_labels = "aoeuisnthdpylrcgfqjkxzmwvz" " dvorak
let g:sneak#use_ic_scs = 1 " follow 'ignorecase' and 'smartcase'
+" sneaky f and t
+nmap f <Plug>Sneak_f
+nmap F <Plug>Sneak_F
+xmap f <Plug>Sneak_f
+xmap F <Plug>Sneak_F
+omap f <Plug>Sneak_f
+omap F <Plug>Sneak_F
+nmap t <Plug>Sneak_t
+nmap T <Plug>Sneak_T
+xmap t <Plug>Sneak_t
+xmap T <Plug>Sneak_T
+omap t <Plug>Sneak_t
+omap T <Plug>Sneak_T
+
" functions {{{1
" Convenient command to see the difference between the current buffer and the