Skip to content

My current vim optimizations for readability and better interaction.

Notifications You must be signed in to change notification settings

jdredman/vim-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

vim-config

My current vim optimizations for 🎨 and better ⌨️ experience.

alt Vim after applying optimizations

Add the followint to your ~/.vimrc (if you dont have this file you may have to create it) and customize to your preferences.

" Show line and character numbers
set number
set ruler

" Auto indent by filetype
if has('filetype')
  filetype indent on
endif

" Keep same indent on return when theres no auto indent
set autoindent

" Set color scheme 
" Options -> default, blue, darkblue, delek, desert, elford, evening, 
" industry, koehler, morning, murphy, pablo, peachpuff, ron, shine,
" slate, torte, zellner
colorscheme slate

" Enable syntax highlighting
if has('syntax')
  syntax on
endif

" Reduce indentation width
set shiftwidth=4
set tabstop=4

" Make comments gray
hi comment ctermfg=darkgray

" Ask to save on exit
set confirm

" Show error nudge rather than audio
set visualbell

" Vim command autocomplete
set wildmenu

" Redraw only when needed
set lazyredraw

" Highlight character matches ([{}])
set showmatch

" Search while typing
set incsearch

" Highlight search matches
set hlsearch

" remap leader to comma for easier reach
let mapleader=","

" Key binding for easier clearing of search highlighting
nnoremap <leader><space> :nohlsearch<CR>

" Enable use of mouse for input
if has('mouse')
  set mouse=a
endif

About

My current vim optimizations for readability and better interaction.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published