All pastes #411310 Raw Edit

Untitled

public text v1 · immutable
#411310 ·published 2007-03-26 23:01 UTC
rendered paste body
set pastetoggle=<F10>
set sm
"set complete=.,w,b,u,t,i
set ai
set mouse=a
syntax enable

highlight WhitespaceEOL ctermbg=red guibg=red
match WhitespaceEOL /\s\+$/

" tab navigation like firefox
:nmap <C-p> :tabprevious<cr>
:nmap <C-n> :tabnext<cr>
:map <C-p> :tabprevious<cr>
:map <C-n> :tabnext<cr>
:imap <C-p> <ESC>:tabprevious<cr>i
:imap <C-n> <ESC>:tabnext<cr>i
:nmap <C-t> :tabnew<cr>
:imap <C-t> <ESC>:tabnew<cr>
:nmap <C-w> :tabc<cr>
:map <C-w> :tabc<cr>
:imap <C-w> <ESC>:tabc<cr>


"Debut de Completion
function InsertTabWrapper(direction)
let col = col('.') - 1
if !col || getline('.')[col - 1] !~ '\k'
return "\<tab>"
elseif "backward" == a:direction
return "\<c-x><c-o>"
else
return "\<c-n>"
endif
endfunction
inoremap <tab> <c-r>=InsertTabWrapper("forward")<cr>
inoremap <s-tab> <c-r>=InsertTabWrapper("backward")<cr>
" Fin de Completion

"Options de tabulation
set shiftwidth=4
set tabstop=4
set smartindent
set smarttab
set expandtab
set ruler
set preserveindent
"Fin Options de Tab

""Nice statusbar
set laststatus=2
set statusline=
set statusline+=%-3.3n\                      " buffer number
set statusline+=%f\                          " file name
set statusline+=%h%m%r%w                     " flags
set statusline+=\[%{strlen(&ft)?&ft:'none'}, " filetype
set statusline+=%{&encoding},                " encoding
set statusline+=%{&fileformat}]              " file format
set statusline+=%=                           " right align
set statusline+=0x%-8B\                      " current char
set statusline+=%-14.(%l,%c%V%)\ %<%P        " offset