2023-12-29 15:52:19 +00:00
|
|
|
set nu
|
|
|
|
set relativenumber
|
2024-02-24 21:04:19 +00:00
|
|
|
set signcolumn=yes
|
|
|
|
set colorcolumn=80
|
|
|
|
|
|
|
|
set smartindent
|
2023-12-29 15:52:19 +00:00
|
|
|
set tabstop=4
|
|
|
|
set shiftwidth=4
|
|
|
|
set ls=2
|
2024-02-24 21:04:19 +00:00
|
|
|
|
|
|
|
set hls
|
|
|
|
set is
|
|
|
|
set ic
|
2024-01-14 16:40:13 +00:00
|
|
|
set scrolloff=10
|
2023-12-29 15:52:19 +00:00
|
|
|
|
2024-02-24 21:04:19 +00:00
|
|
|
let g:mapleader=" "
|
|
|
|
|
|
|
|
syntax on
|
|
|
|
colorscheme onedark
|
2024-01-14 16:40:13 +00:00
|
|
|
|
|
|
|
nnoremap <leader>w :w<CR>
|
|
|
|
nnoremap <leader>e :E<CR>
|
2023-12-29 15:52:19 +00:00
|
|
|
|
|
|
|
xnoremap J :move '>+1<CR>gv=gv
|
|
|
|
xnoremap K :move '<-2<CR>gv=gv
|
2024-01-14 16:40:13 +00:00
|
|
|
nnoremap J mzJ`z
|
2023-12-29 15:52:19 +00:00
|
|
|
|
|
|
|
xnoremap <Tab> >gv
|
|
|
|
xnoremap <S-Tab> <gv
|
|
|
|
|
|
|
|
nnoremap n nzzzv
|
|
|
|
nnoremap N Nzzzv
|
|
|
|
|
2024-01-14 16:40:13 +00:00
|
|
|
nnoremap <leader>y "+y
|
|
|
|
vnoremap <leader>y "+y
|
|
|
|
nnoremap <leader>Y "+Y
|
|
|
|
nnoremap <leader>d "_d
|
|
|
|
vnoremap <leader>d "_d
|
|
|
|
|
|
|
|
nnoremap <silent> Q @@
|
|
|
|
|
2024-02-24 21:04:19 +00:00
|
|
|
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>
|
2024-01-14 16:40:13 +00:00
|
|
|
|
|
|
|
nnoremap <leader>m :!make<CR>
|
|
|
|
|
|
|
|
augroup SearchHighlight
|
2024-02-24 21:04:19 +00:00
|
|
|
autocmd!
|
|
|
|
autocmd CmdlineLeave /,\? :nnoremap <buffer> <Esc> :nohls<CR>
|
|
|
|
autocmd CmdlineChanged /,\? :nnoremap <buffer> <Esc> :nohls<CR>
|
2024-01-14 16:40:13 +00:00
|
|
|
augroup END
|
|
|
|
|