mirror of
https://github.com/arnaucube/configs.git
synced 2026-02-10 04:26:41 +01:00
Update vim configs
This commit is contained in:
43
.vimrc
43
.vimrc
@@ -1,3 +1,5 @@
|
|||||||
|
source ~/vimconfigbase.vim
|
||||||
|
|
||||||
call plug#begin(expand('~/.vim/plugged'))
|
call plug#begin(expand('~/.vim/plugged'))
|
||||||
|
|
||||||
Plug 'morhetz/gruvbox'
|
Plug 'morhetz/gruvbox'
|
||||||
@@ -6,47 +8,6 @@ Plug 'morhetz/gruvbox'
|
|||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
" visual
|
|
||||||
syntax on
|
|
||||||
set ruler
|
|
||||||
set number
|
|
||||||
set title
|
|
||||||
set titlestring=nvim-%F
|
|
||||||
set t_Co=256
|
|
||||||
set cursorline
|
|
||||||
set background=dark " for the dark version
|
|
||||||
|
|
||||||
" abbreviations
|
|
||||||
cnoreabbrev W! w!
|
|
||||||
cnoreabbrev Q! q!
|
|
||||||
cnoreabbrev Qall! qall!
|
|
||||||
cnoreabbrev Wq wq
|
|
||||||
cnoreabbrev Wa wa
|
|
||||||
cnoreabbrev wQ wq
|
|
||||||
cnoreabbrev WQ wq
|
|
||||||
cnoreabbrev W w
|
|
||||||
cnoreabbrev Q q
|
|
||||||
cnoreabbrev Qall qall
|
|
||||||
cnoreabbrev Qa qa
|
|
||||||
|
|
||||||
"" Switching windows
|
|
||||||
noremap <C-j> <C-w>j
|
|
||||||
noremap <C-k> <C-w>k
|
|
||||||
noremap <C-l> <C-w>l
|
|
||||||
noremap <C-h> <C-w>h
|
|
||||||
|
|
||||||
"" esc mapping
|
|
||||||
inoremap jk <ESC>
|
|
||||||
tnoremap jk <C-\><C-n>
|
|
||||||
|
|
||||||
" scroll
|
|
||||||
set scrolloff=5 " keep at least 5 lines above/below
|
|
||||||
set sidescrolloff=5 " keep at least 5 lines left/right
|
|
||||||
|
|
||||||
colorscheme torte
|
|
||||||
set background=dark
|
|
||||||
hi statusline ctermfg=234 ctermbg=250
|
|
||||||
hi LineNr ctermfg=246
|
|
||||||
|
|
||||||
|
|
||||||
colorscheme gruvbox
|
colorscheme gruvbox
|
||||||
|
|||||||
@@ -24,7 +24,14 @@ alias lst='exa -l -snew'
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
|
- Vim: `.vimrc`
|
||||||
|
- put `vimconfigbase.vim` into `~/`
|
||||||
|
- put `.vimrc` into `~/`
|
||||||
|
- install https://github.com/junegunn/vim-plug
|
||||||
|
- inside vim, execute: `:PlugInstall`
|
||||||
- NeoVim: `init.vim`
|
- NeoVim: `init.vim`
|
||||||
|
- put `vimconfigbase.vim` into `~/`
|
||||||
- in `.config/nvim/init.vim`
|
- in `.config/nvim/init.vim`
|
||||||
- install https://github.com/junegunn/vim-plug
|
- install https://github.com/junegunn/vim-plug
|
||||||
- inside neovim, execute: `:PlugInstall`
|
- inside neovim, execute: `:PlugInstall`
|
||||||
|
|||||||
20
init.vim
20
init.vim
@@ -1,4 +1,4 @@
|
|||||||
source ~/.vimrc
|
source ~/vimconfigbase.vim
|
||||||
|
|
||||||
call plug#begin(expand('~/.config/nvim/plugged'))
|
call plug#begin(expand('~/.config/nvim/plugged'))
|
||||||
|
|
||||||
@@ -26,6 +26,9 @@ Plug 'majutsushi/tagbar'
|
|||||||
" rainbow parentheses
|
" rainbow parentheses
|
||||||
Plug 'luochen1990/rainbow'
|
Plug 'luochen1990/rainbow'
|
||||||
|
|
||||||
|
" git
|
||||||
|
Plug 'tpope/vim-fugitive'
|
||||||
|
|
||||||
" go
|
" go
|
||||||
Plug 'fatih/vim-go' " Amazing combination of features.
|
Plug 'fatih/vim-go' " Amazing combination of features.
|
||||||
Plug 'godoctor/godoctor.vim' " Some refactoring tools
|
Plug 'godoctor/godoctor.vim' " Some refactoring tools
|
||||||
@@ -48,17 +51,18 @@ Plug 'tomlion/vim-solidity'
|
|||||||
" circom
|
" circom
|
||||||
Plug 'iden3/vim-circom-syntax'
|
Plug 'iden3/vim-circom-syntax'
|
||||||
|
|
||||||
" deoplete
|
"
|
||||||
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
" " deoplete
|
||||||
Plug 'zchee/deoplete-go', {'build': {'unix': 'make'}}
|
" Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
||||||
" neosnippet with deoplete
|
" Plug 'zchee/deoplete-go', {'build': {'unix': 'make'}}
|
||||||
Plug 'Shougo/neosnippet.vim'
|
" " neosnippet with deoplete
|
||||||
Plug 'Shougo/neosnippet-snippets'
|
" Plug 'Shougo/neosnippet.vim'
|
||||||
|
" Plug 'Shougo/neosnippet-snippets'
|
||||||
|
|
||||||
" automatically adjust shiftwidth and expand tab based on current file
|
" automatically adjust shiftwidth and expand tab based on current file
|
||||||
Plug 'tpope/vim-sleuth'
|
Plug 'tpope/vim-sleuth'
|
||||||
|
|
||||||
let g:deoplete#enable_at_startup = 1
|
" let g:deoplete#enable_at_startup = 1
|
||||||
" Plugin deoplete neosnippet key-mappings.
|
" Plugin deoplete neosnippet key-mappings.
|
||||||
" Note: It must be "imap" and "smap". It uses <Plug> mappings.
|
" Note: It must be "imap" and "smap". It uses <Plug> mappings.
|
||||||
imap <C-k> <Plug>(neosnippet_expand_or_jump)
|
imap <C-k> <Plug>(neosnippet_expand_or_jump)
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ cp ./.tmux.conf ~/.tmux.conf
|
|||||||
# vim
|
# vim
|
||||||
echo "setting vim config"
|
echo "setting vim config"
|
||||||
cp ./.vimrc ~/.vimrc
|
cp ./.vimrc ~/.vimrc
|
||||||
|
cp ./vimconfigbase.vim ~/vimconfigbase.vim
|
||||||
|
|
||||||
# neovim
|
# neovim
|
||||||
echo "installing neovim"
|
echo "installing neovim"
|
||||||
|
|||||||
41
vimconfigbase.vim
Normal file
41
vimconfigbase.vim
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
" visual
|
||||||
|
syntax on
|
||||||
|
set ruler
|
||||||
|
set number
|
||||||
|
set title
|
||||||
|
set titlestring=nvim-%F
|
||||||
|
set t_Co=256
|
||||||
|
set cursorline
|
||||||
|
set background=dark " for the dark version
|
||||||
|
|
||||||
|
" abbreviations
|
||||||
|
cnoreabbrev W! w!
|
||||||
|
cnoreabbrev Q! q!
|
||||||
|
cnoreabbrev Qall! qall!
|
||||||
|
cnoreabbrev Wq wq
|
||||||
|
cnoreabbrev Wa wa
|
||||||
|
cnoreabbrev wQ wq
|
||||||
|
cnoreabbrev WQ wq
|
||||||
|
cnoreabbrev W w
|
||||||
|
cnoreabbrev Q q
|
||||||
|
cnoreabbrev Qall qall
|
||||||
|
cnoreabbrev Qa qa
|
||||||
|
|
||||||
|
"" Switching windows
|
||||||
|
noremap <C-j> <C-w>j
|
||||||
|
noremap <C-k> <C-w>k
|
||||||
|
noremap <C-l> <C-w>l
|
||||||
|
noremap <C-h> <C-w>h
|
||||||
|
|
||||||
|
"" esc mapping
|
||||||
|
inoremap jk <ESC>
|
||||||
|
tnoremap jk <C-\><C-n>
|
||||||
|
|
||||||
|
" scroll
|
||||||
|
set scrolloff=5 " keep at least 5 lines above/below
|
||||||
|
set sidescrolloff=5 " keep at least 5 lines left/right
|
||||||
|
|
||||||
|
" colorscheme torte
|
||||||
|
set background=dark
|
||||||
|
hi statusline ctermfg=234 ctermbg=250
|
||||||
|
hi LineNr ctermfg=246
|
||||||
Reference in New Issue
Block a user