~/.cargo/config
[http]
proxy = "socks5h://127.0.0.1:7891"
[https]
proxy = "socks5h://127.0.0.1:7891"
~/.cargo/config
[http]
proxy = "socks5h://127.0.0.1:7891"
[https]
proxy = "socks5h://127.0.0.1:7891"
package main | |
import ( | |
"fmt" | |
"runtime" | |
) | |
func Sum(start, end int) chan int { | |
c := make(chan int) | |
s := 0 |
echo "let g:spf13_bundle_groups=['general', 'youcompleteme', 'programming', 'go', 'javascript', 'html', 'misc', 'writing' ]" >> ~/.vimrc.before.local
vim +BundleInstall! +qall
" make YCM compatible with UltiSnips (using supertab)
let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
sh <(curl https://j.mp/spf13-vim3 -L)
echo "let g:spf13_bundle_groups=['general', 'neocomplete', 'programming', 'ruby', 'python', 'go', 'javascript', 'html', 'misc', 'writing' ]" >> ~/.vimrc.before.local
sudo apt-get install mingw-w64
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ go build main.go
" General {{{ | |
set nocompatible | |
set nobackup | |
set noswapfile | |
set history=1024 | |
set autochdir | |
set whichwrap=b,s,<,>,[,] | |
set nobomb | |
set backspace=indent,eol,start whichwrap+=<,>,[,] | |
" Vim 的默认寄存器和系统剪贴板共享 |
package main
import (
"fmt"
"strconv"
)
func main() {
startUnicodeStr := "4E00"
https://github.com/fatih/vim-go-tutorial#quick-setup
,r 运行
,b 构建
,t 测试
,c 查看哪些方法没写测试
let mapleader = "," | |
set nocompatible " Disable compatibility to old-time vi | |
set showmatch " Show matching brackets. | |
set ignorecase " Do case insensitive matching | |
set mouse=v " middle-click paste with mouse | |
set hlsearch " highlight search results | |
set tabstop=4 " number of columns occupied by a tab character | |
set softtabstop=4 " see multiple spaces as tabstops so <BS> does the right thing | |
set expandtab " converts tabs to white space |