forked from odedniv/.vim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
137 lines (126 loc) · 4.12 KB
/
.vimrc
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
"
" By Eyal Karni
" PYTHONaATH C:\Users\ekarni\AppData\Local\Programs\Python\Python39\Lib\site-packages
":let $PYTHONsATHCOC='/Users/eyalkarni/impacket/impacket;/usr/local/lib/python2.7/site-packages;/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages'
" I will be applying some adaptations on my computer. That is only if the folder exists.
" some tips : remember commenter \Cc , remember <c-u> and <M-Bslash> windows , remember \C
" close NR
"
" We have q for s , alt-t for nmap tl current line m and ctrl-t for t all
" lines.
"ctrl-x ctrl-k directory (ctrl-v guess)
" Search workspace symbols
"nnoremap <silent> _s :<C-u>CocList -I symbols<cr>
" remember m-space to enter command and ~ to search and of course ` to enter
" and exit mode. and c-F to search (c-- c-= next back). but of course, c-` is c-o (btw alt-` is
" windows switcher). To print just this ` we have c-]).
"
" TODO: use set for inserts.
" ctrl-d ctrl-h ctrl-t for inside line search.
"
"Alt - q is the new macro recording ....
" also 'I and `I made to work.
" let us remember that ! is `
" Gdiffsplit! for merge!!!! onlyplg is minimal.
let $HOME=expand('~')
let g:minimal = 0
let g:onlyplug= "'Yggdroot/LeaderF'" "'neovim/nvim-lspconfig'
let g:on_ek_computer=1 " (filewritable("\\Users/ekarni")==2)
let g:on_vimr= ( $VIM=~# ".*VimR.*")
let g:no_spec_map=1
"silent !pyenv global 2.7
"g:vimloc is ~/.vim folder
let g:vimloc=split(&packpath,',')[0]
if g:minimal == 0
exe 'source' . " " . g:vimloc . "\\vimsettings.vim"
endif
"let &shell='/usr/bin/bash --login'
"source ~/.vim2/autoload/repmo.vim
"
"
if g:minimal == 1
call plug#begin()
"exe "Plug ". g:onlyplug
Plug 'Yggdroot/LeaderF'
" Plug 'Houl/vim-repmo' "repevt moves
call plug#end()
endif
"Plug 'ivanov/vim-ipython'
"Plug 'vim-scripts/mru.vim'
"Plug 'kchmck/vim-coffee-script'
if !has('nvim')
"use old vim session tools
"Plug 'thaerkh/vim-workspace'
"Plug 'xolox/vim-misc'
"Plug 'xolox/vim-session'
endif
":CocInstall coc-vimlsp
"if ver == "3.7"
"Plug 'vim-vdebug/vdebug'
"
"else
"
"Plug 'vim-vdebug/vdebug', {'tag':'v1.5.2'}
"endi
"Plug 'valloric/youcompleteme'
"Plug 'tpope/vim-sleuth'
"Plug 'roxma/vim-hug-neovim-rpc'
"Plug 'roxma/nvim-yarp'
"Plug 'Shougo/deoplete.nvim'
"Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
"Plug 'tpope/vim-repeat'
"Plug 'rbgrouleff/bclose.vim'
"Plug 'francoiscabrol/ranger.vim'
"Plug 'scrooloose/nerdtree'
"Plug 'terryma/vim-multiple-cursors'
"Plug 'davidhalter/jedi-vim' " Python autocomplete
"Plug 'Houl/vim-repmo' "repeat moves
"Plug 'sjl/gundo.vim'
"Plug 'w0rp/ale' " lint
"Plug 'IngoHeimbach/neco-vim'
"Plug 'inkarkat/vim-mark'
"Plug 'powerman/vim-plugin-AnsiEsc'
"Plug 'iamcco/vim-language-server'
"Plug 'neoclide/coc.nvim', {'tag': '*', 'do': { -> coc#util#install()}}
"Plug 'vim-jp/syntax-vim-ex'
"Plug 'neoclide/coc-python'
"Plug 'xavierd/clang_complete'
if has('nvim')
else
endif
" Plug 'AndrewRadev/undoquit.vim'
" Plug 'python-mode/python-mode', { 'branch': 'develop' }
" Plug 'artur-shaik/vim-javacomplete2'
" Plug 'fatih/vim-go'
" if has('gui_running')
" endif
" Plug 'severin-lemaignan/vim-minimap'
function! Runit()
exe 'source' . " " . g:vimloc . "\\newplug.vim"
exe 'source' . " " . g:vimloc . "\\t.lua"
exe 'source' . " " . g:vimloc . "\\secret.vim"
exe 'source' . " " . g:vimloc . "\\pluginSettings.vim"
exe 'source' . " " . g:vimloc . "\\hacks.vim"
exe 'lua' . " dofile('" . substitute(g:vimloc,'\','\\\\',"g") . "\\\\myinit.lua')"
"include math mappings
if filereadable(" " . g:vimloc . "\\math.vim")
exe 'source' . " " . g:vimloc . "\\math.vim"
endif
exe 'source' . " " . g:vimloc . "\\mappings.vim"
endfunction
if g:minimal==0
call Runit()
else
"exe 'source' . " " . g:vimloc . "\\newplug.vim"
"exe 'source' . " " . g:vimloc . "\\t.lua"
"Lazy load airlinv
"Lazy load quick-scopv
"exe 'source' . " " . g:vimloc . "\\hacks.vim"
"call CustomSources("newplug.vim")
"exe 'lua' . " dofile('" . substitute(g:vimloc,'\','\\\\',"g") . "\\\\myinit.lua')"
exe 'source' . " " . g:vimloc . "\\mappings.vim"
"exe
endif
if g:on_ek_computer
"py3 exec(open('c:\\Users\\ekarni\\mypy\\voicerec.py','rt').read())
endif