Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set nocompatible " be iMproved, required
- filetype off " required
- " set the runtime path to include Vundle and initialize
- set rtp+=~/.vim/bundle/Vundle.vim
- call vundle#begin()
- " let Vundle manage Vundle, required
- Plugin 'VundleVim/Vundle.vim'
- " Useful defaults Plugin 'tpope/vim-sensible'
- " " NerdTree
- " Plugin 'scrooloose/nerdtree.git'
- " Plugin 'Xuyuanp/nerdtree-git-plugin'
- Plugin 'ctrlpvim/ctrlp.vim'
- " Git
- Plugin 'tpope/vim-fugitive'
- Plugin 'airblade/vim-gitgutter'
- " Theming
- Plugin 'vim-airline/vim-airline'
- Plugin 'RRethy/vim-illuminate'
- Plugin 'flazz/vim-colorschemes'
- Plugin 'luochen1990/rainbow'
- " Display marks
- Plugin 'kshenoy/vim-signature'
- " Mappings
- Plugin 'tomtom/tcomment_vim.git'
- " Language support
- Plugin 'sheerun/vim-polyglot'
- " Tag management
- Plugin 'ludovicchabant/vim-gutentags'
- Plugin 'majutsushi/tagbar'
- " Asynchronous builds
- Plugin 'tpope/vim-dispatch'
- Plugin 'tpope/vim-vinegar'
- " Auto clang-format ?
- Plugin 'rhysd/vim-clang-format'
- "ALE
- Plugin 'dense-analysis/ale'
- Plugin 'vhdirk/vim-cmake'
- Plugin 'romainl/vim-qf'
- call vundle#end() " required
- filetype plugin indent on " required
- " enable syntax and plugins (for netrw)
- syntax enable
- filetype plugin on
- nnoremap <F10> :TagbarToggle<CR>
- """"""""""""""""""""""""""""""""""""""""""""""""""
- " Indentation options
- """"""""""""""""""""""""""""""""""""""""""""""""""
- " Length of a tab (actual tab character)
- set tabstop=8
- " Use spaces instead of tabs
- set expandtab
- " Length of an indentation level
- set shiftwidth=4
- " Do smart autoindenting when starting a new line, works for C-like programs
- set smartindent
- """"""""""""""""""""""""""""""""""""""""""""""""""
- " Interface options
- """"""""""""""""""""""""""""""""""""""""""""""""""
- " Show line number
- set number
- " Highlight current line in bold with some grey
- set cursorline
- hi CursorLine term=bold cterm=bold guibg=Grey
- " Mark 80th column.
- set colorcolumn=80
- " Enhanced command line completion
- set wildmenu
- " Disable bell completely
- set visualbell
- set t_vb=
- set list
- set listchars=tab:›\ ,eol:¬,trail:⋅,nbsp:¤
- " FINDING FILES:
- set path+=**
- " Colorscheme
- set bg=dark
- " colorscheme onedark
- " Set the minimal amount of lignes under and above the cursor
- " Useful for keeping context when moving with j/k
- set scrolloff=5
- """"""""""""""""""""""""""""""""""""""""""""""""""
- " Folding options
- """"""""""""""""""""""""""""""""""""""""""""""""""
- " Fold lines with equal indent
- set foldmethod=indent
- " Open all folds by default.
- set nofoldenable
- " Only fold function
- set foldnestmax=1
- " Save my folds
- autocmd BufWinLeave *.* mkview
- autocmd BufWinEnter *.* silent loadview
- """"""""""""""""""""""""""""""""""""""""""""""""""
- " Configure path to PWD
- """"""""""""""""""""""""""""""""""""""""""""""""""
- set path=$PWD/**
- """"""""""""""""""""""""""""""""""""""""""""""""""
- """"""""""""""""""""""""""""""""""""""""""""""""""
- " Plugin Configuration """""""""""""""""""""""""""
- """"""""""""""""""""""""""""""""""""""""""""""""""
- """"""""""""""""""""""""""""""""""""""""""""""""""
- """"""""""""""""""""""""""""""""""""""""""""""""""
- " Plugin rainbow
- """"""""""""""""""""""""""""""""""""""""""""""""""
- let g:rainbow_active = 1
- """"""""""""""""""""""""""""""""""""""""""""""""""
- " Plugin A.L.E.
- """"""""""""""""""""""""""""""""""""""""""""""""""
- let g:ale_fix_on_save = 1
- let g:ale_fixers = {'c': ['clang-format'], 'cpp': ['clang-format']}
- let g:ale_linters = {'c': [], 'cpp': []}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement