-
-
Save itbakery/53814da7e94b27ca9f77 to your computer and use it in GitHub Desktop.
vim installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum install hg | |
hg clone https://vim.googlecode.com/hg/ vim | |
cd ~/.vimrc | |
vim ~/.vimrc | |
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle | |
sudo yum install libX11 libX11-devel libXtst-devel libXtst | |
sudo yum install lua-devel | |
sudo yum install ncurses-libs gnome-libs-devel libgnomeui-devel gtk2-devel libbonoboui-devel libX11-devel libXpm-devel libXt-devel python-devel ruby-devel cairo-devel ncurses-devel | |
cd vim/ | |
./configure --enable-rubyinterp --with-features=HUGE --with-lua-prefix=/usr --enable-gnome-check --enable-gui --enable-luainterp=yes --enable-gui=gtk2 --with-x=yes --enable-pythoninterp --prefix=/usr --enable-multibyte --enable-gtk2-check --enable-gtk2-check --enable-gnome-check --with-features=huge --with-x | |
make | |
sudo make install | |
vim ~/.vimrc | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" let Vundle manage Vundle | |
" required! | |
Bundle 'gmarik/vundle' | |
Bundle 'Yggdroot/indentLine' | |
Bundle 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'} | |
Bundle 'tpope/vim-fugitive' | |
Bundle 'scrooloose/nerdtree' | |
Bundle 'klen/python-mode' | |
Bundle 'spf13/spf13-vim' | |
Bundle 'flazz/vim-colorschemes' | |
" The bundles you install will be listed here | |
filetype plugin indent on | |
" The rest of your config follows here | |
augroup vimrc_autocmds | |
autocmd! | |
" highlight characters past column 120 | |
autocmd FileType python highlight Excess ctermbg=DarkGrey guibg=Black | |
autocmd FileType python match Excess /\%120v.*/ | |
autocmd FileType python set nowrap | |
augroup END | |
" Powerline setup | |
set guifont=DejaVu\ Sans\ Mono\ for\ Powerline\ 9 | |
set laststatus=2 | |
map <F2> :NERDTreeToggle<CR> | |
" Python-mode | |
" Activate rope | |
" Keys: | |
" K Show python docs | |
" <Ctrl-Space> Rope autocomplete | |
" <Ctrl-c>g Rope goto definition | |
" <Ctrl-c>d Rope show documentation | |
" <Ctrl-c>f Rope find occurrences | |
" <Leader>b Set, unset breakpoint (g:pymode_breakpoint enabled) | |
" [[ Jump on previous class or function (normal, visual, operator modes) | |
" ]] Jump on next class or function (normal, visual, operator modes) | |
" [M Jump on previous class or method (normal, visual, operator modes) | |
" ]M Jump on next class or method (normal, visual, operator modes) | |
let g:pymode_rope = 1 | |
" Documentation | |
let g:pymode_doc = 1 | |
let g:pymode_doc_key = 'K' | |
"Linting | |
let g:pymode_lint = 1 | |
let g:pymode_lint_checker = "pyflakes,pep8" | |
" Auto check on save | |
let g:pymode_lint_write = 1 | |
" Support virtualenv | |
let g:pymode_virtualenv = 1 | |
" Enable breakpoints plugin | |
let g:pymode_breakpoint = 1 | |
let g:pymode_breakpoint_key = '<leader>b' | |
" syntax highlighting | |
let g:pymode_syntax = 1 | |
let g:pymode_syntax_all = 1 | |
let g:pymode_syntax_indent_errors = g:pymode_syntax_all | |
let g:pymode_syntax_space_errors = g:pymode_syntax_all | |
" Don't autofold code | |
let g:pymode_folding = 0 | |
let g:pymode_rope = 1 | |
" Use <leader>l to toggle display of whitespace | |
nmap <leader>l :set list!<CR> | |
" automatically change window's cwd to file's dir | |
set autochdir | |
" I'm prefer spaces to tabs | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
" more subtle popup colors | |
if has ('gui_running') | |
highlight Pmenu guibg=#cccccc gui=bold | |
endif | |
set mouse=a | |
let g:airline_powerline_fonts = 1 | |
let g:indentLine_char = '│' | |
let g:indentLine_color_term = 239 | |
vmap <C-C> "+y | |
vmap <C-V> "+p | |
set nobackup | |
set nowritebackup | |
set noswapfile | |
colorscheme molokai |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment