From 145d1446bbf5b936cf64f1ed5db9920a59c13227 Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Thu, 14 Oct 2021 21:33:08 +0200 Subject: Added a simple .vimrc for when neovim is overkill --- .vimrc | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .vimrc (limited to '.vimrc') diff --git a/.vimrc b/.vimrc new file mode 100644 index 0000000..8e50564 --- /dev/null +++ b/.vimrc @@ -0,0 +1,61 @@ +if has('filetype') + filetype indent plugin on +endif + +if has('syntax') + syntax on +endif + +if has('mouse') + set mouse=a +endif + +set nocompatible +set hidden +set wildmenu +set wildignorecase +set fileignorecase +set showcmd +set hlsearch +set incsearch +set ignorecase +set smartcase +set backspace=indent,eol,start +set autoindent +set ruler +set laststatus=0 +set confirm +set visualbell +set cmdheight=2 +set relativenumber +set notimeout ttimeout ttimeoutlen=200 +set pastetoggle= +set shiftwidth=4 +set softtabstop=4 +set expandtab +set noswapfile +set nowrap + +map Y y$ +nnoremap :nohl +nnoremap n nzzzv +nnoremap N Nzzzv +inoremap kj +tnoremap kj + +inoremap , ,u +inoremap . .u +inoremap [ [u +inoremap ! !u +inoremap ? ?u + +let mapleader=" " +nnoremap h :wincmd h +nnoremap j :wincmd j +nnoremap k :wincmd k +nnoremap l :wincmd l + +colorscheme default +highlight CursorLine cterm=NONE ctermbg=NONE ctermfg=NONE guibg=NONE guifg=NONE +highlight CursorLineNr cterm=bold ctermbg=NONE ctermfg=Yellow +set cursorline -- cgit v1.2.3-70-g09d2