summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bashrc4
-rw-r--r--.config/greenclip.toml2
-rw-r--r--.config/nvim/init.vim60
3 files changed, 63 insertions, 3 deletions
diff --git a/.bashrc b/.bashrc
index 1742080..3371082 100644
--- a/.bashrc
+++ b/.bashrc
@@ -116,8 +116,8 @@ if ! shopt -oq posix; then
fi
fi
-export EDITOR=vim
-export VISUAL=vim
+export EDITOR=nvim
+export VISUAL=nvim
export PS1='\[\033[35m\]\u@\h\[\033[37m\]:\[\033[0;34m\]\w\[\033[37m\]$ ' # Shell prompt
alias mv='mv -i'
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=<F11>
+set shiftwidth=4
+set softtabstop=4
+set expandtab
+set incsearch
+
+map Y y$
+nnoremap <C-L> :nohl<CR><C-L>
+nnoremap n nzzzv
+nnoremap N Nzzzv
+
+" inoremap kj <Esc>
+inoremap , ,<c-g>u
+inoremap . .<c-g>u
+inoremap [ [<c-g>u
+inoremap ! !<c-g>u
+inoremap ? ?<c-g>u
+
+nnoremap <expr> k (v:count > 5 ? "m'" . v:count : "") . 'k'
+nnoremap <expr> j (v:count > 5 ? "m'" . v:count : "") . 'j'
+nnoremap <SPACE> <Nop>
+
+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=" "