Julien
<source lang="vim"> " Set a nice colorscheme colorscheme 256-jungle
" Display a verbose status line for arguments completion set laststatus=2 set statusline=%t\ %y\ [line:\ %l]\ [col:\ %c]\ [format:\ %{&ff}] " Display line number set number " Start searching on keystroke set incsearch " Shut the bell set noerrorbells " Highlight the ligne being edited set cursorline " Display the commands and arugment inside the status line set wildmenu
set wildignore=*.o,*.obj set noic set enc=utf-8 set history=300 set autoindent set tabstop=4 set smarttab set shiftwidth=4 set expandtab set ruler set shell=zsh set pastetoggle=<F2> set textwidth=79 set si set cindent set iskeyword=a-z,A-Z,48-57,_,.,-,>
" Set some nice abbreviations
- ab printf( printf("");<LEFT><LEFT><LEFT>
- ab pymain if __name__ == "__main__":<CR><CR><TAB>
" Configuration for Python development " Launch a simple Python interpretor map <silent><F4> <ESC>:!python<CR> " Run the script being edited map <C-F12> :w!<CR>:!python %<CR> " Toggle line numbering, handy when copying from console map <F12> :set number!<Bar>set number?<CR> " Run Pychecker against the file being edited map <silent><F9> <ESC>:!pychecker %<CR> " Run the Pythong debugger in postmortem mode against the file being edited map <silent><F3> <ESC>:w!<ESC>:!python -m pdb %<CR>
" Easy tab browsing map g1 :tabnext 1<CR> map g2 :tabnext 2<CR> map g3 :tabnext 3<CR> map g4 :tabnext 4<CR> map g5 :tabnext 5<CR>
" Wrapping comments map ,* :s/^\(.*\)$/\/\* \1 \*\//<CR>:nohlsearch<CR> map ,( :s/^\(.*\)$/\(\* \1 \*\)/<CR>:nohlsearch<CR> map ,< :s/^\(.*\)$//<CR>:nohlsearch<CR>
" LHS comments map ,# :s/^/#/<CR>:nohlsearch<CR> map ,/ :s/^/\/\//<CR>:nohlsearch<CR> map ,> :s/^/> /<CR>:nohlsearch<CR> map ," :s/^/\"/<CR>:nohlsearch<CR> map ,% :s/^/%/<CR>:nohlsearch<CR> map ,! :s/^/!/<CR>:nohlsearch<CR> map ,; :s/^/;/<CR>:nohlsearch<CR> map ,- :s/^/--/<CR>:nohlsearch<CR>
" Make error console map <F5> :cn<CR> map <F6> :cp<CR> map <F7> :tp<CR> map <F8> :tn<CR>
autocmd BufWritePre *.py normal m`:%s/\s\+$//e `` autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
filetype plugin on
" Python modules completion (change with your own path) let g:pydiction_location = '/home/jul/.vim/pydiction-1.2/complete-dict' let g:pydiction_menu_height = 20 </source>