summaryrefslogtreecommitdiff
path: root/plugin/editzone.vim
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/editzone.vim')
-rwxr-xr-xplugin/editzone.vim39
1 files changed, 39 insertions, 0 deletions
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 <Leader>c :set cursorcolumn!<CR>
+" toogle highligh cursor line
+nnoremap <Leader>l :set cursorline!<CR>