-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
74 lines (59 loc) · 1.51 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
" sanity for sourcing
set nocompatible
" file types and indenting
filetype indent plugin on
" enable syntax highlighting
syntax on
" retain indentation
set autoindent
" configure indentation to 4 spaces
set shiftwidth=4
set softtabstop=4
set expandtab
autocmd FileType yaml setlocal shiftwidth=2
autocmd FileType Makefile setlocal noexpandtab
" enable reading configuration from source file
set modeline
set modelines=5
" enable re-using windows and saving buffers for multiple files
set hidden
" improve command line completion
set wildmenu
" show partial commands
set showcmd
" highlight searches
set hlsearch
" Map <C-L> (redraw screen) to also turn off search highlighting until the
" next search
" nnoremap <C-L> :nohl<CR><C-L>
" improve case-sensitivity when searching
set ignorecase
set smartcase
" improve backspace behaviour
set backspace=indent,eol,start
" stop certain movements from always going to the first character of a line
set nostartofline
" show cursor position
set ruler
" always show status bar
set laststatus=2
" visual bell instead of beep
set visualbell
" reset visual bell code
set t_vb=
" enable mouse
"set mouse=a
"set termguicolors
"colorscheme blayu
colorscheme citylights
let g:lightline = {
\ 'colorscheme': 'jellybeans',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ]
\ },
\ 'component_function': {
\ 'gitbranch': 'fugitive#head'
\ },
\ }
map <C-n> :NERDTreeToggle<CR>