Overview

Arquivo: Arquivos de configuração do vim
Criado: Dom 17/Out/2010 hs 15:13
Last Change: 2012 Jun 09 20:25:41
autor: Sérgio Luiz Araújo Silva
site: http://vivaotux.blogspot.com
http://www.twitter.com/voye3r


# http://askubuntu.com/questions/7283/vim-7-3-on-ubuntu-10-10
# ppa para o vim 7.3

=Para instalar o vim 7.3 no ubuntu faça=

    apt-add-repository ppa:passy/vim
    apt-get update
    apt-get upgrade

Esta pasta do vim está sob controle de versões do programa mercurial 'hg'
da forma que ele se encontra agora no repositorio:

    https://bitbucket.org/sergio/vimfiles

    Para clonar este repositório faça;

    hg clone ssh://hg@bitbucket.org/sergio/vimfiles .vim

visite estes links:
http://confluence.atlassian.com/display/BITBUCKET/Getting+Started+with+Bitbucket
http://confluence.atlassian.com/display/BITBUCKET/Using+SSH+to+Access+your+Bitbucket+Repository
http://confluence.atlassian.com/display/BITBUCKET/Using+your+Bitbucket+Repository

mova seu bashr e seu vimrc para a pasta do vim

   mv ~/.bashrc ~/.vim/bashrc
   mv ~/.vimrc ~/.vim/vimrc

   Ao configurar o ubuntu one você pode criar uma pasta
   de scripts dentro do ubuntu one e fazer assim:

     ln -s Ubuntu\ one/bin ~/bin


Crie link simbolico:

   ln -s ~/.vim/vimrc ~/.vimrc
   ln -s ~/.vim/bashrc ~/.bashrc

 Para sincronizar a pasta de fontes com o ubuntu one crie uma conta e faça:

   ln -s Ubuntu\ One/fonts/ ~/.fonts

Para gerar a chave do ssh que será usada no upload do mercurial faça:

    # ssh-keygen -t dsa -f ~/.ssh/newkey
    # chmod 600 ~/.ssh/newkey*

# para usuários do ubuntu

    chmod 644 ~/.ssh/newkey.pub
    ssh-agent bash
    ssh-add

To specify it in your SSH config file, edit ~/.ssh/config to look like this:

            Host bb
              Compression yes
              HostName bitbucket.org
              User hg

Upload that new key (/.ssh/newacct.pub) to your BitBucket account,

    https://bitbucket.org/sergio/vimfiles/admin

then, edit
the .hg/hgrc file of the project to tell it to use the new key. While you're at
it, you might as well tell it to use compression as above by adding the -C
switch as well.


    [paths]
    default = ssh://hg@bitbucket.org/sergio/vimfiles
    [ui]
    ; editor usado para commits
    editor = vim
    ssh = ssh  -i ~/.ssh/newkey -C
    username = sergio araujo <voyeg3r@gmail.com>



Depois de exportar a chave ssh para o bitbucket

    hg ci -m "primeiro commit"
    hg push ssh://hg@bitbucket.org/sergio/vimfiles

    ele pedirá a senha da chave do ssh usada na hora do keygen

Para baixar atualizações

  hg pull
  hg update -c


Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.