-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
42 lines (34 loc) · 1.29 KB
/
.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
" Searching
set ignorecase " case insensitive searching
set smartcase " case-sensitive if expression contains a capital letter
set hlsearch " highlight search results
set incsearch " set incremental search, like modern browsers
set nolazyredraw " don't redraw while executing macros
" Appearance
set background=dark " set background
set laststatus=2 " show the status line all the time
set number " show line numbers
set relativenumber " turn on relative numbering
set autoindent " automatically set indent of new lines
set ttyfast " faster redrawing
set title " set terminal title
set showmatch " show matching braces
" Tab control
set expandtab " insert spaces rather than tabs for <Tab>
set tabstop=4 " visible width of tabs
set shiftwidth=4 " number of spaces to use for (un)indent
set softtabstop=4 " edit as if the tabs are 4 characters
" Enable clang-format
map <C-K> :pyf /usr/share/clang/clang-format.py<cr>
imap <C-K> <c-o>:pyf /usr/share/clang/clang-format.py<cr>
syntax on
autocmd FileType cpp highlight OverLength ctermbg=red ctermfg=white guibg=#592929
autocmd FileType cpp match OverLength /\%81v.\+/
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'Valloric/YouCompleteMe'
call vundle#end()
filetype plugin indent on