comparison rc/vimrc @ 448:e0e8de4135bc

Testing for function never returns true. Replaced with autocmd.
author Edho Arief <edho@myconan.net>
date Wed, 23 Jan 2013 09:40:39 +0700
parents 3022c5d1f8ed
children abb434518e1f
comparison
equal deleted inserted replaced
447:cc72aa61b633 448:e0e8de4135bc
61 autocmd BufRead,BufNewFile *.erb :set ft=eruby 61 autocmd BufRead,BufNewFile *.erb :set ft=eruby
62 autocmd BufRead,BufNewFile *.scss :set ft=scss 62 autocmd BufRead,BufNewFile *.scss :set ft=scss
63 autocmd BufRead,BufNewFile *.coffee :set ft=coffee 63 autocmd BufRead,BufNewFile *.coffee :set ft=coffee
64 endif 64 endif
65 65
66 if has('function') 66 if has('autocmd')
67 "Restore cursor position 67 "Restore cursor position
68 set viminfo='10,\"100,:20,%,n~/.viminfo 68 set viminfo='10,\"100,:20,%,n~/.viminfo
69 function! ResCur() 69 function! ResCur()
70 if line("'\"") <= line("$") 70 if line("'\"") <= line("$")
71 normal! g`" 71 normal! g`"