diff options
author | Robin Obůrka <r.oburka@gmail.com> | 2013-11-28 16:43:46 +0100 |
---|---|---|
committer | Robin Obůrka <r.oburka@gmail.com> | 2013-11-28 16:43:46 +0100 |
commit | 677b38abb904ba0d080436d6c20a1d60b59f2acc (patch) | |
tree | 982ee6866703cb2476b1a816c5ad3ed4a625e967 /.vimrc | |
download | vim_sync-677b38abb904ba0d080436d6c20a1d60b59f2acc.tar.xz |
Initial commit
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 47 |
1 files changed, 47 insertions, 0 deletions
@@ -0,0 +1,47 @@ +set nocompatible "Zrusit kompatibilitu s vi + +set ruler "Zobrazuj pozici kurzoru +set showmode "V jakem jsem modu, pro lepsi orientaci +set showcmd "Postupne ukazuj prikaz + +set linebreak "Zalamuj radky pouze ve slovech + +set number "Ukazuj cisla radku +set showmatch "Paruj zavorky +set smartindent "Chytre odsazovani u zdrojaku +set tabstop=4 "Tabulatory na 4 - sila zvyku +set shiftwidth=4 "Velikost odsazeni +syntax on "Zapnou zvyraznovani +colorscheme evening "Zvolit format zvyraznovani + +set ignorecase "Ignoruj pri vyhledavani +set incsearch "Pri vyhledavani prubezne prvni shodu +set wrapscan "Pri dosazeni konce hledej od zacatku + +set autowrite "Ulozit automaticky pri prechodu do jineho bufferu +set confirm "Operace :q a :e nefailuji, ale zeptat se + +set mouse=a + +set spelllang=cs "Pokud budu nekdy pouzivat jazyk tak nejspis cestinu +set mousemodel=popup "Umoznuje na mysitko ve gvimu zeditovat spatne vyspelovane slovo +" ======================================================================== +au BufEnter * match RedundantSpaces /\s\+$\| \+\ze\t/ "Oznac nadbytecne mezery +highlight RedundantSpaces ctermbg=red guibg=red +imap <Home> <esc>I +map <F2> :w<Enter> +imap <F2> <esc>:w<Enter>a +map <F3> mmgggqG'm +imap <F3> <esc>mmgggqG'ma +map <F4> {gq} +imap <F4> <esc>{gq}a +map <M-PageUp> :bp<Enter> +imap <M-PageUp> <Esc>:bp<Enter>a +map <M-PageDown> :bn<Enter> +imap <M-PageDown> <Esc>:bn<Enter>a +imap <C-F> </><Esc>2F<lywf>f/pF<i +imap <C-D> </><Esc>2F<lywf>f/pF<i<Enter><Enter><Up><Tab> +map <F12> :set textwidth=80<Enter> +map <S-F12> :set textwidth=0<Enter> +" ======================================================================= +source ~/.vim/hicursorwords.vim |