-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
105 lines (80 loc) · 2.1 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
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
set nocompatible
set number
set relativenumber
" Plugins
call plug#begin()
Plug 'tpope/vim-fugitive'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'tomasiser/vim-code-dark'
Plug 'vim-scripts/DoxygenToolkit.vim'
Plug 'vim-airline/vim-airline'
Plug 'tpope/vim-sleuth'
call plug#end()
filetype plugin indent on
syntax on
set smartindent
set autoindent
set tabstop=4
set shiftwidth=4
set expandtab
let g:mkdp_auto_start = 0
" Color scheme: VSCode Dark (the irony)
colorscheme codedark
" Nums on/off custom command
command! NumsOff set nonumber norelativenumber
command! NumsOn set number relativenumber
" Bring some bash aliases to vim!
command! Edtvrc tabnew ~/.vimrc
command! Evrc e ~/.vimrc
command! Relvrc source ~/.vimrc
command! Rvrc source ~/.vimrc
command! Edtbrc tabnew ~/.bashrc
command! Ebrc e ~/.bashrc
command! Edtba tabnew ~/configs/.bash_aliases
command! Eba e ~/configs/.bash_aliases
command! Edtuba tabnew ~/.config/bash-configs/useraliases
command! Euba e ~/.config/bash-configs/useraliases
command! Edtbf tabnew ~/configs/.bash_functions
command! Ebf e ~/configs/.bash_functions
command! Edtubf tabnew ~/.config/bash-configs/userfunctions
command! Eubf e ~/.config/bash-configs/userfunctions
command! Edtkc tabnew ~/.config/kitty/kitty.conf
command! Ekc e ~/.config/kitty/kitty.conf
command! Edti3 tabnew ~/.config/i3/config
command! Ei3 e ~/.config/i3/config
command! Edtpyreq tabnew ./requirements.txt
command! Epyreq e ./requirements.txt
command! Dnrun !dotnet run -v n
command! Dnrunnb !dotnet run -v n --no-build
command! Dnbuild !dotnet build -v n
command! Dnbld !dotnet build -v n
command! Dnfmt !dotnet format
command! Care !love .
command! Black !black %
command! Pylint !pylint %
command! Shck !shellcheck %
command! Chx !chmod +x %
command! Go !./%
command! W w
command! Q q
command! WQ wq
command! QA qa
command! WQA wqa
" Fix background
set t_ut=
set backspace=indent,eol,start
set autoread
" Mouse
set mouse=a
" A bunch of useless settings
set hls
set ruler
set cursorline
set cursorcolumn
set visualbell
set title titlestring=Editing\ %F\ %m%r
set tbs
set mousef
set scf
set mh
set more