-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
88 lines (74 loc) · 1.5 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
set encoding=utf-8
scriptencoding utf-8
"
" Begin Vundle
"
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
set rtp+=/usr/bin/fzf
"
" Plugins list handled by Vundle
"
Plugin 'itchyny/lightline.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'leafgarland/typescript-vim'
Plugin 'junegunn/fzf.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'airblade/vim-gitgutter'
call vundle#end()
filetype plugin indent on
"
" End Vundle
"
"
" Lightline plugin config
"
let g:lightline = {
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'gitinfo', 'readonly', 'filename', 'modified' ] ]
\ },
\ 'component_function': {
\ 'gitinfo': 'GitInfo'
\ },
\ 'separator': { 'left': "\ue0b0", 'right': "\ue0b2"},
\ 'subseparator': { 'left': "\ue0b1", 'right': "\ue0b3"}
\ }
function! GitInfo()
return fugitive#head() ==? '' ? '' : "\uf418 " . fugitive#head()
endfunction
set laststatus=2
set noshowmode
"
" End Lightline plugin config
"
set number
set mouse=a
set clipboard=unnamedplus
set hlsearch
set updatetime=100
syntax enable
colorscheme monokai
hi Search ctermbg=DarkGreen
hi Search ctermfg=Black
" Indent config
set expandtab
set shiftwidth=2
set softtabstop=2
set autoindent
"
" Custom commands
"
command RemoveTrailingSpaces %s/\s\+$//e
"
" Custom mappings
"
" <C-Space>: toggle NERDTree
nnoremap <C-@> :NERDTreeToggle<CR>
" <F5>: easy buffers switch
nnoremap <F5> :buffers<CR>:buffer<Space>
" <;>: toggle search pane with :Files
nnoremap ; :Files<CR>