Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
82 lines (67 sloc) 2.07 KB
filetype off
call pathogen#runtime_append_all_bundles()
"call pathogen#helptags() "call this when installing new plugins
filetype plugin on
"look for per directory .exrc files
set exrc
set nocp "
set encoding=utf-8
set scrolloff=3
set sidescrolloff=5
" in vim 7.3"
set backspace=2 "broken after pugrading to 7.3
"set relativenumber "See last line"
"set undofile
"set colorcolumn=80
set number
set title
syntax on
set mouse=
" indenting
set autoindent
set expandtab "hitting tab insert spaces instead of <Tab>
set tabstop=4
set shiftwidth=4
set softtabstop=4
set nowrap " kikoo (lol)"
syntax match Tab /\t/
hi Tab cterm=underline ctermfg=grey
"get out of insert mode more quickly
"you'd have to be really unlucky to
"have to type "kj" in a real world
"use case
inoremap kj <Esc>
"add a semicolon ';' at the end of the line
nnoremap ;; A;<Esc>
"mes raccourcis comme dans notepad++ pour bouger des lignes
"bouger la ligne vers le bas
nnoremap <silent> <C-Down> :.m+<CR>
"bouger la ligne vers le haut
nnoremap <silent> <C-Up> :-m.<CR>k
let g:snips_author = 'Florent Jaby'
"automatically open and close de popup menu / preview window
au CursorMovedI,InsertLeave * if pumvisible() == 0|silent! pclose|endif
set completeopt=menuone,menu,longest,preview
"xml html
let g:xml_syntax_folding = 1
"folding : repère les bloc du langage à plier
set foldmethod=syntax
"twitter shortcuts
let g:twitterusername='floby'
let g:twitterpassword=''
map <unique> <Leader>kp <Esc>:let g:twitterpassword=inputsecret('password? ')<cr>
map <unique> <Leader>kw <Esc>:execute 'TwitterStatusUpdate ' . inputdialog('Enter a twitter status message:')<cr>
map <unique> <Leader>kf <Esc>:TwitterFriendsTimeline<cr>
"theme I'll try to get used to it, but I really like
"the bold look on non-256color terminals :/
set background=dark
color xoria256
"colorscheme solarized
"this has moved here so
"everything before it is executed
"because it doesn't work earlier"
"set relativenumber
Something went wrong with that request. Please try again.