Historique de Documentation.Vimrc
Cacher les modifications mineures - Affichage de la sortie
10/03/2013 12:59
par - ajout du lien vers yoursachet et formattage du vimrc de ksa
Lignes 3-5 ajoutées:
!!Générateur de vimrc:
[[http://yoursachet.com/]]
[[http://yoursachet.com/]]
Lignes 82-216 modifiées:
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""\\
""Ksa's Conf.\\
"""" you'll be needing a couple plug-ins for some features.\\
"""" eg: OmniCppComplete, bufferlist, pydiction, justify, alternate, file:line, taglist, yankring\\
""any questions: ksamak £ at % ksamak ; dot ¬ com.\\
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""\\
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""\\
" Automatically read a file again if it has been modified outside vim\\
" and not in the current session\\
set autoread\\
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""\\
" Swap files and backups are annoying but can save you a lot of trouble.\\
" Rather than spreading them all around your filesystem, isolate them to a\\
" single directory: \\
set backupdir=~/.vim/tmp,~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp\\
set directory=~/.vim/tmp,~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp\\
set undodir=~/.vim/tmp/undo,~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp\\
set backup undofile \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
" Add bundles to the path \\
call pathogen#runtime_append_all_bundles() \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
let g:pydiction_location='/home/ksamak/.vim/ftplugin/pydiction/complete-dict' \\
set nocp \\
"set number " numbers on the side. \\
" map <C-F12> :!ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q \\
" .<CR> \\
" Map C-Down and C-Up to move lines up/down \\
map ^[[A <C-Up> \\
map ^[[B <C-Down> \\
map ^[Oa <C-Up> \\
map ^[Ob <C-Down> \\
map! ^[[A <C-Up> \\
map! ^[[B <C-Down> \\
map! ^[Oa <C-Up> \\
map! ^[Ob <C-Down> \\
nmap <C-Down> :m+<CR>== \\
nmap <C-Up> :m-2<CR>== \\
imap <C-Down> <Esc>:m+<CR>==gi \\
imap <C-Up> <Esc>:m-2<CR>==gi \\
vmap <C-Down> :m'>+<CR>gv=gv \\
vmap <C-Up> :m-2<CR>gv=gv \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
" Map code fetching on ctrl-right (optional) \\
nmap ^[Od <C-Left> \\
nmap ^[Oc <C-Right> \\
nmap ^[[D <C-Left> \\
nmap ^[[C <C-Right> \\
imap ^[Od <C-Left> \\
imap ^[Oc <C-Right> \\
imap ^[[D <C-Left> \\
imap ^[[C <C-Right> \\
vmap ^[Od <C-Left> \\
vmap ^[Oc <C-Right> \\
vmap ^[[D <C-Left> \\
vmap ^[[C <C-Right> \\
"map <C-Left> <C-T> \\
"map <C-Right> <C-]> \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
" configure tags - add additional tags here or comment out not-used ones \\
set tags+=~/.vim/tags/cpp \\
set tags+=~/.vim/tags/opencv \\
" set tags+=~/.vim/tags/qt4 \\
" " build tags of your own project with Ctrl-F12 \\
map <C-F12> :!ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q .<CR> \\
" " OmniCppComplete \\
let OmniCpp_NamespaceSearch = 1 \\
let OmniCpp_GlobalScopeSearch = 1 \\
let OmniCpp_ShowAccess = 1 \\
let OmniCpp_ShowPrototypeInAbbr = 1 " show function parameters \\
let OmniCpp_MayCompleteDot = 1 " autocomplete after . \\
let OmniCpp_MayCompleteArrow = 1 " autocomplete after -> \\
let OmniCpp_MayCompleteScope = 1 " autocomplete after :: \\
" let OmniCpp_DefaultNamespaces = ["std", "_GLIBCXX_STD"] \\
" " automatically open and close the popup menu / preview window \\
au CursorMovedI,InsertLeave * if pumvisible() == 0|silent! pclose|endif \\
set completeopt=menuone,menu,longest,preview \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
" bufferlist plugin \\
map <silent> <C-v>v :call BufferList()<CR> \\
map <silent> <C-v><C-v> :call BufferList()<CR> \\
" change buffers and viewports easily (:vsp && :sp) \\
"map <M-z> :bn<CR> \\
nmap <silent><C-Right> :bn<CR> \\
imap <silent><C-Right> <Esc>:bn<CR>i \\
"map <M-x> :bp<CR> \\
nmap <silent><C-Left> :bp<CR> \\
imap <silent><C-Left> <Esc>:bp<CR>i \\
nmap <silent><A-Right> <C-w><C-w> \\
imap <silent><A-Right> <Esc><C-w><C-w><CR>i \\
nmap <silent><A-Left> <C-w>h \\
imap <silent><A-Left> <Esc><C-w>h<CR>i \\
nmap <silent><A-Down> <C-w>j \\
imap <silent><A-Down> <Esc><C-w>j<CR>i \\
nmap <silent><A-Up> <C-w>k \\
imap <silent><A-Up> <Esc><C-w>k<CR>i \\
" let me change buffers without saving! \\
set hidden \\
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
" Clickodrome binds \\
map <C-s> :w!<CR> \\
imap <C-s> <Esc>:w!<CR>a \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
" Write file with sudo // Life saver ! \\
function! Sudowq() \\
exe "w !sudo tee % > /dev/null" \\
exe "e!" \\
endfunction \\
nmap <F2> :call Sudowq()<CR><Enter> \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
""Ksa's Conf.\\
"""" you'll be needing a couple plug-ins for some features.\\
"""" eg: OmniCppComplete, bufferlist, pydiction, justify, alternate, file:line, taglist, yankring\\
""any questions: ksamak £ at % ksamak ; dot ¬ com.\\
set autoread\\
set backupdir=~/.vim/tmp,~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp\\
set directory=~/.vim/tmp,~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp\\
set undodir=~/.vim/tmp/undo,~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp\\
set backup undofile \\
call pathogen#runtime_append_all_bundles() \\
let g:pydiction_location='/home/ksamak/.vim/ftplugin/pydiction/complete-dict' \\
set nocp \\
map ^[[A <C-Up> \\
map ^[[B <C-Down> \\
map ^[Oa <C-Up> \\
map ^[Ob <C-Down> \\
map! ^[[A <C-Up> \\
map! ^[[B <C-Down> \\
map! ^[Oa <C-Up> \\
map! ^[Ob <C-Down> \\
nmap <C-Down> :m+<CR>== \\
nmap <C-Up> :m-2<CR>== \\
imap <C-Down> <Esc>:m+<CR>==gi \\
imap <C-Up> <Esc>:m-2<CR>==gi \\
vmap <C-Down> :m'>+<CR>gv=gv \\
vmap <C-Up> :m-2<CR>gv=gv \\
nmap ^[Od <C-Left> \\
nmap ^[Oc <C-Right> \\
nmap ^[[D <C-Left> \\
nmap ^[[C <C-Right> \\
imap ^[Oc <C-Right> \\
imap ^[[D <C-Left> \\
imap ^[[C <C-Right> \\
vmap ^[Oc <C-Right> \\
vmap ^[[D <C-Left> \\
vmap ^[[C <C-Right> \\
set tags+=~/.vim/tags/cpp \\
set tags+=~/.vim/tags/opencv \\
map <C-F12> :!ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q .<CR> \\
let OmniCpp_NamespaceSearch = 1 \\
let OmniCpp_GlobalScopeSearch = 1 \\
let OmniCpp_ShowAccess = 1 \\
let OmniCpp_ShowPrototypeInAbbr = 1 " show function parameters \\
let OmniCpp_MayCompleteDot = 1 " autocomplete after . \\
let OmniCpp_MayCompleteArrow = 1 " autocomplete after -> \\
let OmniCpp_MayCompleteScope = 1 " autocomplete after :: \\
au CursorMovedI,InsertLeave * if pumvisible() == 0|silent! pclose|endif \\
set completeopt=menuone,menu,longest,preview \\
map <silent> <C-v>v :call BufferList()<CR> \\
map <silent> <C-v><C-v> :call BufferList()<CR> \\
nmap <silent><C-Right> :bn<CR> \\
imap <silent><C-Right> <Esc>:bn<CR>i \\
nmap <silent><C-Left> :bp<CR> \\
imap <silent><C-Left> <Esc>:bp<CR>i \\
imap <silent><A-Right> <Esc><C-w><C-w><CR>i \\
nmap <silent><A-Left> <C-w>h \\
imap <silent><A-Left> <Esc><C-w>h<CR>i \\
nmap <silent><A-Down> <C-w>j \\
imap <silent><A-Down> <Esc><C-w>j<CR>i \\
nmap <silent><A-Up> <C-w>k \\
imap <silent><A-Up> <Esc><C-w>k<CR>i \\
set hidden \\
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
map <C-s> :w!<CR> \\
imap <C-s> <Esc>:w!<CR>a \\
function! Sudowq() \\
exe "w !sudo tee % > /dev/null" \\
exe "e!" \\
endfunction \\
nmap <F2> :call Sudowq()<CR><Enter> \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
en:
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""\\
""Ksa's Conf.\\
"""" you'll be needing a couple plug-ins for some features.\\
"""" eg: OmniCppComplete, bufferlist, pydiction, justify, alternate, file:line, taglist, yankring\\
""any questions: ksamak £ at % ksamak ; dot ¬ com.\\
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""\\
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""\\
" Automatically read a file again if it has been modified outside vim\\
" and not in the current session\\
set autoread\\
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""\\
" Swap files and backups are annoying but can save you a lot of trouble.\\
" Rather than spreading them all around your filesystem, isolate them to a\\
" single directory: \\
set backupdir=~/.vim/tmp,~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp\\
set directory=~/.vim/tmp,~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp\\
set undodir=~/.vim/tmp/undo,~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp\\
set backup undofile \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
" Add bundles to the path \\
call pathogen#runtime_append_all_bundles() \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
let g:pydiction_location='/home/ksamak/.vim/ftplugin/pydiction/complete-dict' \\
set nocp \\
"set number " numbers on the side. \\
" map <C-F12> :!ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q \\
" .<CR> \\
" Map C-Down and C-Up to move lines up/down \\
map ^[[A <C-Up> \\
map ^[[B <C-Down> \\
map ^[Oa <C-Up> \\
map ^[Ob <C-Down> \\
map! ^[[A <C-Up> \\
map! ^[[B <C-Down> \\
map! ^[Oa <C-Up> \\
map! ^[Ob <C-Down> \\
nmap <C-Down> :m+<CR>== \\
nmap <C-Up> :m-2<CR>== \\
imap <C-Down> <Esc>:m+<CR>==gi \\
imap <C-Up> <Esc>:m-2<CR>==gi \\
vmap <C-Down> :m'>+<CR>gv=gv \\
vmap <C-Up> :m-2<CR>gv=gv \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
" Map code fetching on ctrl-right (optional) \\
nmap ^[Od <C-Left> \\
nmap ^[Oc <C-Right> \\
nmap ^[[D <C-Left> \\
nmap ^[[C <C-Right> \\
imap ^[Od <C-Left> \\
imap ^[Oc <C-Right> \\
imap ^[[D <C-Left> \\
imap ^[[C <C-Right> \\
vmap ^[Od <C-Left> \\
vmap ^[Oc <C-Right> \\
vmap ^[[D <C-Left> \\
vmap ^[[C <C-Right> \\
"map <C-Left> <C-T> \\
"map <C-Right> <C-]> \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
" configure tags - add additional tags here or comment out not-used ones \\
set tags+=~/.vim/tags/cpp \\
set tags+=~/.vim/tags/opencv \\
" set tags+=~/.vim/tags/qt4 \\
" " build tags of your own project with Ctrl-F12 \\
map <C-F12> :!ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q .<CR> \\
" " OmniCppComplete \\
let OmniCpp_NamespaceSearch = 1 \\
let OmniCpp_GlobalScopeSearch = 1 \\
let OmniCpp_ShowAccess = 1 \\
let OmniCpp_ShowPrototypeInAbbr = 1 " show function parameters \\
let OmniCpp_MayCompleteDot = 1 " autocomplete after . \\
let OmniCpp_MayCompleteArrow = 1 " autocomplete after -> \\
let OmniCpp_MayCompleteScope = 1 " autocomplete after :: \\
" let OmniCpp_DefaultNamespaces = ["std", "_GLIBCXX_STD"] \\
" " automatically open and close the popup menu / preview window \\
au CursorMovedI,InsertLeave * if pumvisible() == 0|silent! pclose|endif \\
set completeopt=menuone,menu,longest,preview \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
" bufferlist plugin \\
map <silent> <C-v>v :call BufferList()<CR> \\
map <silent> <C-v><C-v> :call BufferList()<CR> \\
" change buffers and viewports easily (:vsp && :sp) \\
"map <M-z> :bn<CR> \\
nmap <silent><C-Right> :bn<CR> \\
imap <silent><C-Right> <Esc>:bn<CR>i \\
"map <M-x> :bp<CR> \\
nmap <silent><C-Left> :bp<CR> \\
imap <silent><C-Left> <Esc>:bp<CR>i \\
nmap <silent><A-Right> <C-w><C-w> \\
imap <silent><A-Right> <Esc><C-w><C-w><CR>i \\
nmap <silent><A-Left> <C-w>h \\
imap <silent><A-Left> <Esc><C-w>h<CR>i \\
nmap <silent><A-Down> <C-w>j \\
imap <silent><A-Down> <Esc><C-w>j<CR>i \\
nmap <silent><A-Up> <C-w>k \\
imap <silent><A-Up> <Esc><C-w>k<CR>i \\
" let me change buffers without saving! \\
set hidden \\
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
" Clickodrome binds \\
map <C-s> :w!<CR> \\
imap <C-s> <Esc>:w!<CR>a \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
" Write file with sudo // Life saver ! \\
function! Sudowq() \\
exe "w !sudo tee % > /dev/null" \\
exe "e!" \\
endfunction \\
nmap <F2> :call Sudowq()<CR><Enter> \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
""Ksa's Conf.\\
"""" you'll be needing a couple plug-ins for some features.\\
"""" eg: OmniCppComplete, bufferlist, pydiction, justify, alternate, file:line, taglist, yankring\\
""any questions: ksamak £ at % ksamak ; dot ¬ com.\\
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""\\
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""\\
" Automatically read a file again if it has been modified outside vim\\
" and not in the current session\\
set autoread\\
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""\\
" Swap files and backups are annoying but can save you a lot of trouble.\\
" Rather than spreading them all around your filesystem, isolate them to a\\
" single directory: \\
set backupdir=~/.vim/tmp,~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp\\
set directory=~/.vim/tmp,~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp\\
set undodir=~/.vim/tmp/undo,~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp\\
set backup undofile \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
" Add bundles to the path \\
call pathogen#runtime_append_all_bundles() \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
let g:pydiction_location='/home/ksamak/.vim/ftplugin/pydiction/complete-dict' \\
set nocp \\
"set number " numbers on the side. \\
" map <C-F12> :!ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q \\
" .<CR> \\
" Map C-Down and C-Up to move lines up/down \\
map ^[[A <C-Up> \\
map ^[[B <C-Down> \\
map ^[Oa <C-Up> \\
map ^[Ob <C-Down> \\
map! ^[[A <C-Up> \\
map! ^[[B <C-Down> \\
map! ^[Oa <C-Up> \\
map! ^[Ob <C-Down> \\
nmap <C-Down> :m+<CR>== \\
nmap <C-Up> :m-2<CR>== \\
imap <C-Down> <Esc>:m+<CR>==gi \\
imap <C-Up> <Esc>:m-2<CR>==gi \\
vmap <C-Down> :m'>+<CR>gv=gv \\
vmap <C-Up> :m-2<CR>gv=gv \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
" Map code fetching on ctrl-right (optional) \\
nmap ^[Od <C-Left> \\
nmap ^[Oc <C-Right> \\
nmap ^[[D <C-Left> \\
nmap ^[[C <C-Right> \\
imap ^[Od <C-Left> \\
imap ^[Oc <C-Right> \\
imap ^[[D <C-Left> \\
imap ^[[C <C-Right> \\
vmap ^[Od <C-Left> \\
vmap ^[Oc <C-Right> \\
vmap ^[[D <C-Left> \\
vmap ^[[C <C-Right> \\
"map <C-Left> <C-T> \\
"map <C-Right> <C-]> \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
" configure tags - add additional tags here or comment out not-used ones \\
set tags+=~/.vim/tags/cpp \\
set tags+=~/.vim/tags/opencv \\
" set tags+=~/.vim/tags/qt4 \\
" " build tags of your own project with Ctrl-F12 \\
map <C-F12> :!ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q .<CR> \\
" " OmniCppComplete \\
let OmniCpp_NamespaceSearch = 1 \\
let OmniCpp_GlobalScopeSearch = 1 \\
let OmniCpp_ShowAccess = 1 \\
let OmniCpp_ShowPrototypeInAbbr = 1 " show function parameters \\
let OmniCpp_MayCompleteDot = 1 " autocomplete after . \\
let OmniCpp_MayCompleteArrow = 1 " autocomplete after -> \\
let OmniCpp_MayCompleteScope = 1 " autocomplete after :: \\
" let OmniCpp_DefaultNamespaces = ["std", "_GLIBCXX_STD"] \\
" " automatically open and close the popup menu / preview window \\
au CursorMovedI,InsertLeave * if pumvisible() == 0|silent! pclose|endif \\
set completeopt=menuone,menu,longest,preview \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
" bufferlist plugin \\
map <silent> <C-v>v :call BufferList()<CR> \\
map <silent> <C-v><C-v> :call BufferList()<CR> \\
" change buffers and viewports easily (:vsp && :sp) \\
"map <M-z> :bn<CR> \\
nmap <silent><C-Right> :bn<CR> \\
imap <silent><C-Right> <Esc>:bn<CR>i \\
"map <M-x> :bp<CR> \\
nmap <silent><C-Left> :bp<CR> \\
imap <silent><C-Left> <Esc>:bp<CR>i \\
nmap <silent><A-Right> <C-w><C-w> \\
imap <silent><A-Right> <Esc><C-w><C-w><CR>i \\
nmap <silent><A-Left> <C-w>h \\
imap <silent><A-Left> <Esc><C-w>h<CR>i \\
nmap <silent><A-Down> <C-w>j \\
imap <silent><A-Down> <Esc><C-w>j<CR>i \\
nmap <silent><A-Up> <C-w>k \\
imap <silent><A-Up> <Esc><C-w>k<CR>i \\
" let me change buffers without saving! \\
set hidden \\
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
" Clickodrome binds \\
map <C-s> :w!<CR> \\
imap <C-s> <Esc>:w!<CR>a \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
" Write file with sudo // Life saver ! \\
function! Sudowq() \\
exe "w !sudo tee % > /dev/null" \\
exe "e!" \\
endfunction \\
nmap <F2> :call Sudowq()<CR><Enter> \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
19/04/2012 16:16
par - added ksa's conf
Lignes 75-213 ajoutées:
!! Ksamak's Conf.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""\\
""Ksa's Conf.\\
"""" you'll be needing a couple plug-ins for some features.\\
"""" eg: OmniCppComplete, bufferlist, pydiction, justify, alternate, file:line, taglist, yankring\\
""any questions: ksamak £ at % ksamak ; dot ¬ com.\\
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""\\
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""\\
" Automatically read a file again if it has been modified outside vim\\
" and not in the current session\\
set autoread\\
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""\\
" Swap files and backups are annoying but can save you a lot of trouble.\\
" Rather than spreading them all around your filesystem, isolate them to a\\
" single directory: \\
set backupdir=~/.vim/tmp,~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp\\
set directory=~/.vim/tmp,~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp\\
set undodir=~/.vim/tmp/undo,~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp\\
set backup undofile \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
" Add bundles to the path \\
call pathogen#runtime_append_all_bundles() \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
let g:pydiction_location='/home/ksamak/.vim/ftplugin/pydiction/complete-dict' \\
set nocp \\
"set number " numbers on the side. \\
" map <C-F12> :!ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q \\
" .<CR> \\
" Map C-Down and C-Up to move lines up/down \\
map ^[[A <C-Up> \\
map ^[[B <C-Down> \\
map ^[Oa <C-Up> \\
map ^[Ob <C-Down> \\
map! ^[[A <C-Up> \\
map! ^[[B <C-Down> \\
map! ^[Oa <C-Up> \\
map! ^[Ob <C-Down> \\
nmap <C-Down> :m+<CR>== \\
nmap <C-Up> :m-2<CR>== \\
imap <C-Down> <Esc>:m+<CR>==gi \\
imap <C-Up> <Esc>:m-2<CR>==gi \\
vmap <C-Down> :m'>+<CR>gv=gv \\
vmap <C-Up> :m-2<CR>gv=gv \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
" Map code fetching on ctrl-right (optional) \\
nmap ^[Od <C-Left> \\
nmap ^[Oc <C-Right> \\
nmap ^[[D <C-Left> \\
nmap ^[[C <C-Right> \\
imap ^[Od <C-Left> \\
imap ^[Oc <C-Right> \\
imap ^[[D <C-Left> \\
imap ^[[C <C-Right> \\
vmap ^[Od <C-Left> \\
vmap ^[Oc <C-Right> \\
vmap ^[[D <C-Left> \\
vmap ^[[C <C-Right> \\
"map <C-Left> <C-T> \\
"map <C-Right> <C-]> \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
" configure tags - add additional tags here or comment out not-used ones \\
set tags+=~/.vim/tags/cpp \\
set tags+=~/.vim/tags/opencv \\
" set tags+=~/.vim/tags/qt4 \\
" " build tags of your own project with Ctrl-F12 \\
map <C-F12> :!ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q .<CR> \\
" " OmniCppComplete \\
let OmniCpp_NamespaceSearch = 1 \\
let OmniCpp_GlobalScopeSearch = 1 \\
let OmniCpp_ShowAccess = 1 \\
let OmniCpp_ShowPrototypeInAbbr = 1 " show function parameters \\
let OmniCpp_MayCompleteDot = 1 " autocomplete after . \\
let OmniCpp_MayCompleteArrow = 1 " autocomplete after -> \\
let OmniCpp_MayCompleteScope = 1 " autocomplete after :: \\
" let OmniCpp_DefaultNamespaces = ["std", "_GLIBCXX_STD"] \\
" " automatically open and close the popup menu / preview window \\
au CursorMovedI,InsertLeave * if pumvisible() == 0|silent! pclose|endif \\
set completeopt=menuone,menu,longest,preview \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
" bufferlist plugin \\
map <silent> <C-v>v :call BufferList()<CR> \\
map <silent> <C-v><C-v> :call BufferList()<CR> \\
" change buffers and viewports easily (:vsp && :sp) \\
"map <M-z> :bn<CR> \\
nmap <silent><C-Right> :bn<CR> \\
imap <silent><C-Right> <Esc>:bn<CR>i \\
"map <M-x> :bp<CR> \\
nmap <silent><C-Left> :bp<CR> \\
imap <silent><C-Left> <Esc>:bp<CR>i \\
nmap <silent><A-Right> <C-w><C-w> \\
imap <silent><A-Right> <Esc><C-w><C-w><CR>i \\
nmap <silent><A-Left> <C-w>h \\
imap <silent><A-Left> <Esc><C-w>h<CR>i \\
nmap <silent><A-Down> <C-w>j \\
imap <silent><A-Down> <Esc><C-w>j<CR>i \\
nmap <silent><A-Up> <C-w>k \\
imap <silent><A-Up> <Esc><C-w>k<CR>i \\
" let me change buffers without saving! \\
set hidden \\
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
" Clickodrome binds \\
map <C-s> :w!<CR> \\
imap <C-s> <Esc>:w!<CR>a \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
" Write file with sudo // Life saver ! \\
function! Sudowq() \\
exe "w !sudo tee % > /dev/null" \\
exe "e!" \\
endfunction \\
nmap <F2> :call Sudowq()<CR><Enter> \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" \\
14/06/2009 16:33
par - Ajout de bind, de quelques options pour les syntaxes C-like, et de 2 trucs en php.
Lignes 42-68 modifiées:
en:
" C syntax specific(and cpp, php, js ...)
autocmd FileType c,cpp,php,d,css set formatoptions=croql
autocmd FileType c,cpp,php,d,css set cindent
autocmd FileType c,cpp,php,d,,css set comments=sl:/*,mb:**,elx:*/,://
autocmd FileType c,cpp,php,d,css set cinoptions=(2,f1,{1,>2
autocmd FileType c,cpp,php,d,css set fdm=syntax
" php
let php_sql_query = 1
let php_htmlInStrings = 1
"autoformatage
map <F2> gg=G''k<CR>
imap <F2> <esc>gg=G''ki<CR>
"utilisation des tabs
map <C-Right> :tabn<CR>
imap <C-Right> <C-O>:tabn<CR>
map <C-Left> :tabp<CR>
imap <C-Left> <C-O>:tabp<CR>
map <C-Up> :tabnew<CR>
imap <C-Up> <C-O>:tabnew<CR>
map <C-Down> :tabc<CR>
imap <C-Down> <C-O>:tabc<CR>
autocmd FileType c,cpp,php,d,css set formatoptions=croql
autocmd FileType c,cpp,php,d,css set cindent
autocmd FileType c,cpp,php,d,,css set comments=sl:/*,mb:**,elx:*/,://
autocmd FileType c,cpp,php,d,css set cinoptions=(2,f1,{1,>2
autocmd FileType c,cpp,php,d,css set fdm=syntax
" php
let php_sql_query = 1
let php_htmlInStrings = 1
"autoformatage
map <F2> gg=G''k<CR>
imap <F2> <esc>gg=G''ki<CR>
"utilisation des tabs
map <C-Right> :tabn<CR>
imap <C-Right> <C-O>:tabn<CR>
map <C-Left> :tabp<CR>
imap <C-Left> <C-O>:tabp<CR>
map <C-Up> :tabnew<CR>
imap <C-Up> <C-O>:tabnew<CR>
map <C-Down> :tabc<CR>
imap <C-Down> <C-O>:tabc<CR>
Ligne 74 supprimée:
14/08/2008 13:31
par -
Lignes 17-19 ajoutées:
"recherche intelligente : Match 'word' case-insensitive and 'Word' case-sensitive
set smartcase
set smartcase
Lignes 34-41 ajoutées:
"long lines
set nowrap
" Completion a la 'Bash'
set wildmenu " command-line completion shows a list of matches
set wildmode=longest,list:longest,full " Bash-vim completion behavior
31/07/2008 12:08
par -
Ligne 5 modifiée:
en:
"Toujours afficher la 'status bar'
Ligne 8 modifiée:
en:
"Coloration syntaxique
Ligne 11 modifiée:
en:
"Un truc sympa : lors d'une recherche, colorer tous les mots correspondant
Ligne 14 modifiée:
en:
"la recherche n'est pas dépendante de la casse (maj / min)
Ligne 17 modifiée:
en:
"recherche incrémentale (comme dans emacs ^^)
Ligne 20 modifiée:
en:
"tabulation sur 4 caractères, utile pour faire du python
Ligne 23 modifiée:
en:
"affiche la parenthèse correspondante
Ligne 26 modifiée:
en:
"Ne pas faire de swap files
Ligne 29 modifiée:
en:
"Ne pas faire de backup files
23/06/2008 19:30
par -
Lignes 25-30 ajoutées:
* Ne pas faire de swap files
set noswapfile
* Ne pas faire de backup files
set nobackup
23/06/2008 18:58
par -
Ligne 27 modifiée:
* forcer la coloration syntaxique pour le langage python
en:
* forcer la coloration syntaxique (exemple pour le langage python)
Lignes 29-31 ajoutées:
* recharger le fichier courant
:e (ou :e! pour ne pas prendre en compte les modifications)
23/06/2008 13:16
par -
Lignes 25-29 ajoutées:
!! A l'utilisation
* forcer la coloration syntaxique pour le langage python
:set syntax=python
22/06/2008 17:20
par - ajout de tips
Lignes 20-24 ajoutées:
* tabulation sur 4 caractères, utile pour faire du python
set ts=4
* affiche la parenthèse correspondante
tabulation sur 4 caractères
set ts=4
* affiche la parenthèse correspondante
tabulation sur 4 caractères
21/06/2008 15:38
par -
Ligne 3 supprimée:
21/06/2008 15:36
par -
Ligne 4 modifiée:
''' :set option dans vim pour une aventure ponctuelle, ou bien dans le vimrc pour une relation plus sérieuse :p
en:
''' :set ''option'' dans vim pour une aventure ponctuelle, ou bien dans le vimrc pour une relation plus sérieuse :p
21/06/2008 15:36
par -
Lignes 1-20 ajoutées:
'''Que serait le monde sans vim ? Je vous le demande :) '''
''' Ajoutez ici vos options préférées...'''
!!~/.vimrc
''' :set option dans vim pour une aventure ponctuelle, ou bien dans le vimrc pour une relation plus sérieuse :p
* Toujours afficher la 'status bar'
set ls=2
* Coloration syntaxique
syntax on
* Un truc sympa : lors d'une recherche, colorer tous les mots correspondant
set hlsearch
* la recherche n'est pas dépendante de la casse (maj / min)
set ignorecase
* recherche incrémentale (comme dans emacs ^^)
set incsearch
''' Ajoutez ici vos options préférées...'''
!!~/.vimrc
''' :set option dans vim pour une aventure ponctuelle, ou bien dans le vimrc pour une relation plus sérieuse :p
* Toujours afficher la 'status bar'
set ls=2
* Coloration syntaxique
syntax on
* Un truc sympa : lors d'une recherche, colorer tous les mots correspondant
set hlsearch
* la recherche n'est pas dépendante de la casse (maj / min)
set ignorecase
* recherche incrémentale (comme dans emacs ^^)
set incsearch