Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. " Load plugins
  2. execute pathogen#infect()
  3.  
  4. " Needs explanation, really ?
  5. syntax on
  6. filetype plugin indent on
  7.  
  8. " Put licence in top of each c,c++ file
  9. autocmd BufNewFile *.c,*.h,*.hpp,*.cpp 0r ~/.vim/mit.txt
  10.  
  11. " Use doxygen flavor of c,c++ syntax
  12. autocmd BufNewFile,BufRead *.h,*.c set syntax=c.doxygen
  13. autocmd BufNewFile,BufRead *.hpp,*.cpp set syntax=cpp.doxygen
  14.  
  15. " enable clang formater
  16. autocmd VimEnter * ClangFormatAutoEnable
  17.  
  18. " configure ycm
  19. let g:ycm_global_ycm_extra_conf = '~/.vim/.ycm_extra_conf.py'
  20.  
  21. " store .swp and ~ in ~/.vim/
  22. set undodir=~/.vim/undo
  23. set backupdir=~/.vim/backup
  24.  
  25. " let me see what I type in normal mode
  26. set showcmd
  27.  
  28. " fuzzy search
  29. set path+=**
  30. set wildmenu
  31.  
  32. " ctags file path
  33. set tags+=~/.vim/tags/**,~/tags
  34.  
  35. " Let see the limitation
  36. set colorcolumn=80
  37.  
  38. " Theming
  39. set background=dark
  40. let g:solarized_termtrans=1
  41. let g:solarized_termcolors=256
  42. colorscheme solarized
  43.  
  44. " Tweaks for browsing
  45. " - :edit a folder to open a file browser
  46. " - <CR>/v/t to open in an h-split/v-split/tab
  47. " - check |netrw-browse-maps| for more mappings
  48. let g:netrw_banner=0 " disable annoying banner
  49. let g:netrw_browse_split=4 " open in prior window
  50. let g:netrw_altv=1 " open splits to the right
  51. let g:netrw_liststyle=3 " tree view
  52. "let g:netrw_list_hide=netrw_gitignore#Hide()
  53. "let g:netrw_list_hide.=',\(^\|\s\s\)\zs\.\S\+'
  54.  
  55. " AZERTY
  56. nnoremap ; .
  57.  
  58. " Use system clipboard
  59. set clipboard=unnamedplus
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement