2
0
Files
dot/.vimrc

46 lines
775 B
VimL

set nocompatible
set encoding=utf-8
set fileencoding=utf-8
set number
set ruler
set cursorline
set showmatch
set laststatus=2
set wildmenu
set showcmd
set tabstop=4
set shiftwidth=4
set softtabstop=4
set autoindent
set smartindent
set incsearch
set hlsearch
set ignorecase
set smartcase
set wrapscan
set backspace=indent,eol,start
set clipboard=unnamed
set mouse=a
set ttimeoutlen=10
set undofile
set undodir=~/.vim/undo
let g:autosave = 1
inoremap <C-j> <Esc>
nnoremap Q :q!<CR>
vnoremap v V
" load plugins from ~/.vim/plugged/
for s:dir in glob('~/.vim/plugged/*', 0, 1)
if isdirectory(s:dir)
exe 'set rtp+=' . s:dir
endif
endfor
syntax on
filetype plugin indent on
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif