-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
57 lines (49 loc) · 1.07 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
set nocompatible
set showcmd
set number
set linebreak
set textwidth=100
set showmatch
set visualbell
set hlsearch
set smartcase
set ignorecase
set incsearch
set autoindent
set shiftwidth=2
set smartindent
set smarttab
set softtabstop=2
set tabstop=2
set noexpandtab
set ruler
set undolevels=1000
set backspace=indent,eol,start
filetype off " required
set encoding=UTF-8
call plug#begin('~/.vim/plugged')
" Plug 'ryanoasis/vim-devicons' " Does not work properly on Ubuntu
Plug 'sheerun/vim-polyglot'
Plug 'w0rp/ale'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
call plug#end() " required
"Search for files inside project
nnoremap <C-p> :Files<CR>
nnoremap <C-f> :Rg<CR>
" Navigation for vim windows
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
autocmd vimenter * NERDTree
" Lightline
set laststatus=2
if !has('gui_running')
set t_Co=256
endif
let g:lightline = {
\ 'colorscheme': 'wombat',
\ }