-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
143 lines (112 loc) · 3.6 KB
/
.vimrc
File metadata and controls
143 lines (112 loc) · 3.6 KB
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"
" ██╗ ██╗██╗███╗ ███╗██████╗ ██████╗
" ██║ ██║██║████╗ ████║██╔══██╗██╔════╝
" ██║ ██║██║██╔████╔██║██████╔╝██║
" ╚██╗ ██╔╝██║██║╚██╔╝██║██╔══██╗██║
" ╚████╔╝ ██║██║ ╚═╝ ██║██║ ██║╚██████╗
" ╚═══╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝
"
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
syntax on
set number
set cursorline
set shiftwidth=2
set tabstop=2
set scrolloff=8
set ignorecase
set showmode
set hlsearch
set showmatch
set history=1000
set encoding=UTF-8
set guifont=MesloLGS\ NF\ Regular
set transparency=0
set blurradius=50
set incsearch
set rnu
set autoread
set splitright
" SOMETHING TO DO WITH BUFFERS
set hidden
let g:jellybeans_overrides = {
\ 'background': { 'guibg': 'none' },
\}
let g:PaperColor_Theme_Options = {
\ 'language': {
\ 'cpp': {
\ 'highlight_standard_library': 1
\ },
\ 'c': {
\ 'highlight_builtins' : 1
\ }
\ },
\ 'theme': {
\ 'default': {
\ 'transparent_background': 1
\ }
\ }
\ }
let mapleader = " "
set t_Co=256
set background=dark
colorscheme PaperColor
" PLUGINS ------------------------------------------------------------ {{{
call plug#begin('~/.vim/plugged')
Plug 'preservim/nerdtree'
Plug 'ryanoasis/vim-devicons'
Plug 'PhilRunninger/nerdtree-visual-selection'
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<tab>"
let g:UltiSnipsJumpBackwardTrigger="<S-Tab>"
let g:UltiSnipsEditSplit="vertical"
call plug#end()
" }}}
" KEYMAPS ------------------------------------------------------------ {{{
nnoremap <leader>fd :NERDTreeToggle<CR>
nnoremap <c-j> <c-w>j
nnoremap <c-k> <c-w>k
nnoremap <c-h> <c-w>h
nnoremap <c-l> <c-w>l
noremap <c-a>j <c-w>+
noremap <c-a>k <c-w>-
noremap <c-a>h <c-w>>
noremap <c-a>l <c-w><
nnoremap <ESC> :nohl<CR>
nnoremap n nzz
nnoremap N Nzz
vnoremap J :m '>+1<CR>gv=gv
vnoremap K :m '<-2<CR>gv=gv
vnoremap <leader>y "+y
nnoremap <leader>y "+y
nnoremap <leader>Y "+Y
nnoremap <C-p> :w <CR>:!clear <CR>:!python3 % <CR>
nnoremap <C-x> :vertical resize 40<CR>
nnoremap <C-c> :w <CR> :!clang++ -Wall -std=c++20 '%' -o '%<' && '%<' <CR>
nnoremap <C-t> :!command xforce test<CR>
nnoremap <C-b> :edit main.cpp<CR>
nnoremap <C-m> :edit output.txt<CR>
nnoremap <C-n> :edit debug.txt<CR>
nnoremap <C-,> :edit req_output.txt<CR>
nnoremap <C-.> :edit input.txt<CR>
nnoremap <leader>f :source ~/.vimrc <CR>
nnoremap <leader><leader>w :vnew input.txt <CR> :new output.txt
" }}}
" STATUS LINE ------------------------------------------------------------ {{{
set statusline=
set statusline+=\ %F\ %M\ %Y\ %R
set statusline+=%=
set statusline+=\ ascii:\ %b\ hex:\ 0x%B\ row:\ %l\ col:\ %c\ percent:\ %p%%
set laststatus=2
" }}}
" VIMSCRIPT -------------------------------------------------------------- {{{
function Geet( name )
echo "hello" .. a:name
echo "world"
endfunction
:command MyCommand echo "Hello World"
:command -nargs=1 Rd put ='println!(\"<args>: {:?}\", <args>);'
:command -nargs=1 Yo call Geet(<args>)
" }}}