-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.vim
87 lines (69 loc) · 1.26 KB
/
init.vim
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
" nvim config
" plugins
call plug#begin('~/.vim/plugged')
Plug 'gruvbox-community/gruvbox'
Plug 'itchyny/lightline.vim'
Plug 'preservim/tagbar'
Plug 'preservim/nerdtree', {'on': 'NERDTreeToggle'}
call plug#end()
" syntax
syntax enable
let python_higlight_all=1
" tabs and indentation
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set smartindent
set autoindent
" commands
set showcmd
set wildmenu
" searching
set incsearch
set ignorecase
set nohlsearch
" gui
set nowrap
set showmatch
" set cursorline
set number
set relativenumber
set colorcolumn=80
set signcolumn=yes
" set linebreak
" set wrap
" motion
set scrolloff=6
nnoremap j gj
nnoremap k gk
" behavior
set hidden
set noerrorbells
set noswapfile
set nobackup
" status line
let g:lightline={'colorscheme':'gruvbox'}
" colors
colorscheme gruvbox
" set leader
let mapleader=";"
" non recursive remap
nnoremap <silent> <leader>tr :NERDTreeToggle<CR>
nnoremap <silent> <leader>tb :TagbarToggle<CR>
" tagbar autofocus
let g:tagbar_autofocus = 1
" enable mousing
set mouse=a
" remove visual, cmd, and normal flag
set noshowmode
" help and options
" :h or :help <thing>
" :options
" :q to close page
" source
" :source init.vim
" plugins
" :PlugInstall
" :PlugClean
" https://github.com/junegunn/vim-plug