summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorAdam <56338480+adastx@users.noreply.github.com>2021-10-02 18:08:25 +0200
committerAdam <56338480+adastx@users.noreply.github.com>2021-10-02 19:44:20 +0200
commitcf353a03de1fd6e0536663c8a0be9608cc59e985 (patch)
tree9dd4df3386aec031de8e5bb4655276e0a968afa6 /.config/nvim
parent364ffe228d9682e29d60a7e4dcae3e51441d6143 (diff)
cleanup up vimrc
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/init.vim60
1 files changed, 60 insertions, 0 deletions
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=" "