Skip to content

Instantly share code, notes, and snippets.

@orbanbotond
Created December 15, 2024 13:47
Show Gist options
  • Save orbanbotond/5486c988ab5f374a14b86f204dbd82c0 to your computer and use it in GitHub Desktop.
Save orbanbotond/5486c988ab5f374a14b86f204dbd82c0 to your computer and use it in GitHub Desktop.
.vimrc
set nocompatible
if has("autocmd")
filetype indent plugin on
" Enable filetype detection
filetype plugin indent on
" Restore cursor position
autocmd BufReadPost *
\ if line("'\"") > 1 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif
endif
if &t_Co > 2 || has("gui_running")
" Enable syntax highlighting
syntax on
endif
runtime macros/matchit.vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment