2024-03-24 23:13:50 +00:00
|
|
|
set clipboard+=unnamed
|
|
|
|
|
|
|
|
set number
|
|
|
|
set relativenumber
|
|
|
|
set signcolumn=auto
|
2024-10-21 14:13:58 +00:00
|
|
|
set colorcolumn=0
|
2024-03-24 23:13:50 +00:00
|
|
|
set cursorline
|
|
|
|
|
|
|
|
set smartindent
|
|
|
|
set tabstop=4
|
|
|
|
set shiftwidth=4
|
|
|
|
set ls=2
|
|
|
|
|
|
|
|
set hlsearch
|
|
|
|
set incsearch
|
|
|
|
set ignorecase
|
|
|
|
set scrolloff=10
|
|
|
|
|
|
|
|
set wildmenu
|
|
|
|
|
|
|
|
let g:mapleader=" "
|
|
|
|
|
|
|
|
nnoremap <leader>w :w<CR>
|
|
|
|
|
|
|
|
nnoremap <C-h> <C-w>h
|
|
|
|
nnoremap <C-j> <C-w>j
|
|
|
|
nnoremap <C-k> <C-w>k
|
|
|
|
nnoremap <C-l> <C-w>l
|
|
|
|
|
|
|
|
xnoremap J :move '>+1<CR>gv=gv
|
|
|
|
xnoremap K :move '<-2<CR>gv=gv
|
|
|
|
nnoremap J mzJ`z
|
|
|
|
|
|
|
|
xnoremap <Tab> >gv
|
|
|
|
xnoremap <S-Tab> <gv
|
|
|
|
|
|
|
|
nnoremap n nzzzv
|
|
|
|
nnoremap N Nzzzv
|
|
|
|
|
|
|
|
nnoremap <leader>y "+y
|
|
|
|
vnoremap <leader>y "+y
|
|
|
|
nnoremap <leader>Y "+Y
|
|
|
|
nnoremap <leader>d "_d
|
|
|
|
vnoremap <leader>d "_d
|
|
|
|
|
|
|
|
nnoremap <silent> Q @@
|
|
|
|
|
|
|
|
vnoremap <leader>rs :s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>
|
|
|
|
nnoremap <leader>ra :%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>
|
|
|
|
nnoremap <leader>rc :%s/\<<C-r><C-w>\>/<C-r><C-w>/gcI<Left><Left><Left><Left>
|
|
|
|
|
|
|
|
nnoremap <leader>m :!make<CR>
|
|
|
|
|
|
|
|
augroup SearchHighlight
|
|
|
|
autocmd!
|
|
|
|
autocmd CmdlineLeave /,\? :nnoremap <buffer> <Esc> :noh<CR>
|
|
|
|
autocmd CmdlineChanged /,\? :nnoremap <buffer> <Esc> :noh<CR>
|
|
|
|
augroup END
|
|
|
|
|
2024-10-21 14:47:32 +00:00
|
|
|
let g:highlightedyank_highlight_duration = 100
|
2024-03-24 23:13:50 +00:00
|
|
|
|
|
|
|
Plug 'tpope/vim-surround'
|
2024-10-21 14:13:58 +00:00
|
|
|
Plug 'tpope/vim-commentary'
|
2024-10-21 14:47:32 +00:00
|
|
|
Plug 'machakann/vim-highlightedyank'
|
|
|
|
|