From cf353a03de1fd6e0536663c8a0be9608cc59e985 Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Sat, 2 Oct 2021 18:08:25 +0200 Subject: cleanup up vimrc --- .config/greenclip.toml | 2 +- .config/nvim/init.vim | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 .config/nvim/init.vim (limited to '.config') diff --git a/.config/greenclip.toml b/.config/greenclip.toml index 9343a4e..696a9b3 100644 --- a/.config/greenclip.toml +++ b/.config/greenclip.toml @@ -4,7 +4,7 @@ enable_image_support = true history_file = "/home/adam/.cache/greenclip.history" image_cache_directory = "/tmp/greenclip" - max_history_length = 20 + max_history_length = 10 max_selection_size_bytes = 0 static_history = [] trim_space_from_selection = true diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim new file mode 100644 index 0000000..ed02ddf --- /dev/null +++ b/.config/nvim/init.vim @@ -0,0 +1,60 @@ +if has('filetype') + filetype indent plugin on +endif + +if has('syntax') + syntax on +endif + +if has('mouse') + set mouse=a +endif + +set hidden +set wildmenu +set showcmd +set hlsearch +set ignorecase +set smartcase +set backspace=indent,eol,start +set autoindent +set nostartofline +set ruler +set laststatus=0 +set confirm +set visualbell +set cmdheight=2 +set number +set relativenumber +set notimeout ttimeout ttimeoutlen=200 +set pastetoggle= +set shiftwidth=4 +set softtabstop=4 +set expandtab +set incsearch + +map Y y$ +nnoremap :nohl +nnoremap n nzzzv +nnoremap N Nzzzv + +" inoremap kj +inoremap , ,u +inoremap . .u +inoremap [ [u +inoremap ! !u +inoremap ? ?u + +nnoremap k (v:count > 5 ? "m'" . v:count : "") . 'k' +nnoremap j (v:count > 5 ? "m'" . v:count : "") . 'j' +nnoremap + +call plug#begin() +Plug 'gruvbox-community/gruvbox' +call plug#end() + +colorscheme gruvbox +highlight CursorLineNr cterm=bold ctermfg=Yellow ctermbg=none +highlight Normal ctermbg=none + +let mapleader=" " -- cgit v1.2.3-70-g09d2