-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
92 lines (76 loc) · 1.92 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
function" vundler
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
" My bundles here:
"
" original repos on GitHub
Bundle "itchyny/lightline.vim"
Bundle "kien/ctrlp.vim"
Bundle "jszakmeister/vim-togglecursor"
Bundle "tpope/vim-surround"
Bundle "machakann/vim-highlightedyank"
Bundle "airblade/vim-gitgutter"
Bundle "tpope/vim-endwise"
Bundle "tpope/vim-repeat"
Bundle "pangloss/vim-javascript"
Bundle "tpope/vim-commentary"
Bundle "jiangmiao/auto-pairs"
Bundle "vim-ruby/vim-ruby"
Bundle "joshdick/onedark.vim"
Bundle "gertjanreynaert/cobalt2-vim-theme"
set nu
set relativenumber
set backspace=indent,eol,start
set mouse=a
syntax enable
set colorcolumn=81
inoremap jk <ESC>
set noswapfile
set clipboard=unnamed
" Split navigation
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
set splitbelow
set splitright
let mapleader = ","
:set guifont=Inconsolata-dz\ for\ Powerline:h13
" auto load files if vim detects they have been changed outside of Vim
set autoread
" colours
let g:onedark_color_overrides = {
\ "black": {"gui": "#002833", "cterm": "235", "cterm16": "0" }
\}
set termguicolors
colorscheme onedark
" airline
let g:airline_powerline_fonts = 1
set laststatus=2
set encoding=utf-8
set cursorline
let g:togglecursor_default = 'block'
let g:togglecursor_insert = 'line'
let g:togglecursor_replace = 'underline'
let g:togglecursor_leave = 'line'
let g:lightline = {
\ 'component': {
\ 'readonly': '%{&readonly?"":""}',
\ },
\ 'separator': { 'left': '', 'right': '' },
\ 'subseparator': { 'left': '', 'right': '' }
\ }
map y <Plug>(highlightedyank)
let g:highlightedyank_highlight_duration = 100
set noshowmode
" Softtabs, 2 spaces
set tabstop=2
set shiftwidth=2
set shiftround
set expandtab
let g:ycm_min_num_of_chars_for_completion = 99