-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
44 lines (31 loc) · 934 Bytes
/
.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
43
syntax enable
set tabstop=4
set softtabstop=4
set expandtab
set number relativenumber
set cursorline
set colorcolumn=100 " Shows the red line at given column
set wildmenu " visual autocomplete for command menu
set showmatch
set noshowmode " Disabling status line in reference to the inclusion of vim-airline
set incsearch
set hlsearch
set scrolloff=5
set sidescrolloff=5
"Settings for ctrlspace
set nocompatible
set hidden
map <C-n> :NERDTreeToggle<CR>
map <C-p> :CtrlP<CR>
augroup numbertoggle
autocmd!
autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
augroup END
" Vim-Plug script
call plug#begin('~/.vim/plugged')
Plug 'vim-airline/vim-airline'
Plug 'scrooloose/nerdtree'
Plug 'vim-ctrlspace/vim-ctrlspace'
Plug 'sheerun/vim-polyglot'
call plug#end()