init
This commit is contained in:
38
.vimrc
Normal file
38
.vimrc
Normal file
@@ -0,0 +1,38 @@
|
||||
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
|
||||
|
||||
syntax on
|
||||
filetype plugin indent on
|
||||
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
|
||||
Reference in New Issue
Block a user