Last active
August 15, 2016 22:17
-
-
Save paulojeronimo/03e84c59ab6a90e0b742c4504ca983b7 to your computer and use it in GitHub Desktop.
Scripts para instalação e configuração do Vim (testados num Fedora 23)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" let Vundle manage Vundle, required | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'Valloric/YouCompleteMe' | |
Plugin 'ternjs/tern_for_vim' | |
Plugin 'kchmck/vim-coffee-script' | |
Plugin 'digitaltoad/vim-pug' | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
syntax enable | |
filetype plugin indent on " required | |
" To ignore plugin indent changes, instead use: | |
"filetype plugin on | |
" Brief help | |
" :PluginList - lists configured plugins | |
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate | |
" :PluginSearch foo - searches for foo; append `!` to refresh local cache | |
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal | |
" | |
" see :h vundle for more details or wiki for FAQ | |
" Put your non-Plugin stuff after this line | |
autocmd FileType sh,ruby,yaml,vim,jade setl sw=2 ts=2 et | |
" ternjs/tern_for_vim:begin | |
" Enable keyboard shortcuts | |
let g:tern_map_keys=1 | |
" show argument hints | |
let g:tern_show_argument_hints='on_hold' | |
" ternjs/tern_for_vim:end | |
" kchmck/vim-coffee-script:begin | |
autocmd BufNewFile,BufReadPost *.coffee setl ts=2 sw=2 et | |
" kchmck/vim-coffee-script:end | |
" https://docs.oseems.com/general/application/vim/auto-complete-html | |
autocmd FileType html set omnifunc=htmlcomplete#CompleteTags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Instalação do Vundle (plugin do Vim) | |
mkdir -p ~/.vim/bundle/Vundle.vim && \ | |
git clone https://github.com/VundleVim/Vundle.vim.git $_ | |
# Ajuste do .vimrc | |
cp .vimrc ~/ | |
# Carregamento de plugins do Vim | |
vim +PluginInstall +qa | |
# Configuração do YouCompleteMe (plugin do Vim) | |
cd ~/.vim/bundle/YouCompleteMe && ./install.py --tern-completer | |
# Configuração do tern (plugin do Vim) | |
source ~/.nvm/nvm.sh | |
cd ~/.vim/bundle/tern_for_vim && npm install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment