diff --git a/vimrc b/vimrc index ba19ad8..a8918e6 100644 --- a/vimrc +++ b/vimrc @@ -61,7 +61,6 @@ set smartcase " recherche respectueuse de la cas set cursorline " met en avant la ligne courante "set cursorcolumn " met en avant la colonne courante set so=2 " Place le curseur sur la 2ème ligne lors de mouvements verticaux -set pt= " évite la double indentation lors de c/c set cpoptions+=$ " ajoute un $ pour indiquer la fin d'un remplacement set title " Modifier le titre du terminal (ne semble pas fonctionner avec screen) set autochdir " Modifie le répertoire courant pour vim en fonction du fichier ouvert @@ -164,11 +163,10 @@ map O noremap :set hlsearch!:set hlsearch? " Activer/désactiver la correction avec F3 "noremap :set spell!:set spell? -" Activer/désactiver le mode collage -noremap :set paste!:set paste? -" Remap de Echap sur jj +" Esc mapping in insert mode imap jj +imap àà imap """""""""""""""""""""""""""""""""""""""""""""""" @@ -523,6 +521,13 @@ nmap t :TagbarToggle " Change preview hotkey to mm let vim_markdown_preview_hotkey='mm' +" Use qutebrowser as default browser +let vim_markdown_preview_browser='qutebrowser' + +" Additionnal hotkey to run grip +nmap M :w!:!grip $(echo %) --export --no-inline ~/.vim/tmp/grip.preview.html:!qutebrowser ~/.vim/tmp/grip.preview.html + + " preview_toggle " 0 (default): Preview with hotkey mapping " 2 : Preview on buffer write @@ -687,7 +692,7 @@ iabbrev svp s'il-vous-plaît iabbrev stp s'il-te-plaît iabbrev pcq parce que -" hand emoticon {{{ +" hand emoji {{{ iabbrev :ok: 👌 iabbrev :ok_hand: 👌 iabbrev :+1: 👍 @@ -700,8 +705,9 @@ iabbrev :victoire: ✌️ iabbrev :victory: ✌️ iabbrev :v: ✌️ iabbrev :V: ✌️ +" " }}} -" Smiley {{{ +" face emojy {{{ iabbrev :D: 😀 iabbrev :grin: 😀 iabbrev :grinning: 😀 @@ -710,7 +716,10 @@ iabbrev :demon_happy: 😈 iabbrev :devil_happy: 😈 iabbrev :happy_demon: 😈 iabbrev :happy_devil: 😈 -iabbrev :heart: ♥️ +iabbrev :face_palm: 🤦 +iabbrev :facepalm: 🤦 +iabbrev :happy: 😊 +iabbrev :happy_face: 😊 iabbrev :heart_eye: 😍 iabbrev :heart_eyes: 😍 iabbrev :eyes_heart: 😍 @@ -724,7 +733,12 @@ iabbrev :laugh: 😆 iabbrev :laughing: 😆 iabbrev :lol: 😆 iabbrev :mask: 😷 +iabbrev :relieved: 😌 +iabbrev :relieve: 😌 +iabbrev :sad_relieved: 😥 +iabbrev :sad_relieve: 😥 iabbrev :scream: 😱 +iabbrev :smile: 🙂 iabbrev :skull: 🕱 iabbrev :pensive: 😔 iabbrev :smirk: 😏 @@ -735,20 +749,43 @@ iabbrev :sob: 😭 iabbrev :sunglass: 😎 iabbrev :sunglasses: 😎 iabbrev :sweat_smile: 😅 +iabbrev :sweat_cold: 😓 +iabbrev :cold_sweat: 😓 iabbrev :ss: 😅 iabbrev :tired: 😫 iabbrev :tongue: 😛 +iabbrev :sad: 😟 +iabbrev :worry: 😟 +iabbrev :worried: 😟 iabbrev :stuck_out_tongue: 😛 +iabbrev :vomi: 🤮 +iabbrev :vomiting: 🤮 +iabbrev :vomiting_face: 🤮 +iabbrev :face_vomiting: 🤮 +iabbrev :face_vomi: 🤮 iabbrev :wink: 😉 iabbrev :yum: 😋 iabbrev :yummy: 😋 -" + +" }}} +" Symbol emoji {{{ +iabbrev :check: ✔ +iabbrev :error: ✖ +iabbrev :heart: ♥️ + " }}} " Text emoticon {{{ iabbrev :cheerleader: ✽-(ˆ▽ˆ)/✽ ✽\(ˆ▽ˆ)-✽ iabbrev :cheerleaders: ✽-(ˆ▽ˆ)/✽ ✽\(ˆ▽ˆ)-✽ iabbrev :cheer: ✽-(ˆ▽ˆ)/✽ ✽\(ˆ▽ˆ)-✽ +iabbrev :piu: ヽ(°◇° )ノ +iabbrev :rah: (╯°□°)╯ iabbrev :shocked: ⊙_⊙ +iabbrev :shrug: ¯\_(ツ)_/¯ +iabbrev :teddy: ʕ•ᴥ•ʔ +iabbrev :teddy_bear: ʕ•ᴥ•ʔ +iabbrev :bear: ʕ•ᴥ•ʔ + " }}} """"""""""""""""""""""""""""""""""""""""""""""""""" @@ -828,8 +865,6 @@ if !filewritable ($HOME."/.vim/tmp") " Si le répertoire n'existe pas endif set directory=$HOME/.vim/tmp - - """"""""""""""""""""""""""""""""""""""""""""""""""" " Gestion des templates """"""""""""""""""""""""""""""""""""""""""""""""""" @@ -972,17 +1007,22 @@ autocmd BufEnter *.txt set filetype=text " Actions Manuelles """"""""""""""""""""""""""""""""""""""""""""""""""" +" Clipboard {{{ "################################ -" Presse Papier -"################################ +" Toggle paste (to avoid extra indent when pasting) +set pastetoggle=p -set clipboard=autoselect " Le texte sélectionné en mode visuel est collé dans le presse-papier PRIMARY - -" Copier vers le presse papier graphique avec CTRL-C en mode visuel +" Copy +"" In visual, selected text is send to PRIMARY clipboard +set clipboard=autoselect +"" Send selected text (with visual mode) to clipboard with xclip vmap y:call system("xclip -i -selection clipboard", getreg("\"")):call system("xclip -i", getreg("\"")) -" Coller le contenu du presse papier graphique depuis le mode normal -"nmap :call setreg("\"",system("xclip -o -selection clipboard"))p +" Paste +"" Paste clipboard from normal mode +" is used for visual block so avoid to map it +noremap P :call setreg("\"",system("xclip -o -selection clipboard"))p +" }}} "################################ " Lancer un navigateur internet