nya-tex

NYA-NYA-TeX

autodetach on
bell_msg "^G"
defkanji utf-8
defencoding utf-8
encoding utf-8 utf-8
defscrollback 10000
escape ^Jj
startup_message off
vbell off
caption always "%{= wb} %-w%{=bu dr}%n %t%{-}%+w %= %{=b wk} [%l] %{=b wb}%y/%m/%d(%D) %{=b wm}%c"
bind n screen
bind h prev
bind j next
bind l windowlist
bind r eval 'echo "Resize window"' 'command -c resize'
bind -c resize ^] command
bind -c resize + eval 'resize +1' 'command -c resize'
bind -c resize - eval 'resize -1' 'command -c resize'
proxy-ssh
Host ssh_server
Hostname xxx.xxx.xxx.xxx
Port 9222
User ec2-user
ForwardAgent yes
Host target_server
Hostname ddd.ddd.ddd.ddd
Port 22
User ec2-user
ProxyCommand ssh -W %h:%p ssh_server

いいの見つけた! -> http://vim-bootstrap.com/

set tabstop=4
set shiftwidth=4
set shiftround
"set expandtab
set autoindent
set smartindent
set hlsearch
set nu
"set paste

hi Search ctermbg=LightGreen
nmap :nohlsearch

"if has(‘syntax’) && (&t_Co > 2)
" syntax on
"endif

"colorscheme molokai
syntax on

autocmd BufNewFile,BufRead *.ja set filetype=php
autocmd BufNewFile,BufRead *.en set filetype=php
"autocmd BufNewFile,BufRead *.tx setfiletype xslate
autocmd BufNewFile,BufRead *.html if search(‘^: ‘) > 0 | set filetype=xslate | endif

" todoリストを簡単に入力する
abbreviate tl – [ ]

" 入れ子のリストを折りたたむ
"setlocal foldmethod=indent

" todoリストのon/offを切り替える
nnoremap :call ToggleCheckbox()

function! ToggleCheckbox()
let l:line = getline(‘.’)
if l:line =~ ‘\-\s\[\s\]’
let l:result = substitute(l:line, ‘-\s\[\s\]’, ‘- [x]’, ”)
call setline(‘.’, l:result)
elseif l:line =~ ‘\-\s\[x\]’
let l:result = substitute(l:line, ‘-\s\[x\]’, ‘- [ ]’, ”)
call setline(‘.’, l:result)
end
endfunction

"autocmd FileType php,ctp :set dictionary=~/.vim/dict/php.dict

hi Comment ctermfg=lightblue
hi perlComment ctermfg=darkgray
hi perlDATA ctermfg=cyan
hi perlPOD ctermfg=darkred

DD

Linuxでダミーファイルを作る

dd if=/dev/zero of=dummy.file  bs=1024M count=1
Written on April 20, 2015