Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- filetype on
- call pathogen#infect()
- call pathogen#helptags()
- filetype off
- syntax on
- filetype plugin indent on
- filetype plugin on
- set grepprg=grep\ -nH\ $*
- filetype indent on
- set shellslash
- set grepprg=grep\ -nH\ $*
- ":set textwidth=80
- set mouse=c
- colorscheme desert
- set gfn=Monospace\ 11
- set smartindent
- set autoindent
- set expandtab
- set tabstop=4
- set shiftwidth=4
- let g:tex_flavor='latex'
- syntax on
- let g:Tex_FormatDependency_pdf = 'dvi,ps,pdf'
- let g:Tex_CompileRule_ps='dvips -Ppdf -o $*.ps $*.dvi'
- let g:Tex_CompileRule_pdf='ps2pdf $*.ps'
- let g:Tex_ViewRule_pdf = 'evince'
- let g:Tex_DefaultTargetFormat = 'pdf'
- let g:html_indent_script1 = "inc"
- let g:html_indent_style1 = "inc"
- let g:html_indent_inctags = "html,body,head,tbody"
- let g:closetag_html_style=1
- "source ~/.vim/scripts/closetag.vim
- "function AlwaysCD()
- " if bufname("") !~ "^ftp://"
- " lcd %:p:h
- " endif
- "endfunction
- "autocmd BufEnter * call AlwaysCD()
- "OmniCppComplete
- set tags+=~/.vim/bundle/omnicppcomplete-0.41/cpp_src/cpp
- " build tags of your own project with Ctrl-F12
- map <C-F12> :!ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q .<CR>
- " OmniCppComplete
- let OmniCpp_NamespaceSearch = 1
- let OmniCpp_GlobalScopeSearch = 1
- let OmniCpp_ShowAccess = 1
- let OmniCpp_ShowPrototypeInAbbr = 1 " show function parameters
- let OmniCpp_MayCompleteDot = 1 " autocomplete after .
- let OmniCpp_MayCompleteArrow = 1 " autocomplete after ->
- let OmniCpp_MayCompleteScope = 1 " autocomplete after ::
- let OmniCpp_DefaultNamespaces = ["std", "_GLIBCXX_STD"]
- " automatically open and close the popup menu / preview window
- au CursorMovedI,InsertLeave * if pumvisible() == 0|silent! pclose|endif
- set completeopt=menuone,menu,longest,preview
- au BufNewFile,BufRead,BufEnter *.cpp,*.hpp set omnifunc=omni#cpp#complete#Main
- set sessionoptions=blank,buffers,curdir,folds,globals,help,localoptions,options,resize,tabpages,winsize,winpos
- " Latex
- set iskeyword+=\
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement