summaryrefslogtreecommitdiff
path: root/.config/.vimrc
blob: 55f99089f1941d0e45cf60cda5919c4378411258 (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
source $VIMRUNTIME/defaults.vim

let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
if empty(glob(data_dir . '/autoload/plug.vim'))
  silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs  https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
  autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif

call plug#begin()
Plug '4513ECHO/vim-colors-hatsunemiku'
call plug#end()

set termguicolors
colorscheme hatsunemiku

"set shiftwidth=4
"set smarttab
"set expandtab
"set tabstop=4
"set softtabstop=0

set tabstop=8
set shiftwidth=8
set softtabstop=8
set textwidth=80
set noexpandtab

set nowrap
set cindent
"set cinoptions=(,{,!,l1
set cinoptions=:0,l1,t0,g0,(0

let g:netrw_banner=0

set makeprg=./build.sh

let mapleader=","

map <leader>e  :Ex<cr>
map <leader>ve :vs<bar>wincmd l<bar>Ex<cr>
map <leader>t  :vertical rightbelow terminal<space>
map <leader>m  :make!<cr>:vertical rightbelow copen<cr><cr>:wincmd =<cr>
map <leader>n  :cnext<cr>
map <leader>z  :cd %:p:h<cr>
map <leader>q  :q<cr>
map <leader>b  :buffers<cr>:b<space>

map <leader>y "+y
map <leader>p "+p

map <leader>cm I/*<space><esc>A<space>*/<esc>0
map <leader>cd ^dwA<backspace><backspace><backspace><esc>0