From a9842e8442ac8a1a011620d9dd914ce2c25d4346 Mon Sep 17 00:00:00 2001 From: makefu Date: Tue, 29 Nov 2011 17:54:41 +0100 Subject: //infest/profiles: add vim folder --- infest/profiles/makefu/vim | 1 - infest/profiles/makefu/vim/vimrc | 105 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 105 insertions(+), 1 deletion(-) delete mode 160000 infest/profiles/makefu/vim create mode 100755 infest/profiles/makefu/vim/vimrc (limited to 'infest') diff --git a/infest/profiles/makefu/vim b/infest/profiles/makefu/vim deleted file mode 160000 index 6880b76d..00000000 --- a/infest/profiles/makefu/vim +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 6880b76d9f79c57648df32b5cb3ce7d8e966d2b4 diff --git a/infest/profiles/makefu/vim/vimrc b/infest/profiles/makefu/vim/vimrc new file mode 100755 index 00000000..69ff3f58 --- /dev/null +++ b/infest/profiles/makefu/vim/vimrc @@ -0,0 +1,105 @@ +" not so original .vimrc +" 2011-11-29 +" +" Vundle +set nocompatible +filetype off +set rtp+=~/.vim/bundle/vundle +call vundle#rc() + +Bundle 'gmarik/vundle' +Bundle 'SudoEdit.vim' +Bundle 'snipMate' +Bundle 'tpope/vim-fugitive' +Bundle 'pyflakes' + +filetype plugin indent on + +" +set vb +let g:snips_author = 'Bob Ross ' +let g:makefu_author = 'makefu' + +""" just for tex + +let g:compiler_gcc_ignore_unmatched_lines=1 " ignore for gcc and SCONS +" compiler gcc +set foldenable +set foldmethod=syntax +" shows matching braches etc +set showmatch +set matchtime=3 +" highlight search +set hlsearch + +let g:load_doxygen_syntax=1 + +" we do not want any filename~ files +" set noswapfile +" set nobackup +set backupdir=~/.vim/backup +set directory=~/.vim/backup + +" turn off F1 +" +inoremap +nnoremap +vnoremap + +" save on focus lost +au FocusLost * :wa + +"let TlistAddFilesRecursive = /home/makefu/repos/P2P_MDS " *.cpp *.hpp +let Tlist_Exit_OnlyWindow =1 " exit if other window is closed +nnoremap :TlistToggle +set spelllang=en +" use set spell to enable spelling + +" press ttt to rot16 the whole file +nmap ttt ggg?G + +colorscheme darkblue +set background=dark + +set number +set mouse= +set textwidth=9001 +set ignorecase +set incsearch +set wildignore=*.o,*.obj,*.bak,*.exe,*.os +set shiftwidth=2 + +syntax on +"For tabstop = 2 spaces + +set tabstop=2 +set et +set sw=2 +set smarttab +set autoindent +" end tabstop + + +set backspace=indent,eol,start +set nocp + + +" python stuff +" run python code with f5 +"autocmd FileType python map :w:!python "%" +" pydiction +"let g:pydiction_location = '~/.vim/plugin/pydiction/complete-dict' + +" automatically open and close the popup menu / preview window +au CursorMovedI,InsertLeave * if pumvisible() == 0|silent! pclose|endif +set completeopt=menuone,menu,longest,preview + +" somewhere before nowrap is set +set wrap + +autocmd BufRead *.json set filetype=json +autocmd FileType json set equalprg=json_reformat +autocmd FileType json set makeprg=jsonval\ % +autocmd FileType json set errorformat=%E%f:\ %m\ at\ line\ %l,%-G%.%# + +au BufNewFile,BufRead *.mustache set syntax=mustache -- cgit v1.2.3