summaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
authorAdam <56338480+adastx@users.noreply.github.com>2021-10-14 21:33:08 +0200
committerAdam <56338480+adastx@users.noreply.github.com>2021-10-14 21:33:08 +0200
commit145d1446bbf5b936cf64f1ed5db9920a59c13227 (patch)
tree6eabb7b5f54a2b3dac96e43a39246129388c1d74 /.vimrc
parentfb34ca6456bc407bfad26ceb3c47e054d27aed7d (diff)
Added a simple .vimrc for when neovim is overkill
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc61
1 files changed, 61 insertions, 0 deletions
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=<F11>
+set shiftwidth=4
+set softtabstop=4
+set expandtab
+set noswapfile
+set nowrap
+
+map Y y$
+nnoremap <C-L> :nohl<CR><C-L>
+nnoremap n nzzzv
+nnoremap N Nzzzv
+inoremap kj <Esc>
+tnoremap kj <C-\><C-n>
+
+inoremap , ,<c-g>u
+inoremap . .<c-g>u
+inoremap [ [<c-g>u
+inoremap ! !<c-g>u
+inoremap ? ?<c-g>u
+
+let mapleader=" "
+nnoremap <leader>h :wincmd h<CR>
+nnoremap <leader>j :wincmd j<CR>
+nnoremap <leader>k :wincmd k<CR>
+nnoremap <leader>l :wincmd l<CR>
+
+colorscheme default
+highlight CursorLine cterm=NONE ctermbg=NONE ctermfg=NONE guibg=NONE guifg=NONE
+highlight CursorLineNr cterm=bold ctermbg=NONE ctermfg=Yellow
+set cursorline