Skip to content

Instantly share code, notes, and snippets.

@jreisstudio
Last active December 19, 2015 07:49
Show Gist options
  • Save jreisstudio/5921661 to your computer and use it in GitHub Desktop.
Save jreisstudio/5921661 to your computer and use it in GitHub Desktop.
.vimrc
"Configurações do tab para que ele seja substituido por 2 espaços.
set expandtab
set shiftwidth=2
set softtabstop=2
set tabstop=2
"Configurações de exibição de número de linhas.
set ruler
set number
set numberwidth=3
set cpoptions+=n
"Habilitando o mouse
set mouse=a
highlight LineNr term=bold cterm=NONE ctermfg=White ctermbg=DarkGrey
"Atalhos de comandos do NerdTree
map <C-N> :NERDTree <CR>
map <S-L> :NERDTreeFind <CR>
map <C-Up> <C-w>_
map <C-Down> <C-w>=
"Atalhos comandos do Ctags
"vai para o método.
map <S-F> <C-]>
"volta para a classe que chamou
map <S-T> <C-t>
"Vai para o método carregando em uma nova aba.
map <C-B> :sp <CR>:exec("tag ".expand("<cword>"))<CR>
"Exibe lista de métodos com o nome
map <C-F> :exec("ts ".expand("<cword>"))<CR>
"Atalhos de comandos gerais
map s :w <CR>
@jreisstudio
Copy link
Author

  • NERDTREE
    1 -- fazer download http://www.vim.org/scripts/script.php?script_id=1658
    2 -- copiar o conteudo para ~/.vim
  • CTAGS
    1 -- sudo apt-get update
    2 -- sudo apt-get install exuberant-ctags
    3 -- rodar o comando : ctags -R --exclude=.git --exclude=log * na raiz do projeto para ele mapear os metodos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment