Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "execute pathogen#infect()
- "podstawy
- syntax on
- filetype plugin indent on
- autocmd FileType python setlocal completeopt-=preview
- set nocompatible "dont act like vi
- set cmdheight=1
- " Status
- " set statusline=\ %r%F\ \ %l/%L
- " set laststatus=2
- " Only break the line on whitespace
- set nolist wrap linebreak breakat&vim
- " Explore shortcut
- map <C-e> :Explore <CR>
- " mouse
- set mouse=a
- " cols
- set columns=80
- " indenting
- set softtabstop=4
- set expandtab
- set tabstop=4
- set shiftwidth=4
- set autoindent
- set smartindent
- " PEP8 indentation
- au BufNewFile,BufRead *.py
- \ set tabstop=4 |
- \ set softtabstop=4 |
- \ set shiftwidth=4 |
- \ set textwidth=79 |
- \ set expandtab |
- \ set autoindent |
- \ set fileformat=unix |
- " enable folding
- set foldmethod=indent
- set foldlevel=99
- "poruszanie graficzniej
- map <Down> g<Down>
- map <Up> g<Up>
- nmap j gj
- nmap k gk
- vmap j gj
- vmap k gk
- imap <Down> <Esc>g<Down>a
- "katalogi
- set encoding=utf8
- set backupdir=~/.vim/backup//
- set directory=~/.vim/swap//
- set undodir=~/.vim/undo//
- " selection
- map <c-a> <Esc>ggVG<CR>
- " undo (ctrl+R is redo)
- nmap <c-z> u
- imap <c-z> <Esc>u
- " navigating
- imap <C-Up> <Esc>ddkPi
- nmap <C-Up> ddkP
- imap <C-Down> <Esc>ddjPi
- nmap <C-Down> ddjP
- " general
- set backspace=indent,eol,start
- "set relativenumber
- "set number
- set noruler
- set undolevels=150
- " searching
- set nohlsearch
- set ignorecase
- " visuals
- set background=dark
- " mapping, rem to disable XOFF signal
- nmap <c-s> :w<CR>
- imap <c-s> <Esc>:w<CR>a
- nmap <c-d> :q<CR>
- inoremap <c-d> <Esc>:q<CR>
- noremap! <C-BS> <C-w>
- noremap! <C-h> <C-w>
- noremap! <C-Del> <Esc>dw
- "noremap! <C-h> <C-w>
- map <F6> :setlocal spell! spelllang=en<CR>
- map <F7> :setlocal spell! spelllang=pl<CR>
- "autocmd FileType html inoremap ;b <b></b><Space><++><Esc>FbT>i
- noremap <c-c> "*y
- noremap <c-v> "*p
- noremap <c-C> "+y
- noremap <c-V> "+p
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement