From 68c941406e06fe5fc89386d9c4ab20345c5e185b Mon Sep 17 00:00:00 2001 From: arobase-che Date: Sun, 10 Jan 2016 19:07:49 +0100 Subject: Init commit --- plugin/editzone.vim | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100755 plugin/editzone.vim (limited to 'plugin/editzone.vim') diff --git a/plugin/editzone.vim b/plugin/editzone.vim new file mode 100755 index 0000000..e257303 --- /dev/null +++ b/plugin/editzone.vim @@ -0,0 +1,39 @@ +" editzone.vim +" Parameters related to the edition zone + +" Display relative line numbers and absolute line number for the current line +set number relativenumber + +" In insert mode, display absolute line numbers +au InsertEnter * :set number norelativenumber +" Come back to standard mode when leaving insert mode +au InsertLeave * :set relativenumber + +" Default status line +set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [ASCII=\%03.3b]\ [HEX=\%02.2B]\ [POS=%04l,%04v][%p%%]\ [LEN=%L] +set laststatus=2 + +" Disable bells +set noerrorbells +set novisualbell + +"set textwidth=100 +"if version >= 703 +" set colorcolumn=+1 +"endif + +" Show special chars +set list +set listchars=tab:.\ ,eol:¬,nbsp:␣ + +" Highlight the screen line of the cursor +set cursorline + +" Always show 5 lines around cursor +set scrolloff=5 + +" from : http://vim.wikia.com/wiki/Highlight_current_line +" toogle highlight cursor column +nnoremap c :set cursorcolumn! +" toogle highligh cursor line +nnoremap l :set cursorline! -- cgit v1.2.3-70-g09d2