"---------------------------------------------------------------------------
" vim-go 向け設定
" https://github.com/hnakamur/vim-go-tutorial-ja
"
autocmd BufNewFile,BufRead *.go setlocal noexpandtab tabstop=4 shiftwidth=4
let g:go_fmt_command = "goimports"
let g:go_highlight_types = 1
let g:go_highlight_extra_types = 1
LESSCHARSET という 環境変数 を設定することで直った。
LESSCHARSET=utf-8
参考
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
"--------------------------------------------------------------------------- | |
" 全体設定: | |
" | |
" VI互換モードをOFF | |
set nocompatible | |
" ファイルタイプ検出をON | |
filetype on | |
" ファイルタイプに応じたプラグインのロードをON | |
filetype plugin on | |
" ファイルタイプに応じたインデント設定のロードをON |
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
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
location := time.FixedZone("JST", 9*60*60) | |
now := time.Now() |
以下の設定を行う
$env:GIT_PAGER="LESSCHARSET=utf-8 less"
参考
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
package main | |
import ( | |
"flag" | |
"io/ioutil" | |
"log" | |
"os" | |
"path/filepath" | |
"strings" | |
) |
$ du --total --summarize --human-readable .
1.6M .
1.6M 合計
or
$ du -c -s -h .