summaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc47
1 files changed, 47 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
new file mode 100644
index 0000000..1ce07c0
--- /dev/null
+++ b/.vimrc
@@ -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