Vim config in .vimrc

vim.png

Today I am just going to talk about my favorite vim “stuff” found in the .vimrc file.   I’ll start with the simple stuff and move up from there.

Basic settings:

” Enable Line Numbers
set number

” Ignore case for searches
set ignorecase

” Unless you type an uppercase letter
set smartcase

” Incremental searching is sexy
set incsearch

” Highlight things that we find with the search
set hlsearch

” This is totally awesome – remap jj to escape
” in insert mode. You’ll never type jj anyway,
” so it’s great!
inoremap jj

” If you have caps lock on disable too many J’s
nnoremap JJJJ

” Set off the other paren
highlight MatchParen ctermbg=4

” no longer press shift to enter commands
nnoremap ; :
nnoremap : ;
vnoremap ; :
vnoremap : ;

Related Posts

Comments are closed.