Skip to content

Latest commit

 

History

History
41 lines (36 loc) · 1.01 KB

vim.org

File metadata and controls

41 lines (36 loc) · 1.01 KB

vim configuration

Vim configuration

This is a minimal configuration file to make vim usable Bindings should really be using vimscript rather than conf: comments start with the ” character, so we cannot tangle them

Code specific

syntax on

We want to limit the length of git commit lines

autocmd Filetype gitcommit setlocal spell textwidth=72

History

Return to last edit position when opening files

autocmd BufReadPost *
     \ if line("'\"") > 0 && line("'\"") <= line("$") |
     \   exe "normal! g`\"" |
     \ endif

Do not highlight search results

set nohlsearch

Indentation

set tabstop=4 shiftwidth=4 expandtab shiftround
set autoindent
set number numberwidth=4
set showmatch matchtime=2