-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.vim
More file actions
74 lines (58 loc) · 1.95 KB
/
Copy pathinit.vim
File metadata and controls
74 lines (58 loc) · 1.95 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
" Locate python in windows environment
" Assumes neovim's python is located within a conda virtual environment named "neovim"
if has('win64') || has('win32') || has('win16')
let g:python3_host_prog = '~/AppData/Local/miniconda3/envs/neovim/python.exe'
endif
let s:config_root = stdpath('config')
function! s:SourceConfig(filename) abort
execute 'source' fnameescape(s:config_root . '/' . a:filename)
endfunction
" Enable mouse scrolling and selecting in nvim-qt
set mouse=a
" Scroll before hitting the edge of the window
set scrolloff=5
set sidescrolloff=5
" Disable entering visual mode when dragging mouse
noremap <LeftDrag> <LeftMouse>
noremap! <LeftDrag> <LeftMouse>
" set directories for backup, swap, and undo
set backupdir=~/.vim/backup//
set directory=~/.vim/swap//
set undodir=~/.vim/undo//
if !exists('$VSCODE_PID') " If not running in VS Code, load normally
" Load plugins first to prevent errors
for s:config_file in [
\ 'plugins.vim',
\ 'format.vim',
\ 'quickui.vim',
\ 'theme.vim',
\ 'coc.vim',
\ 'keybindings.vim',
\ ]
call s:SourceConfig(s:config_file)
endfor
else
" If running in vscode, load vsinit.vim
call s:SourceConfig('vsinit.vim')
endif
" Enable folding
set foldenable
set foldmethod=indent
set foldlevel=99
" Give more space for displaying messages at the bottom
set cmdheight=2
" Use file names as title of terminal while editing
set title
" Ignore certain file types and directories from fuzzy finding
set wildignore+=*.bmp,*.gif,*.ico,*.jpg,*.png,*.pdf,*.psd,*.hdr
set wildignore+=node_modules/*,target/*
" Make searches case insensitive
set ignorecase
" Override ignorecase option if search contains uppercase characters
set smartcase
" Use OS clipboard
set clipboard+=unnamedplus
" Don't pass messages to |ins-completion-menu|.
set shortmess+=c
" Enable 24-bit RGB color in the TUI
set termguicolors