Add vimrc.basic.

This commit is contained in:
Faerbit 2020-04-03 21:28:43 +02:00
parent 00c34d6545
commit e3d971046d

28
vimrc.basic Normal file
View File

@ -0,0 +1,28 @@
"Split view if multiple files are opened
if argc() == 2
autocmd VimEnter * nested silent vertical all
endif
set background=dark
set autoindent
set number
set tabstop=4
set softtabstop=4
set shiftwidth=4
set incsearch
set hlsearch
set expandtab
set autowrite
set cmdheight=2
set scrolloff=7
set wildmode=longest,list,full
set wildmenu
set wildignorecase
set ignorecase
set smartcase
set ruler
syntax on
filetype plugin indent on
imap jk <Esc>
map <F2> :set nonumber!<CR>
set pastetoggle=<F3>