Update xclip and emojis
This commit is contained in:
		
							parent
							
								
									62e21d1614
								
							
						
					
					
						commit
						abd5f0c50e
					
				
							
								
								
									
										74
									
								
								vimrc
								
								
								
								
							
							
						
						
									
										74
									
								
								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=<F11>                                  " é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 <Enter> O<ESC> | |||
| noremap <F2> :set hlsearch!<cr>:set hlsearch?<cr> | ||||
| " Activer/désactiver la correction avec F3 | ||||
| "noremap <F3> :set spell!<cr>:set spell?<cr> | ||||
| " Activer/désactiver le mode collage | ||||
| noremap <F5> :set paste!<cr>:set paste?<cr> | ||||
| 
 | ||||
| " Remap de Echap sur jj | ||||
| " Esc mapping in insert mode | ||||
| imap jj <ESC> | ||||
| imap àà <ESC> | ||||
| imap <C-j> <ESC> | ||||
| 
 | ||||
| """""""""""""""""""""""""""""""""""""""""""""""" | ||||
|  | @ -523,6 +521,13 @@ nmap <leader>t :TagbarToggle<CR> | |||
| " Change preview hotkey to <leader>mm | ||||
| let vim_markdown_preview_hotkey='<leader>mm' | ||||
| 
 | ||||
| " Use qutebrowser as default browser | ||||
| let vim_markdown_preview_browser='qutebrowser' | ||||
| 
 | ||||
| " Additionnal hotkey to run grip | ||||
| nmap <leader>M :w!<cr>:!grip $(echo %) --export --no-inline ~/.vim/tmp/grip.preview.html<cr>:!qutebrowser ~/.vim/tmp/grip.preview.html<cr><cr> | ||||
| 
 | ||||
| 
 | ||||
| " 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=<leader>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 <C-c> y:call system("xclip -i -selection clipboard", getreg("\""))<CR>:call system("xclip -i", getreg("\""))<CR> | ||||
| " Coller le contenu du presse papier graphique depuis le mode normal | ||||
| "nmap <C-v> :call setreg("\"",system("xclip -o -selection clipboard"))<CR>p | ||||
| 
 | ||||
| " Paste | ||||
| "" Paste clipboard from normal mode | ||||
| " <C-v> is used for visual block so avoid to map it | ||||
| noremap <leader>P :call setreg("\"",system("xclip -o -selection clipboard"))<CR>p | ||||
| " }}} | ||||
| 
 | ||||
| "################################ | ||||
| " Lancer un navigateur internet | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue