Created
December 16, 2020 21:51
-
-
Save tmarshall/d4e984fd45f872fb25a26abb17409666 to your computer and use it in GitHub Desktop.
personal .vimrc config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on | |
colorscheme desert | |
set encoding=utf8 | |
filetype plugin on | |
filetype indent on | |
" Avoid garbled characters in Chinese language windows OS | |
let $LANG='en' | |
set langmenu=en | |
source $VIMRUNTIME/delmenu.vim | |
source $VIMRUNTIME/menu.vim | |
" Ignore compiled files | |
set wildignore=*.o,*~,*.pyc | |
set wildignore+=*/.git/*,*/.hg/*,*/.svn/*,*/.DS_Store | |
"Always show current position | |
set ruler | |
" Ignore case when searching | |
set ignorecase | |
" When searching try to be smart about cases | |
set smartcase | |
" Highlight search results | |
set hlsearch | |
" Makes search act like search in modern browsers | |
set incsearch | |
" Don't redraw while executing macros (good performance config) | |
set lazyredraw | |
" For regular expressions | |
set magic | |
" Show matching brackets when text indicator is over them | |
set showmatch | |
" How many tenths of a second to blink when matching brackets | |
set mat=2 | |
" No annoying sound on errors | |
set noerrorbells | |
set novisualbell | |
set t_vb= | |
set tm=500 | |
" Properly disable sound on errors on MacVim | |
if has("gui_macvim") | |
autocmd GUIEnter * set vb t_vb= | |
endif | |
" Use spaces instead of tabs | |
set expandtab | |
" Be smart when using tabs ;) | |
set smarttab | |
" 1 tab == 2 spaces | |
set shiftwidth=2 | |
set tabstop=2 | |
set ai "Auto indent | |
set si "Smart indent | |
set wrap "Wrap lines | |
" Set extra options when running in GUI mode | |
if has("gui_running") | |
set guioptions-=T | |
set guioptions-=e | |
set t_Co=256 | |
set guitablabel=%M\ %t | |
endif | |
" directory explorer setup | |
" see https://shapeshed.com/vim-netrw/ | |
" let g:netrw_banner = 0 | |
" let g:netrw_liststyle = 3 | |
" let g:netrw_browse_split = 4 | |
" let g:netrw_altv = 1 | |
" let g:netrw_winsize = 25 | |
" augroup ProjectDrawer | |
" autocmd! | |
" autocmd VimEnter * :Vexplore | |
" augroup END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment