Skip to content

Instantly share code, notes, and snippets.

@kylebgorman
Last active October 23, 2023 21:57
Show Gist options
  • Save kylebgorman/3372958 to your computer and use it in GitHub Desktop.
Save kylebgorman/3372958 to your computer and use it in GitHub Desktop.
my .vimrc (pretty basic)
syn on
set hlsearch
set ruler
" tab stuff
set expandtab
set tabstop=4
" scrolling
set scrolloff=5
" backspace over everythign
set backspace=indent,eol,start
" (non)bells and whistles
set background=dark
set noerrorbells
set novisualbell
" scrolling between windows
map <C-j> <C-w>w
map <C-k> <C-w>w
" remember last edited position
if has("autocmd")
augroup vimrc
au!
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal g`\"" |
\ endif
augroup END
filetype on
filetype plugin on
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment