X-Git-Url: https://code.kerkeslager.com/?a=blobdiff_plain;f=.vimrc;h=8bb879a93276b50ece07fa51455ef327015a37f0;hb=34ea85db2a058b24bc164ecf9d86fbca86afa092;hp=fd01a20bda6d8da1677f7dde610e9ed3547bad73;hpb=43023fc773ff29389981f00c5f16ad8de5e5d0c0;p=dotfiles diff --git a/.vimrc b/.vimrc index fd01a20..8bb879a 100644 --- a/.vimrc +++ b/.vimrc @@ -11,6 +11,9 @@ set wildignore=*.swp,*.bak,*.pyc,*.class,*.o,*.exe " Set filetype stuff to on. filetype on filetype plugin on + +" Set up autoindentation. +set smartindent filetype indent on " Example filetype-specific setting: @@ -18,6 +21,11 @@ filetype indent on " autocmd filetype python set expandtab " endif +" Allow folding. +set foldenable +set foldmethod=syntax +set foldlevelstart=99 + " Show line numbers. set number set numberwidth=4 @@ -25,9 +33,8 @@ set numberwidth=4 " Scroll five lines ahead of cursor. set scrolloff=5 -" Set up autoindentation. -set smartindent -filetype indent on +" Turn off error bells and visual bell +set noeb vb t_vb= " Set tabs to width 4. set softtabstop=4 @@ -48,9 +55,6 @@ augroup Spacing autocmd FileType help,make match BadSpacing / *$/ augroup END -" Highlight search terms. -set hlsearch - " Search as you type. set incsearch @@ -95,5 +99,3 @@ noremap! " Automatically reload the .vimrc when changes are made to it au! BufWritePost .vimrc source % - -