Skip to content
Browse files

moved autcppcomplete to ftplugin

  • Loading branch information...
1 parent 23ee41e commit 61989cfefd694cd8e52abc210b202de90f37500c @Floby committed
Showing with 29 additions and 35 deletions.
  1. +22 −0 ftplugin/c.vim
  2. +1 −0 ftplugin/cpp.vim
  3. +6 −35 vimrc
View
22 ftplugin/c.vim
@@ -0,0 +1,22 @@
+
+"ctags
+"map <C-F12> :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<CR>
+noremap <F12> :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<cr>
+inoremap <F12> <Esc>:!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<cr>
+
+"OmniCppComplete
+let OmniCpp_NamespaceSearh = 1
+let OmniCpp_GlobalScopeSearch = 1
+let OmniCpp_ShowAccess = 1
+let OmniCpp_MayCompleteDot = 1
+let OmniCpp_MayCompleteArrow = 1
+let OmniCpp_MayCompleteScope = 1
+let OmniCpp_DefaultNamespaces = ["std" , "_GLIBCXX_STD"]
+
+
+"move to filetype
+"load tags
+set tags+=~/.vim/tags/stl
+set tags+=~/.vim/tags/v8
+set tags+=~/.vim/tags/wx
+
View
1 ftplugin/cpp.vim
View
41 vimrc
@@ -1,8 +1,9 @@
+set nocp "http://www.guckes.net/vim/setup.html
+
"pathogen
filetype off
call pathogen#runtime_append_all_bundles()
-"call pathogen#helptags()
-set nocp "http://www.guckes.net/vim/setup.html
+"call pathogen#helptags() "call this when installing new plugins
filetype plugin indent on
@@ -29,50 +30,20 @@ inoremap kj <Esc>
"mes raccourcis comme dans notepad++ pour bouger des lignes
"bouger la ligne vers le bas
-"nnoremap <C-Down> ddp
nnoremap <silent> <C-Down> :.m+<CR>
"bouger la ligne vers le haut
-"nnoremap <C-Up> ddkP
nnoremap <silent> <C-Up> :-m.<CR>k
-"FuzzyFinder
-"call fuf#defineLaunchCommand('FufCWD', 'file', 'fnamemodify(getcwd(), "%%s:h")')
-"map <leader>t :FufCWD **/<CR>
-
-
"folding : repère les bloc du langage à plier
set foldmethod=syntax
-
-"thème
-"colorscheme wombat
-"colorscheme xoria256
-
-"ctags
-"map <C-F12> :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<CR>
-noremap <F12> :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<cr>
-inoremap <F12> <Esc>:!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<cr>
-
-"OmniCppComplete
-let OmniCpp_NamespaceSearh = 1
-let OmniCpp_GlobalScopeSearch = 1
-let OmniCpp_ShowAccess = 1
-let OmniCpp_MayCompleteDot = 1
-let OmniCpp_MayCompleteArrow = 1
-let OmniCpp_MayCompleteScope = 1
-let OmniCpp_DefaultNamespaces = ["std" , "_GLIBCXX_STD"]
-
+"
+"snipMate
+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
-"load tags
-set tags+=~/.vim/tags/stl
-set tags+=~/.vim/tags/v8
-set tags+=~/.vim/tags/wx
-
-
-
"twitter shortcuts
let g:twitterusername='floby'

0 comments on commit 61989cf

Please sign in to comment.
Something went wrong with that request. Please try again.