52 lines
1,002 B
VimL
52 lines
1,002 B
VimL
cmap w!! w !sudo tee > /dev/null %
|
|
filetype indent on
|
|
filetype on
|
|
filetype plugin on
|
|
imap jk <Esc>
|
|
let g:netrw_fastbrowse = 0
|
|
nmap <C-H> :bp<CR>
|
|
nmap <C-J> jjjjjjjjjjjjjjjjjjjjj
|
|
nmap <C-K> kkkkkkkkkkkkkkkkkkkkk
|
|
nmap <C-L> :bn<CR>
|
|
nmap <Enter> o<Esc>
|
|
nnoremap <Leader>s :%s/\<<C-r><C-w>\>/
|
|
set backspace=indent,eol,start
|
|
set cursorcolumn
|
|
set encoding=utf-8
|
|
set expandtab
|
|
set gdefault
|
|
set hidden
|
|
set hlsearch
|
|
set ignorecase
|
|
set incsearch
|
|
set lazyredraw
|
|
set list
|
|
set listchars=tab:╾╌,trail:·,extends:↦,precedes:↤,nbsp:_
|
|
set noerrorbells
|
|
set number
|
|
set ruler
|
|
set scrolloff=10
|
|
set shiftwidth=4
|
|
set showbreak=↪
|
|
set showcmd
|
|
set smartcase
|
|
set splitbelow
|
|
set tabstop=4
|
|
set title
|
|
set updatetime=250
|
|
set visualbell
|
|
set wildmenu
|
|
set wildmode=longest,list
|
|
set wrap
|
|
syntax enable
|
|
vmap <Enter> <Esc>
|
|
if has('nvim')
|
|
set inccommand=nosplit
|
|
set relativenumber
|
|
augroup every
|
|
autocmd!
|
|
au InsertEnter * set norelativenumber
|
|
au InsertLeave * set relativenumber
|
|
augroup END
|
|
endif
|