-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvimrc
76 lines (59 loc) · 1.47 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
"customisations no vi compatibility
set nocompatible
" system turns on filetype. force it to off before pathogen
filetype off
" use pathogen to handle all plugins
call pathogen#runtime_append_all_bundles()
call pathogen#helptags()
" switching it on again
filetype plugin indent on
syntax on
" Set encoding
set encoding=utf-8
" General Settings
set nowrap
set hidden
set nobackup
set nowritebackup
set noswapfile
set wildmenu
set number
" Whitespace stuff
set nowrap
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
" leader key will be comma ( , )
let mapleader = ","
set autochdir
set listchars=tab:▸\ ,eol:¬
" set list
set cpoptions+=$
set laststatus=2
set autoread
" autocomlpete settings
let g:neocomplcache_enable_at_startup = 1
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
" pull all files using ctrl-p plugin
map <Leader>t <c-p>
" dont show --insert-- below because lightline is showing it
set noshowmode
" lightline statusbar config to have git branch info
let g:lightline = {
\ 'colorscheme': 'onehalfdark',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ]
\ },
\ 'component_function': {
\ 'gitbranch': 'fugitive#head'
\ },
\ }
" move between windows easily
map <C-H> <C-W>h
map <C-J> <C-W>j
map <C-K> <C-W>k
map <C-L> <C-W>l
let g:ctrlp_custom_ignore = 'node_modules\|bower_components\|DS_Store\|.git'
colorscheme onehalfdark