mirror of
https://github.com/arnaucube/configs.git
synced 2026-02-10 04:26:41 +01:00
add .vimrc, update i3 and neovim config, add install-new-server.sh script
This commit is contained in:
51
.vimrc
Normal file
51
.vimrc
Normal file
@@ -0,0 +1,51 @@
|
||||
call plug#begin(expand('~/.vim/plugged'))
|
||||
|
||||
Plug 'scrooloose/nerdtree'
|
||||
map <C-n> :NERDTreeToggle<CR>
|
||||
|
||||
"" Color
|
||||
Plug 'tomasr/molokai'
|
||||
Plug 'morhetz/gruvbox'
|
||||
Plug 'srcery-colors/srcery-vim'
|
||||
|
||||
call plug#end()
|
||||
|
||||
" visual
|
||||
syntax on
|
||||
set ruler
|
||||
set number
|
||||
set title
|
||||
set titlestring=vim-%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
|
||||
|
||||
"" 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 gruvbox
|
||||
Reference in New Issue
Block a user