Skip to content

Instantly share code, notes, and snippets.

@WilsonRU
Last active June 5, 2024 00:46
Show Gist options
  • Save WilsonRU/f6a7eefec3b168b3d5705cd0a6a489f9 to your computer and use it in GitHub Desktop.
Save WilsonRU/f6a7eefec3b168b3d5705cd0a6a489f9 to your computer and use it in GitHub Desktop.
My vim config
" Configurações Gerais
syntax on
set encoding=utf-8
set nocompatible
filetype on
filetype plugin on
filetype indent on
set number
set shiftwidth=4
set tabstop=4
set nobackup
set nowrap
set incsearch
set showmode
set autoindent
set smartindent
set smartcase
set ruler
set noswapfile
set termguicolors
set laststatus=2
set hlsearch
set nowb
set cursorline
set guioptions-=T
set guioptions-=r
" Ignora arquivo
set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx
" Instalar vim-plug se ainda não estiver instalado
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
" Plugin para o VIM
call plug#begin()
Plug 'fatih/vim-go', { 'tag': '*' }
Plug 'tpope/vim-rails'
Plug 'pangloss/vim-javascript'
Plug 'vim-ruby/vim-ruby'
Plug 'mxw/vim-jsx'
Plug 'plasticboy/vim-markdown'
Plug 'leafgarland/typescript-vim'
Plug 'othree/html5.vim'
Plug 'ekalinin/dockerfile.vim'
Plug 'stanangeloff/php.vim'
Plug 'hdima/python-syntax'
Plug 'vim-latex/vim-latex'
Plug 'leshill/vim-json'
Plug 'jparise/vim-graphql'
Plug 'jwalton512/vim-blade'
Plug 'vim-scripts/bash-support.vim'
Plug 'noahfrederick/vim-laravel'
Plug 'hallison/vim-ruby-sinatra'
Plug 'jessekphillips/d.vim'
Plug 'aming/vim-mason'
Plug 'vim-scripts/fortran.vim'
Plug 'arrufat/vala.vim'
Plug 'joshglendenning/vim-caddyfile'
Plug 'vsushkov/vim-phpcs'
Plug 'scrooloose/syntastic'
Plug 'airblade/vim-gitgutter'
Plug 'vim-pandoc/vim-pandoc-syntax'
Plug 'w0ng/vim-hybrid'
Plug 'mkitt/tabline.vim'
Plug 'lumiliet/vim-twig'
Plug 'skammer/vim-css-color'
Plug 'justinmk/vim-syntax-extra'
Plug 'keith/rspec.vim'
Plug 'sheerun/vim-polyglot'
Plug 'wavded/vim-stylus'
Plug 'tpope/vim-surround'
Plug 'cakebaker/scss-syntax.vim'
Plug 'shawncplus/phpcomplete.vim'
Plug 'APZelos/blamer.nvim'
Plug 'mhinz/vim-janah'
call plug#end()
" Configuração de Tema
set background=dark
colorscheme janah
" Configurações de Plugin
let g:tablineclosebutton=1
let g:gitgutter_enabled=1
let base16colorspace=256
let g:blamer_enabled = 1
let g:blamer_delay = 500
autocmd BufNewFile,BufRead *_foo.rb set syntax=rspec
autocmd InsertEnter * set guicursor=n-v-c:block-Cursor/lCursor
autocmd InsertLeave * set guicursor=n-v-c:ver25-Cursor
" Configurações do atalho de teclado
nnoremap <C-s> <Esc>:w<CR>
nnoremap <C-q> <Esc>:q<CR>
nnoremap <C-f> <Esc>/
nnoremap <C-h> <Esc>:
nnoremap <C-p> <Esc>:tabnew<CR>:e
nnoremap <C-w> <Esc>:tabclose<CR>
nnoremap <C-Right> <Esc>:tabnext<CR>
nnoremap <C-Left> <Esc>:tabprevious<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment