-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
67 lines (51 loc) · 1.09 KB
/
vimrc
File metadata and controls
67 lines (51 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
let mapleader = "'"
nnoremap 's :%s/
nnoremap <C-n> :Ntree<CR>
nnoremap 't :tabnew<CR>
nnoremap <C-Bslash> :tab :terminal ++close<CR>
nnoremap 't :tabnew<CR>
nnoremap gb <C-^>
nnoremap 'h :Jumps<CR>
nnoremap <C-j> :move +1<CR>
nnoremap <C-k> :move -2<CR>
nnoremap "t :!ctags -R .<CR>
" For fast moving
set relativenumber
set number
" UI setup
set colorcolumn=79
set cursorline
set wildmenu
set ignorecase
set hlsearch
" Moving setup
set scrolloff=10
set scroll=5
set shiftwidth=4
set tabstop=4
set autoindent
set laststatus=2
filetype on
filetype plugin on
filetype indent on
syntax on
if $XDG_SESSION_TYPE == "wayland"
vnoremap <C-y> :w !wl-copy -n<CR><CR>
elseif $XDG_SESSION_TYPE == "x11"
vnoremap <C-y> :w !xclip -i -sel c<CR><CR>
endif
nnoremap "p :so:PlugInstall<CR>
call plug#begin()
Plug 'tpope/vim-surround'
Plug 'nanotech/jellybeans.vim'
Plug 'SirVer/ultisnips'
Plug 'dense-analysis/ale'
Plug 'lervag/vimtex'
Plug 'honza/vim-snippets'
Plug 'junegunn/fzf.vim'
Plug 'takac/vim-hardtime'
Plug 'kaarmu/typst.vim'
call plug#end()
color jellybeans
color transparency
let g:hardtime_default_on = 1