Skip to content

Instantly share code, notes, and snippets.

@tckz
Last active January 4, 2016 06:29
Show Gist options
  • Save tckz/3887898 to your computer and use it in GitHub Desktop.
Save tckz/3887898 to your computer and use it in GitHub Desktop.
rcファイル
#hardstatus alwayslastline "%w"
shelltitle "$ |tcsh"
hardstatus alwayslastline "%H: %`%-w%{=b bw}%n %t%{-}%+w"
bind s # reset s key
bind ^U encoding utf8
bind ^E encoding euc
bind ^S encoding sjis
#caption always "%{= wk} %-w%{=bu dr}%n %t%{-}%+w %= %{=b wb}%y/%m/%d(%D) %{=b wb}%c"
defscrollback 1000
#hardstatus alwayslastline "%H: %w"
vbell off
call pathogen#infect()
let loaded_matchparen = 1
set ts=4
set ai
set noexpandtab
set enc=utf-8
set fencs=ucs-bom,utf-8,euc-jp,shift_jis,iso-2022-jp
au BufRead,BufNewFile *.pm set ts=4
au BufRead,BufNewFile *.pl set ts=4
au BufRead,BufNewFile *.yml set ts=2 expandtab
au BufRead,BufNewFile *.py set ts=2 expandtab
filetype on
"nnoremap <silent> <F8> :TlistOpen<CR>
"nnoremap <silent> <F8> :TlistToggle<CR>
set wildmenu
set incsearch
set ignorecase
set smartcase
set nohlsearch
"set laststatus=2
"set statusline=%<%f\ %m%r%h%w%{'['.(&fenc!=''?&fenc:&enc).']['.&ff.']'}%=%l,%c%V%8P
highlight NoneText cterm=NONE ctermfg=black ctermbg=black
"highlight i:StatusLine
set term=builtin_linux
set ttytype=builtin_linux
"colorscheme torte
syntax on
map <F12> <ESC>gt
map <F11> <ESC>gT
autocmd FileType * setlocal formatoptions-=ro
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_structs = 1
let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1
let g:go_fmt_command = "goimports"
let g:go_fmt_fail_silently = 1
let g:tagbar_type_go = {
\ 'ctagstype' : 'go',
\ 'kinds' : [
\ 'p:package',
\ 'i:imports:1',
\ 'c:constants',
\ 'v:variables',
\ 't:types',
\ 'n:interfaces',
\ 'w:fields',
\ 'e:embedded',
\ 'm:methods',
\ 'r:constructor',
\ 'f:functions'
\ ],
\ 'sro' : '.',
\ 'kind2scope' : {
\ 't' : 'ctype',
\ 'n' : 'ntype'
\ },
\ 'scope2kind' : {
\ 'ctype' : 't',
\ 'ntype' : 'n'
\ },
\ 'ctagsbin' : 'gotags',
\ 'ctagsargs' : '-sort -silent'
\ }
nmap <F8> :TagbarToggle<CR>
let g:godef_same_file_in_same_window=1
let g:godef_split=3
nnoremap <F9> :<C-u>tab stj <C-R>=expand('<cword>')<CR><CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment