Created
February 27, 2018 10:27
-
-
Save ledongthuc/fb9973ad099e20f6502f108cb22856a9 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 | |
filetype off | |
" 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 'scrooloose/nerdtree' | |
Plugin 'Xuyuanp/nerdtree-git-plugin' | |
Plugin 'mileszs/ack.vim' | |
Plugin 'ctrlpvim/ctrlp.vim' | |
Plugin 'majutsushi/tagbar' | |
Plugin 'vim-airline/vim-airline' | |
Plugin 'vim-airline/vim-airline-themes' | |
Plugin 'easymotion/vim-easymotion' | |
Plugin 'scrooloose/syntastic' | |
Plugin 'godlygeek/tabular' | |
Plugin 'SirVer/ultisnips' | |
Plugin 'chiedo/vim-case-convert' | |
" Golang | |
Plugin 'fatih/vim-go' | |
" Plugin 'Shougo/neocomplete.vim' | |
" UI | |
" Plugin 'fatih/molokai' | |
" Plugin 'vim-scripts/mayansmoke' | |
" Plugin 'aunsira/macvim-light' | |
" 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 on | |
set nowrap | |
set number | |
set relativenumber | |
let g:neocomplete#enable_at_startup = 1 | |
set noswapfile | |
map <C-n> :NERDTreeToggle<CR> | |
map <C-b> :TagbarToggle<CR> | |
" autocmd VimEnter * NERDTree | |
" Theme setup | |
colors deus | |
set background=dark | |
" Tab | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
" Special characters | |
set listchars=eol:$,tab:__,trail:~,extends:>,precedes:< | |
set list | |
set clipboard=unnamed | |
" vim-airline | |
let g:airline#extensions#tabline#enabled = 1 | |
" Golang | |
let g:go_fmt_command = "goimports" | |
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>gb <Plug>(go-doc-browser) | |
au FileType go nmap <leader>s <Plug>(go-implements) | |
au FileType go nmap <leader>i <Plug>(go-info) | |
au FileType go nmap <leader>e <Plug>(go-rename) | |
let g:go_highlight_functions = 1 | |
let g:go_highlight_methods = 1 | |
let g:go_highlight_fields = 1 | |
let g:go_highlight_types = 1 | |
let g:go_highlight_operators = 1 | |
let g:go_highlight_build_constraints = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment