From 17fc7abc5e0db76000dc70389552c83d77f57b77 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Mon, 10 Apr 2017 12:33:26 +0100 Subject: [PATCH] Make vimrc work on default Ubuntu vi --- vimrc | 42 ++++++++++++++++++++++++------------------ 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/vimrc b/vimrc index 57a04cb..e4967ac 100644 --- a/vimrc +++ b/vimrc @@ -10,24 +10,10 @@ if version < 800 silent! execute pathogen#infect('pack/acp/start/{}') endif -autocmd BufRead,BufNewFile *.md set filetype=markdown -command Q q -command W w -command WQ wq inoremap inoremap inoremap inoremap -let g:airline_theme='jellybeans' -let g:ctrlp_cmd='CtrlP' -let g:ctrlp_map='' -let g:netrw_altv=1 -let g:netrw_banner=0 -let g:netrw_browse_split=4 -let g:netrw_liststyle=3 -let g:netrw_sort_sequence='[\/]$,*' -let g:netrw_winsize=-28 -let g:riv_fold_auto_update=0 nmap :wincmd j nmap :wincmd h nmap :wincmd l @@ -58,7 +44,7 @@ set laststatus=2 set linebreak set list set modelines=0 -set nofoldenable +set nocompatible set nojoinspaces set nrformats-=octal set number @@ -79,9 +65,25 @@ set ttyfast set viminfo="NONE" set wildmenu set wrap -silent! colorscheme desert -silent! filetype plugin indent on -silent! syntax on + +if has("eval") + autocmd BufRead,BufNewFile *.md set filetype=markdown + command Q q + command W w + command WQ wq + filetype plugin indent on + let g:airline_theme='jellybeans' + let g:ctrlp_cmd='CtrlP' + let g:ctrlp_map='' + let g:netrw_altv=1 + let g:netrw_banner=0 + let g:netrw_browse_split=4 + let g:netrw_liststyle=3 + let g:netrw_sort_sequence='[\/]$,*' + let g:netrw_winsize=-28 + let g:riv_fold_auto_update=0 + syntax on +endif if has("patch-7.3.541") set formatoptions+=j @@ -97,6 +99,10 @@ if has("lua") let g:neocomplete#enable_at_startup=1 endif +if has("folding") + set nofoldenable +endif + if &t_Co == 8 && $TERM !~# '^linux\|^Eterm' set t_Co=16 endif