Skip to content

Instantly share code, notes, and snippets.

@pstiasny
Created August 20, 2013 10:01
Show Gist options
  • Save pstiasny/6279598 to your computer and use it in GitHub Desktop.
Save pstiasny/6279598 to your computer and use it in GitHub Desktop.
set shell=/bin/sh
" vundle
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
" paczki
Bundle 'tpope/vim-fugitive'
Bundle 'git://git.wincent.com/command-t.git'
Bundle 'SirVer/ultisnips'
Bundle 'majutsushi/tagbar'
Bundle 'Valloric/YouCompleteMe'
Bundle 'mileszs/ack.vim'
Bundle 'skammer/vim-css-color'
" nadpisuje przeszukiwanie z t/f!
nmap ; :
vmap ; :
set mouse=a
set shiftwidth=4
set tabstop=4
set textwidth=80
set expandtab
set nu
" set cindent
set autoindent
set scrolloff=3 " następne linijki zawsze widoczne przy przewijaniu
set ruler
set showcmd
set laststatus=2 " zawsze pasek stanu
set wildmenu " wyświetalnie tab-podpowiedzi w cmd
" set hlsearch
set gdefault " automatyczne /g w regexach
set ignorecase
set smartcase " case-sensitive tylko gdy wielkie litery we wzorcu
" nie pytaj o zapisywanie przy zmianie bufora
set hidden
set backspace=indent,eol,start
nmap <C-Tab> :tabn<CR>
nmap <leader>h :nohl<CR>
" Tagbar
nmap <leader>g :TagbarToggle<CR>
" przełączanie między oknami przez F1-F4
nmap <F1> 1<C-w><C-w>
nmap <F2> 2<C-w><C-w>
nmap <F3> 3<C-w><C-w>
nmap <F4> 4<C-w><C-w>
" make with F8 and \mm
nmap <F8> :wa<CR>:make<CR>
nmap <leader>mm :wa<CR>:make<CR>
" make test with CTRL-F8 and \mt
nmap <C-F8> :wa<CR>:make test<CR>
nmap <leader>mt :wa<CR>:make test<CR>
" paste and autoindent
nmap <leader>p p`[=`]
nmap <leader>P P`[=`]
" niedziałające w texowym pluginie
autocmd FileType tex imap `. \cdot
" znajduje wpisy w quickfix w istniejacym oknie
set switchbuf=useopen,usetab,newtab
filetype on
filetype plugin on
filetype indent on
syn on
set grepprg=grep\ -nH\ $*
let g:tex_flavor='latex'
" set runtimepath+=/usr/share/vim/addons/
:runtime! ftplugin/man.vim " :Man, \K
set undofile
"colorscheme wombat256
if has('gui_running')
"let g:Powerline_symbols = 'fancy'
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment