Ver Mensaje Individual
  #3 (permalink)  
Antiguo 22/07/2011, 09:55
doylelives
 
Fecha de Ingreso: junio-2008
Ubicación: Capital Federal xD
Mensajes: 1.208
Antigüedad: 15 años, 10 meses
Puntos: 35
Respuesta: vim deshabilitar new line al salvar

si lo guardo con :w
Mi .vimrc
Código Javascript:
Ver original
  1. syntax on
  2. set hlsearch
  3. set tabstop=4
  4. set autoindent
  5. set showcmd
  6. " highlights interpolated variables in sql strings and does sql-syntax
  7. " highlighting. yay
  8. autocmd FileType php let php_sql_query=1
  9. " " does exactly that. highlights html inside of php strings
  10. autocmd FileType php let php_htmlInStrings=1
  11. " " discourages use oh short tags. c'mon its deprecated remember
  12. autocmd FileType php let php_noShortTags=1
  13. " " automagically folds functions & methods. this is getting IDE-like isn't
  14. " it?
  15. autocmd FileType php let php_folding=1
  16. set makeprg=php\ -l\ %
  17. set errorformat=%m\ in\ %f\ on\ line\ %l
  18.  
  19. autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
  20. autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
  21. autocmd FileType css set omnifunc=csscomplete#CompleteCSS
  22. autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags
  23. autocmd FileType php set omnifunc=phpcomplete#CompletePHP
  24.  
  25.  
  26. autocmd BufEnter * cd %:p:h
__________________
I am Doyle please insert code.