aboutsummaryrefslogtreecommitdiff
path: root/.vimrc
blob: 2d0470668502f3e1a5a456d898b9e14c52f25c06 (plain)
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
" Vim Plug

call plug#begin('~/.vim/plugged')

"utility
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'tpope/vim-fugitive'
Plug 'preservim/nerdtree'

"accessiblities
Plug 'NLKNguyen/papercolor-theme'
Plug 'itchyny/lightline.vim'

call plug#end()

syntax on
set background=dark
set laststatus=2
set t_Co=256
set encoding=utf-8

let g:lightline = {
      \ 'colorscheme': 'PaperColor',
      \ }
let g:NERDTreeFileLines = 1

colorscheme PaperColor

set shiftwidth=4
set tabstop=4
set expandtab
set smarttab
set autoindent
filetype on
set number
set ruler
set mouse=a
set noswapfile

autocmd FileType c setlocal shiftwidth=2 softtabstop=2 expandtab

nnoremap <leader>n :NERDTreeFocus<CR>
nnoremap <C-n> :NERDTreeToggle<CR>
nnoremap <C-f> :NERDTreeFind<CR>