Skip to content

Instantly share code, notes, and snippets.

@pepi55
Last active December 24, 2020 12:42
Show Gist options
  • Save pepi55/a2dec6294a75f3f3fef32a657fedcd32 to your computer and use it in GitHub Desktop.
Save pepi55/a2dec6294a75f3f3fef32a657fedcd32 to your computer and use it in GitHub Desktop.
Simple vimrc
call plug#begin() "'~/.vim/bundle/'
" Plugins
Plug 'tpope/vim-surround'
" Themes
Plug 'sjl/badwolf'
Plug 'tomasr/molokai'
Plug 'chriskempson/vim-tomorrow-theme'
call plug#end()
syntax on
filetype plugin indent on
set number
set encoding=utf-8
set completeopt-=preview
set undodir=$HOME/.vim/undo
set viewdir=$HOME/.vim/view
set undofile
set nocp
set shiftwidth=2
set tabstop=2
set showcmd
set wrap
set laststatus=2
set statusline=\ %L\ lines,\ %p%%\ %y\ %<%f\ %h%w%m%r%=%-14.(%l,%c%V%)\ %P\
set ignorecase
set smartcase
set noswapfile
set linebreak
set fileformat=unix
set fileformats=unix,dos
scriptencoding "utf-8"
set encoding=utf-8
set listchars=tab:\›\ ,trail:×
set list
set pastetoggle=<F4>
colorscheme badwolf
highlight StatusLine ctermbg=black ctermfg=lightgrey
nnoremap <leader>ev <C-w><C-v><C-l>:e $MYVIMRC<cr>
nnoremap <c-c> <esc>
vnoremap <C-c> <Esc>gV
onoremap <C-c> <Esc>
inoremap <C-c> <Esc>`^
inoremap {<CR> {<CR>}<Esc>O
inoremap (<CR> (<CR>)<Esc>O
inoremap [<CR> [<CR>]<Esc>O
inoremap <Up> <NOP>
noremap <Up> <NOP>
inoremap <Down> <NOP>
noremap <Down> <NOP>
inoremap <Left> <NOP>
noremap <Left> <NOP>
inoremap <Right> <NOP>
noremap <Right> <NOP>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment