Skip to content

Instantly share code, notes, and snippets.

@piotr-rudnik
Created April 26, 2018 14:48
Show Gist options
  • Save piotr-rudnik/f8995e191baa4d4cb5640f08227f7c59 to your computer and use it in GitHub Desktop.
Save piotr-rudnik/f8995e191baa4d4cb5640f08227f7c59 to your computer and use it in GitHub Desktop.
set nocompatible " be iMproved, required
filetype off " required
:command! -nargs=1 Silent execute ':silent !'.<q-args> | execute ':redraw!'
map <F1> <esc>:NERDTreeToggle<CR> O <S-Right>
map <F2> <ESC>:CommandT .<CR>
map <F3> <esc>:CommandTFlush <Enter> :NERDTreeFind <Enter><CR>
imap <F5> <Esc>:Silent echo 1 > /tmp/watcher <CR>
:imap <F9> <Esc><c-y>,i
:nmap <silent> <S-Left> :wincmd h<CR>
:nmap <silent> <S-Right> :wincmd l<CR>
inoremap jj <esc>
set tabstop=4
set shiftwidth=4
set expandtab
set nowrap
set relativenumber
highlight Normal ctermfg=white ctermbg=black
set background=dark
syntax on
set t_Co=256
set ruler
set number
"vmap <C-c> "+y
set clipboard=unnamedplus
let g:auto_save = 1
set uc=0
set hlsearch
set incsearch " szukanie
" zapamietywanie informacji o markach
set viminfo='10,\"100,:20,%,n~/.viminfo
set wildignore=node_modules
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'vim-scripts/vim-auto-save'
Plugin 'scrooloose/nerdtree'
Plugin 'wincent/command-t'
call vundle#end()
nnoremap <C-t> <ESC><Home>i<Template name="<End>"><Enter></template><ESC><Up><End>o<Tab>
nnoremap <C-q> :wq<Enter>
filetype plugin indent on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment