blob: d929aab80077377a75b38758f78ee6f1aa447b12 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
set nocompatible
filetype plugin indent on
syntax enable
set encoding=utf-8
set laststatus=2
set statusline=%l
set statusline+=<<
set statusline+=\ %f\ %*
set statusline+=>>
set statusline+=\ %2*\ %F
set statusline+=\ %m
set statusline+=%=
set statusline+=\ %1*\ <<
set statusline+=\ Line:\ %l
set statusline+=\ Col:\ %c
set statusline+=\ :::\ %n
set statusline+=\ >>
set number
set relativenumber
set numberwidth=4
highlight LineNr ctermfg=DarkGray guifg=#3a3a3a
highlight SignColumn ctermbg=NONE guibg=NONE
highlight LineNr cterm=italic gui=italic
set tabstop=4
set shiftwidth=4
set expandtab
set smartindent
set nowrap
set incsearch
set hlsearch
set ignorecase
set smartcase
set mouse=a
set scrolloff=5
set cursorline
set noshowmode
set shortmess+=I
set laststatus=2
let mapleader = "\<Space>"
nnoremap <leader>w :w<CR>
nnoremap <leader>q :q<CR>
nnoremap <silent> <leader>h :nohlsearch<CR>
nnoremap <leader>n :set relativenumber!<CR>
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
call plug#begin('~/.vim/plugged')
Plug 'preservim/nerdtree'
Plug 'itchyny/lightline.vim'
Plug 'tpope/vim-commentary'
Plug 'airblade/vim-gitgutter'
call plug#end()
nnoremap <leader>t :NERDTreeToggle<CR>
|