Skip to content

Instantly share code, notes, and snippets.

@hedinasr
Created November 19, 2017 16:56
Show Gist options
  • Save hedinasr/46ecda4e5e971f9ed9bd0a6741619286 to your computer and use it in GitHub Desktop.
Save hedinasr/46ecda4e5e971f9ed9bd0a6741619286 to your computer and use it in GitHub Desktop.
My .vimrc
set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'nathanaelkane/vim-indent-guides'
Plugin 'fatih/vim-go'
Plugin 'tpope/vim-fugitive'
Plugin 'tpope/vim-surround'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'kristijanhusak/vim-hybrid-material'
Plugin 'ajh17/Spacegray.vim'
Plugin 'vim-syntastic/syntastic'
Plugin 'scrooloose/nerdtree'
Plugin 'Xuyuanp/nerdtree-git-plugin'
" Puppet
Plugin 'rodjek/vim-puppet'
" Debug Go
Plugin 'shougo/vimshell'
Plugin 'shougo/vimproc'
Plugin 'sebdah/vim-delve'
Plugin 'ryanoasis/vim-devicons'
" SpaceVim
" Plugin 'ctjhoa/spacevim'
call vundle#end()
filetype plugin indent on
set encoding=utf-8
set mouse=a
" vim-airline
let g:airline#extensions#tabline#enabled = 1
let g:airline_powerline_fonts = 1
let g:airline_theme='hybrid'
let g:hybrid_custom_term_colors = 1
let g:hybrid_reduced_contrast = 1
set t_Co=256
set background=dark
"colorscheme hybrid_material
colorscheme spacegray
let base16colorspace=256 " Access colors present in 256 colorspace
let g:spacegray_underline_search = 1
let g:spacegray_italicize_comments = 1
set expandtab
set tabstop=4
set number
autocmd filetype yaml setlocal st=2 sw=2 sts=2 et
let g:indent_guides_guide_size=1
let g:indent_guides_start_level=2
noremap <silent> <S-h> :IndentGuidesToggle<CR>
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 0
let g:syntastic_check_on_wq = 0
" vim-go
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_structs = 1
let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1
"
" " Syntastic checkers
let g:go_fmt_command = "goimports"
let g:syntastic_go_checkers = ['go']
" "let g:syntastic_mode_map = { 'mode': 'active', 'passive_filetypes': ['go']
" }
let g:go_list_type = "quickfix"
" I hate to hit "\"
let mapleader = ","
" NERDTree
noremap <F4> :NERDTreeToggle<CR>
" Go Breakpoint
noremap <silent> <leader>b :DlvToggleBreakpoint<CR>
noremap <silent> <leader>t :DlvTest<CR>
noremap <silent> <leader>d :DlvDebug<CR>
" Tab navigation
map <C-J> :bnext<CR>
map <C-K> :bprev<CR>
au BufNewFile,BufRead Jenkinsfile setf groovy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment