=Vim

VimでCppコンパイル&実行

F6で。 .vimrc "cpp function! s:CC() exe "! cc -o %.out %" exe "! %.out" :endfunction command! CC call <SID>CC() map <F6> :call <SID>CC()<CR></cr></sid></f6></sid>

Vim tips

オートインデント無効 ペーストするときは必須 :set paste 逆タブキー インデントを浅くする。 VisualStudioなどの「Shift+Tab」移動。 'inverse tab nmap <S-Tab> << imap <S-Tab> <Esc><</esc></s-tab></s-tab>

Vim MBPの.vimrcメモ

F5で&ft(RubyとかPython)のスクリプト実行とか :set autoindent :set number :set showmode :set title :set showcmd :set showmatch :set laststatus=2 :syntax on :set smartindent :set expandtab :set ts=4 sw=4 sts=0 :set ignorecase :set smartcase :…