From ffebc28f1e4654d435d50ea6e70b39a2dcf6e4a2 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 14 Oct 2021 21:33:08 +0200 Subject: Added a simple .vimrc for when neovim is overkill --- .bashrc | 1 - .config/nvim/lua/setup.lua | 1 - .vimrc | 61 ++++++++++++++++++++++++++++++++++++++++++++++ .xinitrc | 8 +++--- 4 files changed, 65 insertions(+), 6 deletions(-) create mode 100644 .vimrc diff --git a/.bashrc b/.bashrc index 82fea83..62a271e 100644 --- a/.bashrc +++ b/.bashrc @@ -125,7 +125,6 @@ alias rm='rm -i' alias gs='git status' alias cs='config status' alias config='/usr/bin/git --git-dir=/home/adam/.cfg/ --work-tree=/home/adam' -alias vim='nvim' # PATH export PATH="$HOME/bin:$PATH" diff --git a/.config/nvim/lua/setup.lua b/.config/nvim/lua/setup.lua index 5d71554..68dba9e 100644 --- a/.config/nvim/lua/setup.lua +++ b/.config/nvim/lua/setup.lua @@ -30,7 +30,6 @@ set.incsearch = true set.backspace= 'indent,eol,start' set.pastetoggle = '' set.confirm = true -set.number = true set.relativenumber = true set.shiftwidth = 4 set.softtabstop = 4 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 diff --git a/.xinitrc b/.xinitrc index b0cf806..43f2cff 100644 --- a/.xinitrc +++ b/.xinitrc @@ -26,10 +26,10 @@ fi # start some nice programs if [ -d /etc/X11/xinit/xinitrc.d ] ; then - for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do - [ -x "$f" ] && . "$f" - done - unset f + for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do + [ -x "$f" ] && . "$f" + done + unset f fi -- cgit v1.2.3-70-g09d2