Created
January 27, 2017 15:23
-
-
Save danrjohnson/9f71377d58d97c7ea5691744e710808f to your computer and use it in GitHub Desktop.
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() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required | |
Plugin 'VundleVim/Vundle.vim' | |
" The following are examples of different formats supported. | |
" Keep Plugin commands between vundle#begin/end. | |
" plugin on GitHub repo | |
Plugin 'mhartington/oceanic-next' | |
Plugin 'janko-m/vim-test' | |
Plugin 'tpope/vim-dispatch' | |
Plugin 'hashivim/vim-terraform' | |
Plugin 'fatih/vim-go' | |
Plugin 'vitalk/vim-simple-todo' | |
Plugin 'tpope/vim-speeddating' | |
Plugin 'jdkanani/vim-material-theme' | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
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 | |
syntax enable | |
set t_Co=256 | |
" colorscheme material-theme | |
colorscheme OceanicNext | |
" set background=dark | |
highlight Normal ctermbg=NONE | |
highlight nonText ctermbg=NONE | |
" set smartindent | |
set expandtab | |
set tabstop=4 | |
set shiftwidth=4 | |
" set cursorline | |
set showmatch | |
set backspace=indent,eol,start | |
let mapleader="," | |
let test#strategy = "dispatch" | |
let test#python#runner = 'pytest' | |
let python_highlight_all = 1 | |
autocmd BufNewFile,BufRead *.json set ft=javascript | |
let g:syntastic_go_checks = ['go', 'golint', 'govet'] | |
nmap <silent> <leader>t :TestNearest<CR> | |
nmap <silent> <leader>T :TestFile<CR> | |
nmap <silent> <leader>a :TestSuite<CR> | |
nmap <silent> <leader>l :TestLast<CR> | |
nmap <silent> <leader>g :TestVisit<CR> | |
au FileType go nmap <leader>r <Plug>(go-run) | |
au FileType go nmap <leader>b <Plug>(go-build) | |
au FileType go nmap <leader>t <Plug>(go-test) | |
au FileType go nmap <leader>c <Plug>(go-coverage) | |
au FileType go nmap <Leader>ds <Plug>(go-def-split) | |
au FileType go nmap <Leader>dv <Plug>(go-def-vertical) | |
au FileType go nmap <Leader>dt <Plug>(go-def-tab) | |
au FileType go nmap <Leader>gd <Plug>(go-doc) | |
au FileType go nmap <Leader>gv <Plug>(go-doc-vertical) | |
au FileType go nmap <leader>gi :GoImports<cr> | |
au FileType go nmap <leader>gl :GoLint<cr> | |
"autocmd BufWritePre *.go :GoLint |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment