Mercurial > ec-dotfiles
comparison rc/vimrc @ 418:c0ac21407903
Disable features on vim basic.
| author | Edho Arief <edho@myconan.net> | 
|---|---|
| date | Wed, 05 Dec 2012 02:33:47 -0800 | 
| parents | 7ceec4404caf | 
| children | f4a29755dd01 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 417:31bc186f8ed3 | 418:c0ac21407903 | 
|---|---|
| 46 autocmd BufRead,BufNewFile *.erb :set ft=eruby ts=2 et list | 46 autocmd BufRead,BufNewFile *.erb :set ft=eruby ts=2 et list | 
| 47 autocmd BufRead,BufNewFile *.scss :set ft=scss | 47 autocmd BufRead,BufNewFile *.scss :set ft=scss | 
| 48 autocmd BufRead,BufNewFile *.coffee :set ft=coffee | 48 autocmd BufRead,BufNewFile *.coffee :set ft=coffee | 
| 49 endif | 49 endif | 
| 50 | 50 | 
| 51 "Restore cursor position | 51 if has('function!') | 
| 52 set viminfo='10,\"100,:20,%,n~/.viminfo | 52 "Restore cursor position | 
| 53 function! ResCur() | 53 set viminfo='10,\"100,:20,%,n~/.viminfo | 
| 54 if line("'\"") <= line("$") | 54 function! ResCur() | 
| 55 normal! g`" | 55 if line("'\"") <= line("$") | 
| 56 return 1 | 56 normal! g`" | 
| 57 endif | 57 return 1 | 
| 58 endfunction | 58 endif | 
| 59 endfunction | |
| 59 | 60 | 
| 60 augroup resCur | 61 augroup resCur | 
| 61 autocmd! | 62 autocmd! | 
| 62 autocmd BufWinEnter * call ResCur() | 63 autocmd BufWinEnter * call ResCur() | 
| 63 augroup END | 64 augroup END | 
| 65 endif | 
