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'
- " Git
- Plugin 'tpope/vim-fugitive'
- Plugin 'airblade/vim-gitgutter'
- " Theming
- Plugin 'vim-airline/vim-airline'
- Plugin 'RRethy/vim-illuminate'
- Plugin 'flazz/vim-colorschemes'
- " Mappings
- Plugin 'tpope/vim-commentary'
- Plugin 'tpope/vim-surround'
- Plugin 'AndrewRadev/sideways.vim'
- " Language support
- Plugin 'vim-syntastic/syntastic'
- Plugin 'sheerun/vim-polyglot'
- " Tag management
- Plugin 'ludovicchabant/vim-gutentags'
- " Language Servers
- Plugin 'prabirshrestha/async.vim'
- Plugin 'prabirshrestha/vim-lsp'
- " Plugin 'w0rp/ale'
- call vundle#end() " required
- filetype plugin indent on " required
- " enable syntax and plugins (for netrw)
- syntax enable
- filetype plugin on
- """"""""""""""""""""""""""""""""""""""""""""""""""
- " 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
- set cursorline
- " 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 gruvbox
- " 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
- """"""""""""""""""""""""""""""""""""""""""""""""""
- """"""""""""""""""""""""""""""""""""""""""""""""""
- " Plugin Configuration """""""""""""""""""""""""""
- """"""""""""""""""""""""""""""""""""""""""""""""""
- """"""""""""""""""""""""""""""""""""""""""""""""""
- """"""""""""""""""""""""""""""""""""""""""""""""""
- " Plugin syntastic
- """"""""""""""""""""""""""""""""""""""""""""""""""
- let g:syntastic_always_populate_loc_list = 1
- """"""""""""""""""""""""""""""""""""""""""""""""""
- " Plugin vim-lsp
- """"""""""""""""""""""""""""""""""""""""""""""""""
- if executable('clangd')
- augroup lsp_clangd
- autocmd!
- autocmd User lsp_setup call lsp#register_server({
- \ 'name': 'clangd',
- \ 'cmd': {server_info->['clangd']},
- \ 'whitelist': ['c', 'cpp', 'objc', 'objcpp'],
- \ })
- autocmd FileType c setlocal omnifunc=lsp#complete
- augroup end
- endif
- " let g:lsp_log_verbose = 1
- " let g:lsp_log_file = expand('~/vim-lsp.log')
- """"""""""""""""""""""""""""""""""""""""""""""""""
- " Plugin sideways
- """"""""""""""""""""""""""""""""""""""""""""""""""
- nnoremap <c-h> :SidewaysLeft<cr>
- nnoremap <c-l> :SidewaysRight<cr>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement