Clone shirenn's configuration
This commit is contained in:
46
roles/vim/templates/vimrc.j2
Normal file
46
roles/vim/templates/vimrc.j2
Normal file
@ -0,0 +1,46 @@
|
||||
if has('autocmd')
|
||||
filetype plugin indent on
|
||||
endif
|
||||
if has('syntax') && !exists('g:syntax_on')
|
||||
syntax enable
|
||||
endif
|
||||
|
||||
set viminfo=
|
||||
|
||||
set autoindent
|
||||
set backspace=indent,eol,start
|
||||
set complete-=i
|
||||
set smarttab
|
||||
set tabstop=2
|
||||
set shiftwidth=2
|
||||
set expandtab
|
||||
|
||||
set laststatus=2
|
||||
set ruler
|
||||
set showcmd
|
||||
set wildmenu
|
||||
|
||||
set incsearch
|
||||
|
||||
set encoding=utf-8
|
||||
|
||||
if &listchars ==# 'eol:$'
|
||||
set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+
|
||||
endif
|
||||
|
||||
set formatoptions+=j
|
||||
|
||||
set autoread
|
||||
|
||||
if &tabpagemax < 50
|
||||
set tabpagemax=50
|
||||
endif
|
||||
|
||||
set whichwrap+=<,>,h,l,[,]
|
||||
|
||||
|
||||
colorscheme elflord
|
||||
highlight ExtraWhitespace ctermbg=lightgreen guibg=lightgreen
|
||||
match ExtraWhitespace /\s\+$/
|
||||
|
||||
set tw=80
|
Reference in New Issue
Block a user