summaryrefslogtreecommitdiff
path: root/.config/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.config/.vimrc')
-rw-r--r--.config/.vimrc41
1 files changed, 41 insertions, 0 deletions
diff --git a/.config/.vimrc b/.config/.vimrc
new file mode 100644
index 0000000..ef534d5
--- /dev/null
+++ b/.config/.vimrc
@@ -0,0 +1,41 @@
+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 'morhetz/gruvbox'
+Plug '4513ECHO/vim-colors-hatsunemiku'
+Plug 'srcery-colors/srcery-vim'
+
+call plug#end()
+
+" For gruvbox: set background=dark
+set termguicolors
+colorscheme hatsunemiku
+
+set nowrap
+set clipboard=unnamedplus
+
+set cindent
+set cinoptions=(,{,!,l1
+
+set shiftwidth=4 smarttab
+set expandtab
+set tabstop=4 softtabstop=0
+
+let g:netrw_banner=0
+
+map \e :Ex<CR>
+map \ve :vs<bar>wincmd l<bar>Ex<CR>
+map \t :vertical rightbelow terminal
+map \m :make!<CR>:vertical rightbelow copen<bar>wincmd =<CR>
+map \b :vertical rightbelow terminal ./build.sh<CR>
+map \n :cnext<CR>
+map \p :prev<CR>
+map \c :cd %:p:h<CR>
+map \q :q<CR>