""""""""""""
" Shortcuts
""""""""""""
" ^M is return : to make it, ctrl-v then return
" select and insert any snippets
map ga :!snippetsel > /tmp/vi-$USER.tmp:r/tmp/vi-$USER.tmp
" select and insert emoji
map ge :!emojisel > /tmp/vi-$USER.tmp:r/tmp/vi-$USER.tmp
" paste selected text
map gp :r!xclip -o 
" go to the top
map gg 1G
" insert date
map gd :r!date +"\# \%d-\%m-\%Y" 
" sort file
map gs {!}sort
map gS {!}sort -r
" git shortcuts
map ,; :!git add % && git commit -m "
map ,, :!git push 
" format to 72 char width
map gf :%!fold -s -w 72 
"map gf !}fmt -72 -s -p 
"map gf :%!gmipp 
" display lines
map g$ :set list
" check spell
map go :w:!aspell -c %:e!
" latex recompile
map tt :w:!pdflatex "%" 
" invert lines
map gi ddp
" comment lines
map gc :s/^/#/ 
" uncomment lines
map gu :k/\/\#/^M
" delete current file
map grm :!rm % :n
"""""""""
" Options
"""""""""
" hard wrap
set wraplen=72
" ignore case...
set ignorecase
" affiche le mode : insert, visual...
set showmode
" autoindentation
set autoindent
" autoindentation de 4 espaces
"set shiftwidth=4 
" tab : 4 spaces in editor
"set tabstop=4
" Voir la règle de status
set ruler
" numéro de la ligne courante en bas
set autoprint 
" montre ce qui match
set showmatch
" no bip, just flash
set flash
" print helpful messages on 1 line (eg, 4 lines yanked)
set report=1
" Voir les commandes avec :tab.  
set cedit=	
