Successfully reported this slideshow.

関西Vim勉強会#5 vimrcの書き方

6

Share

Upcoming SlideShare
01 linux basics
01 linux basics
Loading in …3
×
1 of 27
1 of 27

More Related Content

Related Books

Free with a 14 day trial from Scribd

See all

Related Audiobooks

Free with a 14 day trial from Scribd

See all

関西Vim勉強会#5 vimrcの書き方

  1. 1. if has('win32') " or has('win64') " for Windows elif has('mac') " or has('macunix') " for Mac else " for others endif if has('ruby') " using ruby interface endif
  2. 2. if filereadable(expand('~/.vimrc.local')) source ~/.vimrc.local endif
  3. 3. :edit $MYVIMRC :w :source $MYVIMRC
  4. 4. autocmd BufEnter * let b:count += 1
  5. 5. autocmd! autocmd BufEnter * let b:count += 1
  6. 6. augroup vimrc autocmd! augroup END autocmd vimrc BufEnter * let b:count += 1 augroup vimrc autocmd BufLeave * let b:count += 1 augroup END
  7. 7. set guioptions& set guioptions-=T set guioptions-=m
  8. 8. function! Hoge() echo "hoge" endfunction command! Fuga echo "fuga"
  9. 9. nnoremap <Space> :<C-u>echo "hoge"<CR>
  10. 10. set sts=4 sw=4 ts=4 augroup vimrc autocmd Filetype ruby setlocal sts=2 sw=2 ts=2 augroup END
  11. 11. let g:vimrc_local_finish = 1

×