aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/init.vim
blob: 0ae0bf05acf5355998ea7791620881e16ecb7895 (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
call plug#begin('~/.local/share/nvim/plugged') 

" basic
Plug 'itchyny/lightline.vim'
Plug 'Yggdroot/indentLine'
" Plug 'romgrk/doom-one.vim'
Plug 'MikunoNaka/doom-one.vim'

call plug#end()


" line numbers
set number
set nu

" colorscheme config
colorscheme doom-one
set termguicolors
syntax enable

" remove vim status because lightline replaces it
set noshowmode

" lightline config
" colorscheme wombat for lightline
let g:lightline = {
      \ 'colorscheme': 'darcula'
      \ }



" for tab stop
filetype plugin indent on
" On pressing tab, insert 2 spaces
set expandtab
" show existing tab with 2 spaces width
set tabstop=2
set softtabstop=2
" when indenting with '>', use 2 spaces width
set shiftwidth=2

" mouse support for visual, etc
set mouse=a

" disable word wrapping
set nowrap


" copy/paste from clipboard
" Copy to clipboard
vnoremap  <leader>y  "+y
nnoremap  <leader>Y  "+yg_
nnoremap  <leader>y  "+y
nnoremap  <leader>yy  "+yy

" Paste from clipboard
nnoremap <leader>p "+p
nnoremap <leader>P "+P
vnoremap <leader>p "+p
vnoremap <leader>P "+P