set nocompatible " be improved, required
"disable popup preview window while auto-completing
set completeopt-=preview
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 'gmarik/Vundle.vim'
Plugin 'fatih/vim-go'
" auto complete
Plugin 'Valloric/YouCompleteMe'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
"ycm setting"""""""""""""""""""""""
let g:ycm_autoclose_preview_window_after_insertion=1
"swith to next candidate
let g:ycm_key_list_select_completion = ['<TAB>']
"finish current selection
let g:ycm_key_list_stop_completion = ['Enter']
set completeopt -=preview,menuone
set number
" if no clean, cannot enable paste by using right-click
set mouse=
nnoremap tr :let a=expand("<cword>")<Bar>exec '!translate ' .a<CR>
"Let tab replaced by 2 spaces
set ts=2
set expandtab
set shiftwidth=2
set autoindent
" Enable backspace deleting
set backspace=indent,eol,start
" High light colorful
syntax on
"vsp default to right
set splitright
"map ff to list go funcs in current file
nnoremap ff :let a=expand('%:p')<Bar> exec '!/bin/cp ' .' -rf ' .a .' /tmp/rand862102937387979203.txt' <Bar>exec '!findgo ' .a <CR>:vsp /tmp/go_funcs_0928342.funcs<CR><CR>
let g:go_template_autocreate = 0
filetype plugin indent on
au BufRead,BufNewFile *.go set filetype=go
au bufnewfile *.go so $HOME/.vim/.goheader.txt
au bufnewfile *.go exe "%g/@AUTHOR/s//wangxugang(xgwang@clustertech.com)/"
au bufnewfile *.go exe "%g/@YEAR/s//".strftime("%Y")."/"
let mapleader = ","
nnoremap <leader>b :GoBuild<CR>
inoremap <C-z> <C-x><C-o>
"disable popup preview window while auto-completing
set completeopt-=preview
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 'gmarik/Vundle.vim'
Plugin 'fatih/vim-go'
" auto complete
Plugin 'Valloric/YouCompleteMe'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
"ycm setting"""""""""""""""""""""""
let g:ycm_autoclose_preview_window_after_insertion=1
"swith to next candidate
let g:ycm_key_list_select_completion = ['<TAB>']
"finish current selection
let g:ycm_key_list_stop_completion = ['Enter']
set completeopt -=preview,menuone
set number
" if no clean, cannot enable paste by using right-click
set mouse=
nnoremap tr :let a=expand("<cword>")<Bar>exec '!translate ' .a<CR>
"Let tab replaced by 2 spaces
set ts=2
set expandtab
set shiftwidth=2
set autoindent
" Enable backspace deleting
set backspace=indent,eol,start
" High light colorful
syntax on
"vsp default to right
set splitright
"map ff to list go funcs in current file
nnoremap ff :let a=expand('%:p')<Bar> exec '!/bin/cp ' .' -rf ' .a .' /tmp/rand862102937387979203.txt' <Bar>exec '!findgo ' .a <CR>:vsp /tmp/go_funcs_0928342.funcs<CR><CR>
let g:go_template_autocreate = 0
filetype plugin indent on
au BufRead,BufNewFile *.go set filetype=go
au bufnewfile *.go so $HOME/.vim/.goheader.txt
au bufnewfile *.go exe "%g/@AUTHOR/s//wangxugang(xgwang@clustertech.com)/"
au bufnewfile *.go exe "%g/@YEAR/s//".strftime("%Y")."/"
let mapleader = ","
nnoremap <leader>b :GoBuild<CR>
inoremap <C-z> <C-x><C-o>