Commits

Sergio Luiz Araujo Silva committed feb1f75

fix vimrc

Comments (0)

Files changed (1)

 " Arquivo de configuração do vim
 " Criado: Qua 02/Ago/2006 hs 09:19
-" Last Change: 2012 Dez 11 17:43:26
+" Last Change: 2012 Dez 11 17:46:20
 " Autor: Sergio Luiz Araujo Silva
 " Codificação: utf-8
 " Site: http://vivaotux.blogspot.com
 command! -nargs=0 GetHistory call s:RedirHistoryCommands()
 " q:22kyG ctrl-w-q p
 
-" função para usar manipular o clipboard +xsel
-" source: http://va.mu/be0a
-" You need xsel to use this script.
-" Install xsel via apt-get.
-function! Paste(clipboard_name)
-  let shellcmd = 'xsel -o --'.a:clipboard_name
-
-" Execute and exit if error occured
-  let clipboard = system(shellcmd)
-  if v:shell_error
-    echo 'Error occured while pasting!'
-    echo v:shell_error
-    return 0
-  endif
-
-  " Insert in paste mode to prevent autoindentation and exit from paste mode
-  execute ":set paste"
-  exe 'normal i'.clipboard
-  execute ":set nopaste"
-
-  " Move cursor back
-  exe "normal ''"
-
-  echo 'Pasted!'
-endfunction
-
-nmap <leader>rp :call Paste('primary')<CR> " Mouse roll clipboard (Roll Paste)
-nmap <leader>tp :call Paste('clipboard')<CR> " Ctrl+Shift+V clipboard (Terminal Paste)
-" -------------------- fim da função para manipular o clipboard -----
 
 " Eesta função guarda o local do cursor em 'save_cursor' e como
 " executa uma substituição armazena antes o ultimo