Advertisement
Guest User

Untitled

a guest
Feb 15th, 2014
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.94 KB | None | 0 0
  1. filetype on
  2. call pathogen#infect()
  3. call pathogen#helptags()
  4. filetype off
  5. syntax on
  6. filetype plugin indent on
  7. filetype plugin on
  8. set grepprg=grep\ -nH\ $*
  9. filetype indent on
  10. set shellslash
  11. set grepprg=grep\ -nH\ $*
  12. ":set textwidth=80
  13. set mouse=c
  14.  
  15. colorscheme desert
  16. set gfn=Monospace\ 11
  17. set smartindent
  18. set autoindent
  19. set expandtab
  20. set tabstop=4
  21. set shiftwidth=4
  22.  
  23. let g:tex_flavor='latex'
  24. syntax on
  25. let g:Tex_FormatDependency_pdf = 'dvi,ps,pdf'
  26. let g:Tex_CompileRule_ps='dvips -Ppdf -o $*.ps $*.dvi'
  27. let g:Tex_CompileRule_pdf='ps2pdf $*.ps'
  28. let g:Tex_ViewRule_pdf = 'evince'
  29. let g:Tex_DefaultTargetFormat = 'pdf'
  30.  
  31. let g:html_indent_script1 = "inc"
  32. let g:html_indent_style1  = "inc"
  33. let g:html_indent_inctags = "html,body,head,tbody"
  34.  
  35. let g:closetag_html_style=1
  36. "source ~/.vim/scripts/closetag.vim
  37.  
  38. "function AlwaysCD()
  39. "  if bufname("") !~ "^ftp://"
  40. "    lcd %:p:h
  41. "  endif
  42. "endfunction
  43. "autocmd BufEnter * call AlwaysCD()
  44.  
  45. "OmniCppComplete
  46. set tags+=~/.vim/bundle/omnicppcomplete-0.41/cpp_src/cpp
  47. " build tags of your own project with Ctrl-F12
  48. map <C-F12> :!ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q .<CR>
  49. " OmniCppComplete
  50. let OmniCpp_NamespaceSearch = 1
  51. let OmniCpp_GlobalScopeSearch = 1
  52. let OmniCpp_ShowAccess = 1
  53. let OmniCpp_ShowPrototypeInAbbr = 1 " show function parameters
  54. let OmniCpp_MayCompleteDot = 1 " autocomplete after .
  55. let OmniCpp_MayCompleteArrow = 1 " autocomplete after ->
  56. let OmniCpp_MayCompleteScope = 1 " autocomplete after ::
  57. let OmniCpp_DefaultNamespaces = ["std", "_GLIBCXX_STD"]
  58. " automatically open and close the popup menu / preview window
  59. au CursorMovedI,InsertLeave * if pumvisible() == 0|silent! pclose|endif
  60. set completeopt=menuone,menu,longest,preview
  61.  
  62. au BufNewFile,BufRead,BufEnter *.cpp,*.hpp set omnifunc=omni#cpp#complete#Main
  63.  
  64. set sessionoptions=blank,buffers,curdir,folds,globals,help,localoptions,options,resize,tabpages,winsize,winpos
  65.  
  66. " Latex
  67. set iskeyword+=\
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement