This repository was archived by the owner on Mar 31, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathold.vim
More file actions
executable file
·113 lines (97 loc) · 2.57 KB
/
old.vim
File metadata and controls
executable file
·113 lines (97 loc) · 2.57 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
" General {{{
set exrc
set secure
" Colors
syntax enable
highlight Normal ctermbg=NONE
highlight Normal guibg=NONE
set termguicolors
colorscheme dracula
" Formatting
set shiftwidth=4 smarttab
set expandtab
set tabstop=8 softtabstop=0
set foldenable
set foldmethod=marker
set linebreak
" Visual
set incsearch
set foldmethod=marker
set noshowmode
set number
set guicursor=n-v-c:block,i-ci-ve:ver25,r-cr:hor20,o:hor50
\,a:blinkwait700-blinkoff400-blinkon250-Cursor/lCursor
\,sm:block-blinkwait175-blinkoff150-blinkon175
set list
set scrolloff=8
set signcolumn=yes
fun! SetRelativenumber()
if &filetype != "help"
set relativenumber
endif
endfun
autocmd BufEnter,FocusGained * call SetRelativenumber()
autocmd BufLeave,FocusLost * set norelativenumber
" Misc
set undodir=~/.local/share/nvim/undo
set undofile
set hidden
set shortmess+=F
set nrformats+=alpha
set shortmess+=c
syntax enable
filetype indent on
set autoindent
set clipboard+=unnamedplus
let mapleader=' '
" }}}
" Mappings {{{
" General
nnoremap <C-U> <C-U>zz
nnoremap <C-D> <C-D>zz
nnoremap n nzz
nnoremap N Nzz
nnoremap <C-H> <C-W>h
nnoremap <C-J> <C-W>j
nnoremap <C-K> <C-W>k
nnoremap <C-L> <C-W>l
"au CursorHold <buffer> lua vim.lsp.buf.document_highlight()
"au CursorMoved <buffer> lua vim.lsp.buf.clear_references()
" }}}
" Git Gutter {{{
let g:gitgutter_sign_added = '|'
let g:gitgutter_sign_modified = '|'
let g:gitgutter_sign_removed = '|'
let g:gitgutter_sign_modified = '|'
let g:gitgutter_sign_modified_removed = '|'
au VimEnter * GitGutterLineNrHighlightsEnable
au VimEnter * highlight link GitGutterAddLineNr DiffAdd
au VimEnter * highlight link GitGutterChangeLineNr DiffChange
au VimEnter * highlight link GitGutterDeleteLineNr DiffDelete
set foldtext=gitgutter#fold#foldtext()
" }}}
" Snippets {{{
let g:UltiSnipsSnippetDirectories=["mySnippets",$HOME."/.config/nvim/mySnippets"]
let g:UltiSnipsExpandTrigger = '<C-e>'
let g:UltiSnipsJumpForwardTrigger = '<C-j>'
let g:UltiSnipsJumpBackwardTrigger = '<C-k>'
let g:UltiSnipsEditSplit = 'vertical'
" }}}
" Jupyter {{{
hi! link JupyniumCodeCellSeparator CursorLine
hi! link JupyniumMarkdownCellSeparator CursorLine
hi! link JupyniumMarkdownCellContent CursorLine
hi! link JupyniumMagicCommand Keyword
" }}}
" Aglaea (vim markdown and note taking) {{{
au FileType markdown set conceallevel=2
let g:vim_markdown_conceal = 1
let g:vim_markdown_math = 1
let g:vim_markdown_autowrite = 1
let g:vim_markdown_strikethrough = 1
let g:vim_markdown_frontmatter = 1
let g:vim_markdown_borderless_table = 1
" }}}
" Copilot {{{
let g:copilot_no_tab_map = v:true
" }}}