diff options
author | davidovski <david@davidovski.xyz> | 2021-10-09 22:20:41 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2021-10-09 22:20:41 +0100 |
commit | 01ced0b7ce47d279789efb2dc70d1cd009ac56ad (patch) | |
tree | 6ece604b8ae3476d2d70c9c9d42f86fe607990da /config/vim/vimrc |
initial commit
Diffstat (limited to 'config/vim/vimrc')
-rw-r--r-- | config/vim/vimrc | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/config/vim/vimrc b/config/vim/vimrc new file mode 100644 index 0000000..bddd690 --- /dev/null +++ b/config/vim/vimrc @@ -0,0 +1,34 @@ +set viminfo+=n~/.config/vim/viminfo +set runtimepath+=~/.config/vim,~/.config/vim/after +set autoindent +set wrap +set linebreak +set mouse=a +set autowrite + +set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab + +set nocompatible + +set spelllang=en_gb + +set number relativenumber + +syntax on + +nnoremap <silent> <C-l> :nohl<CR><C-l> + +inoremap { {}<ESC>ha +inoremap [ []<ESC>ha +inoremap " ""<ESC>ha +inoremap ( ()<ESC>ha + +inoremap <C-space> <C-n> + +inoremap <C-down> <C-E> +inoremap <C-up> <C-Y> + +nnoremap <C-J> <C-W><C-J> +nnoremap <C-K> <C-W><C-K> +nnoremap <C-L> <C-W><C-L> +nnoremap <C-H> <C-W><C-H> |