Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Tmux + vim

61 views

Published on

Palestra do dia 08/12/2017 às 14:30 na PHPConference
http://www.phpconference.com.br/trabalho/detalhar-trabalho/id/77

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Tmux + vim

  1. 1. TMUX + VIM para programadores PHP
  2. 2. Mini pesquisa
  3. 3. VIM (Vi IMproved) � um editor de texto multi-plataforma escrito por Bram Moolenaar em novembro de 1991. � um clone do vi, um editor de 1976
  4. 4. VIM (Vi IMproved) Vantagens Leveza Quase onipresen�a Altamente con gur�vel (dot les) Ricamente documentado
  5. 5. VIM (Vi IMproved) Desvantagem Alta curva de aprendizagem
  6. 6. TMUX � um software multiplexador de terminais virtuais escrito por Nicholas Marriott em 2007.
  7. 7. VIM Modes Normal Insert Command Visual
  8. 8. VIM
  9. 9. VIM Plugins Gerenciador de plugins https://github.com/junegunn/vim-plug
  10. 10. VIM Vim Plug Instala��o curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plu
  11. 11. VIM Vim Plug Adicione os plugins no seu ~/.vimrc call plug#begin() Plug 'junegunn/vim-easy-align' call plug#end()
  12. 12. VIM Syntastic Plug 'scrooloose/syntastic', {'do': 'composer global require squiz nnoremap <Leader>s :SyntasticCheck <CR> let g:syntastic_php_checkers=['php', 'phpcs'] let g:syntastic_php_phpcs_args='--standard=PSR2' let g:syntastic_php_phpmd_post_args='codesize,naming'
  13. 13. VIM Sintaxe PHP Plug 'StanAngeloff/php.vim'
  14. 14. VIM Emmet Plug 'mattn/emmet-vim' let g:user_emmet_leader_key='<C-e>
  15. 15. VIM Manual do PHP Plug 'alvan/vim-php-manual'
  16. 16. VIM UltiSnips Plug 'SirVer/ultisnips' Plug 'honza/vim-snippets' let g:UltiSnipsExpandTrigger="<c-y>" let g:UltiSnipsListSnippets="<c-l>" let g:UltiSnipsJumpForwardTrigger="<c-w>" let g:UltiSnipsJumpBackwardTrigger="<c-q>"
  17. 17. VIM set exrc
  18. 18. TMUX ~/.tmux.conf
  19. 19. Panels e Windows
  20. 20. TMUX Pre x = CTRL+b
  21. 21. TMUX Pre x = CTRL+b Panel Tecla Fun��o % Split vertical " Split horizontal setas Navega entre os panels
  22. 22. TMUX Pre x = CTRL+b Window Tecla Fun��o c nova window , renomear window & matar window
  23. 23. TMUX Layouts M = alt pre x M-1 pre x M-2 pre x M-3 pre x M-4 pre x M-5
  24. 24. TMUX + VIM Plug 'benmills/vimux'
  25. 25. TMUX + VIM nmap :call VimuxRunCommand("phpunit " . bufname("%"))
  26. 26. Obrigado Telegram: @vanildo_souto Email: vanildo.toneladas@gmail.com Blog: http://blog.toneladas.com.br

×