Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- syntax on
- filetype on
- call plug#begin('~/.vim/plugged')
- Plug 'tomtom/tcomment_vim' " commentary plugin
- Plug 'ctrlpvim/ctrlp.vim' " ctrlP
- Plug 'raimondi/delimitmate' " autoclose
- Plug 'tpope/vim-surround' " surrond plugin
- Plug 'danielwe/base16-vim' " base16 color schemes
- call plug#end()
- if filereadable(expand("~/.vimrc_background"))
- let base16colorspace=256
- source ~/.vimrc_background
- endif
- let delimitMate_expand_cr = 1
- " Tabs
- set softtabstop=0
- set shiftwidth=4
- set tabstop=4
- " Numbers
- set number
- " set relativenumber
- " Search
- set hlsearch
- set incsearch
- set ignorecase
- " different cursors for diffrent modes
- let &t_SI = "\<Esc>[6 q"
- let &t_SR = "\<Esc>[4 q"
- let &t_EI = "\<Esc>[2 q"
- " show tabs, spaces and newlines
- set list lcs=space:·,eol:↲,tab:»\
- autocmd BufEnter * silent! lcd %:p:h
- autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
- " highlight unwanted whitespace
- highlight ExtraWhitespace ctermbg=red guibg=red
- match ExtraWhitespace /\s\+$/
- " Mappings
- " Open shell wiht Ctrl-Z
- map <C-Z> :shell<CR>
- " Search buffers
- map <C-B> :CtrlPBuffer<CR>
- " Press return to get out of hlsearch
- nnoremap <CR> :nohlsearch<CR><CR>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement