-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
105 lines (88 loc) · 1.67 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
se nocompatible
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree'
Plug 'Xuyuanp/nerdtree-git-plugin'
"Bundle 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
Plug 'Valloric/YouCompleteMe', { 'do':'./install.sh' }
Plug 'NLKNguyen/papercolor-theme'
Plug 'scrooloose/syntastic'
Plug 'kien/ctrlp.vim'
Plug 'mopp/mopkai.vim'
call plug#end()
"call vundle#end() " required
filetype plugin indent on " required
"""""""""
""" Colors
""""""""""
syntax enable
"set background=dark
colorscheme luna-term
""""""""""""""
""" Saving
""""""""""""""
" set to autoread when a file is changed from the outside
set autoread
" Fast saving
nmap <leader>w :w!<cr>
" :W sudo saves the file
command W w !sudo tee % > /dev/null
""""""""""""""
""" Backspace
"""""""""""""
set backspace=eol,start,indent
set whichwrap+=<,>,h,l
"""""""""""""
""" Folding
""""""""""""
" set wrap
" set textwidth=80
""""""""""""
""" Search
"""""""""""
set ignorecase
set smartcase
set hlsearch
set incsearch
""""""""""""""
""" Display
"""""""""""""
set cmdheight=1
set ruler
set wildmenu
set number
set showmode
set showcmd
set hidden
" show matching brackets
set showmatch
set mat=2
set noerrorbells
" Add a bit of extra margin to the left
" set foldcolumn=1
" set nowrap
" set linebreak
" highlight current line
" set cursorline
""""""""""""
""" Swapping
""""""""""""
set nobackup
set nowb
set noswapfile
""""""""""""
""" Tabbing
"""""""""""
autocmd FileType html setlocal shiftwidth=2 tabstop=2
set expandtab
set smarttab
set shiftwidth=4
set tabstop=4
set softtabstop=4
" autocomplete
set ai
if $COLORTERM == 'gnome-terminal'
set t_Co=256
endif
if $TERM == "xterm-256color"
set t_Co=256
endif