Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " Load plugins
- execute pathogen#infect()
- " Needs explanation, really ?
- syntax on
- filetype plugin indent on
- " Put licence in top of each c,c++ file
- autocmd BufNewFile *.c,*.h,*.hpp,*.cpp 0r ~/.vim/mit.txt
- " Use doxygen flavor of c,c++ syntax
- autocmd BufNewFile,BufRead *.h,*.c set syntax=c.doxygen
- autocmd BufNewFile,BufRead *.hpp,*.cpp set syntax=cpp.doxygen
- " enable clang formater
- autocmd VimEnter * ClangFormatAutoEnable
- " configure ycm
- let g:ycm_global_ycm_extra_conf = '~/.vim/.ycm_extra_conf.py'
- " store .swp and ~ in ~/.vim/
- set undodir=~/.vim/undo
- set backupdir=~/.vim/backup
- " let me see what I type in normal mode
- set showcmd
- " fuzzy search
- set path+=**
- set wildmenu
- " ctags file path
- set tags+=~/.vim/tags/**,~/tags
- " Let see the limitation
- set colorcolumn=80
- " Theming
- set background=dark
- let g:solarized_termtrans=1
- let g:solarized_termcolors=256
- colorscheme solarized
- " Tweaks for browsing
- " - :edit a folder to open a file browser
- " - <CR>/v/t to open in an h-split/v-split/tab
- " - check |netrw-browse-maps| for more mappings
- let g:netrw_banner=0 " disable annoying banner
- let g:netrw_browse_split=4 " open in prior window
- let g:netrw_altv=1 " open splits to the right
- let g:netrw_liststyle=3 " tree view
- "let g:netrw_list_hide=netrw_gitignore#Hide()
- "let g:netrw_list_hide.=',\(^\|\s\s\)\zs\.\S\+'
- " AZERTY
- nnoremap ; .
- " Use system clipboard
- set clipboard=unnamedplus
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement