Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set noerrorbells
- set tabstop=2 softtabstop=2
- set shiftwidth=2
- set expandtab
- set smartindent
- set nu
- set nowrap
- set smartcase
- set noswapfile
- set nobackup
- set undodir=~/.vim/undodir
- set undofile
- set incsearch
- set relativenumber
- set splitbelow
- set nocompatible
- "set colorcolumn=80
- highlight ColorColumn ctermbg=0 guibg=lightgrey
- call plug#begin('~/.vim/plugged')
- Plug 'morhetz/gruvbox'
- Plug 'preservim/nerdtree'
- Plug 'Xuyuanp/nerdtree-git-plugin'
- Plug 'tpope/vim-fugitive'
- Plug 'vim-scripts/DoxygenToolkit.vim'
- Plug 'vim-scripts/taglist.vim'
- Plug 'sheerun/vim-polyglot'
- Plug 'xolox/vim-session'
- Plug 'xolox/vim-misc'
- Plug 'fedorov7/vim-uefi'
- Plug 'romainl/Apprentice'
- call plug#end()
- colorscheme gruvbox
- "colorscheme apprentice
- set bg=dark
- let mapleader=" "
- "Trailing whitespaces
- highlight ExtraWhitespace ctermbg=red guibg=red
- match ExtraWhitespace /\s\+$/
- au BufWinEnter * match ExtraWhitespace /\s\+$/
- au InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
- au InsertLeave * match ExtraWhitespace /\s\+$/
- au BufWinLeave * call clearmatches()
- "NERDTree keymaps
- nnoremap <leader>t :NERDTreeToggle<CR>
- "Remove all trailing whitespace by pressing F5
- nnoremap <F5> :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar><CR>
- "Paste in visual mode without overwriting yank buffer
- vnoremap p "_dP
- let g:session_autosave='no'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement