Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " GitHub repo & instructions: https://github.com/glujan/vimrc
- set nocompatible
- filetype off
- set rtp+=~/.vim/bundle/Vundle.vim
- call vundle#rc()
- Bundle 'gmarik/vundle'
- Bundle 'klen/python-mode'
- Bundle 'airblade/vim-gitgutter'
- Bundle 'kien/ctrlp.vim'
- Bundle 'scrooloose/nerdcommenter'
- Bundle 'bling/vim-airline'
- Bundle 'tomasr/molokai'
- " Plugin 'JarrodCTaylor/vim-python-test-runner'
- Plugin 'tpope/vim-fugitive'
- " automatically reload .vimrc
- autocmd! bufwritepost .vimrc source %
- " better copying / pasting
- set pastetoggle=<F2>
- set clipboard=unnamed
- " molokai theme
- colorscheme molokai
- if $COLORTERM == 'gnome-terminal'
- set t_Co=256
- endif
- if !exists('g:airline_symbols')
- let g:airline_symbols = {}
- endif
- " airline
- set laststatus=2
- set noshowmode
- let g:airline_left_sep = '»'
- let g:airline_left_sep = '▶'
- let g:airline_right_sep = '«'
- let g:airline_right_sep = '◀'
- let g:airline_symbols.linenr = '␊'
- let g:airline_symbols.linenr = ''
- let g:airline_symbols.linenr = '¶'
- let g:airline_symbols.branch = '⎇'
- let g:airline_symbols.paste = 'ρ'
- let g:airline_symbols.paste = 'Þ'
- let g:airline_symbols.paste = '∥'
- let g:airline_symbols.whitespace = 'Ξ'
- " nerdcommenter
- let NERDSpaceDelims=1
- " mouse
- set bs=2
- set mouse=a
- let mapleader = ","
- " podkresla znaleziona fraze
- noremap <C-n> :nohl<CR>
- vnoremap <C-n> :nohl<CR>
- inoremap <C-n> :nohl<CR>
- " navigate windows
- map <c-j> <c-w>j
- map <c-k> <c-w>k
- map <c-l> <c-w>l
- map <c-h> <c-w>h
- " navigate tabs
- map <Leader>n <esc>:tabprevious<CR>
- map <Leader>m <esc>:tabnext<CR>
- " move block left or right
- vnoremap < <gv
- vnoremap > >gv
- " filertype recognition, highlight syntax
- filetype plugin indent on
- syntax on
- " row number and width
- set number
- set tw=79
- set nowrap
- set fo-=t
- set colorcolumn=80
- highlight ColorColumn ctermbg=233
- " tab to 4 spaces
- set tabstop=4
- set softtabstop=4
- set shiftwidth=4
- set shiftround
- set expandtab
- " search
- set incsearch
- set hlsearch
- set ignorecase
- set smartcase
- " no backupu & swapa
- set nobackup
- set nowritebackup
- set noswapfile
- " ctrlp
- let g:ctrlp_max_height = 30
- set wildignore+=*.pyc
- set wildignore+=*build/*
- set wildignore+=*dist/*
- set wildignore+=*.egg-info/*
- set wildignore+=*/coverage/*
- " python-mode
- map <Leader>g :call RopeGotoDefinition()<CR>
- let ropevim_enable_shortcuts = 1
- let g:pymode_rope_goto_def_newwin = "vnew"
- let g:pymode_rope_extended_complete = 1
- let g:pymode_breakpoint = 0
- let g:pymode_syntax = 1
- let g:pymode_virtualenv = 1
- " OmniPopup
- set completeopt=longest,menuone
- function! OmniPopup(action)
- if pumvisible()
- if a:action == 'j'
- return "\<C-N>"
- elseif a:action == 'k'
- return "\<C-P>"
- endif
- endif
- return a:action
- endfunction
- inoremap <silent><C-j> <C-R>=OmniPopup('j')<CR>
- inoremap <silent><C-k> <C-R>=OmniPopup('k')<CR>
- if v:ctype =~ "UTF-8"
- set tenc=utf8
- else
- set tenc=latin2
- endif
- set enc=utf8
- " latin2 catches everything; it makes no sense to set anything after it
- set fileencodings=ucs-bom,utf-8,latin2
- set smartindent
- let g:indent_guides_auto_colors = 1
- set tabpagemax=50
- set scrolloff=3
- set wildmenu
- " insert newline without entering input mode
- nnoremap <C-J> a<CR><Esc>k$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement