diff options
author | Matthew Lemon <chaffinach+git@protonmail.ch> | 2022-05-24 21:39:05 +0100 |
---|---|---|
committer | Matthew Lemon <chaffinach+git@protonmail.ch> | 2022-05-24 21:39:05 +0100 |
commit | 7c84da3d6b024fcee78f66aea8e7272dea6e6ffb (patch) | |
tree | ddb305868000375db5c4195a9482449221b8132b /vim | |
parent | 40c619d2aacbef03a6c9814fd635474768749da1 (diff) |
more vim tweaks - gone minima!
Diffstat (limited to '')
-rw-r--r-- | vim/vimrc | 4 | ||||
-rw-r--r-- | vimrc_geohot | 35 |
2 files changed, 32 insertions, 7 deletions
@@ -72,10 +72,6 @@ cnoremap <right> <Nop> " https://github.com/dracula/vim/issues/161 "packadd! dracula | colorscheme dracula -" leader -let maplocalleader = "\\" -let mapleader = "," - " ignore wrapping. you can move to the visual start of end of a line with `g0` " and `g$`, respectively. noremap j gj diff --git a/vimrc_geohot b/vimrc_geohot index 077e3c1..16bf188 100644 --- a/vimrc_geohot +++ b/vimrc_geohot @@ -1,11 +1,40 @@ syntax on -set tabstop=2 -set shiftwidth=2 +filetype plugin indent on "load plugin and indent files associated a detected filetype + +set showmatch "highlights matching brackets on cursor hover +set tabstop=4 +set shiftwidth=4 set expandtab set ai -set number +set number set hlsearch set ruler +set nohlsearch "highlights searches +set incsearch "incremental search (searches character by character) +set ignorecase "ignores the case of a search +set smartcase "only ignores case if there are no capital letters in search (only works after ignorecase has been set) +set splitbelow " split horiz below +set noswapfile +set nobackup +set splitright " split new to the right when doing vertical +set path+=** +set nocp +set t_Co=256 + +"" Quick Editing vimrc +nnoremap <leader>ev <C-w>s<C-w>j<C-w>L:e $MYVIMRC<cr> + +" clear search highlights +nnoremap <leader><space> :noh<cr>:call clearmatches()<cr> + " manual highlights +set background=dark +colorscheme elflord + highlight Visual ctermfg=black ctermbg=LightMagenta highlight Comment ctermfg=DarkGray + +" ignore wrapping. you can move to the visual start of end of a line with `g0` +" and `g$`, respectively. +noremap j gj +noremap k gk |