Source sourcefiles.vim in ./appdata/local/nvim/init.vim
See also :echo stdpath('config')
cd ~/appdata/local/nvim
mkdir bundle
cd bundle
git clone https://github.com/VundleVim/Vundle.vim.git
Install git:
https://git-scm.com/install/windows
check if Git is in PATH:
PSH > [Environment]::GetEnvironmentVariable("PATH") -split ';' | sort | select-string 'git'
If no:
PSH > [Environment]::SetEnvironmentVariable("PATH", $env:PATH + ";$HOME\AppData\Local\Programs\Git\bin", "User")
open vim, :PLuginInstall -> restart vim
# install nvim
sudo apt install nvim -y
# download config
git clone https://github.com/Momro/vimconfig ~/vimconfig
# create nvim config folder
mkdir ~/.config/nvim
# link custom config in nvim folder
ln -s ~/vimconfig/sourcefiles.vim ~/.config/nvim/init.vim
ln -s ~/vimconfig/colors ~/.config/nvim/colors
# get vundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/vimconfig/bundle/Vundle.vim
# enter vim and install plugins
vim
:PluginInstall
- gt / gT: forward/backward in Tabs
- C-h C-l: hop into NERDTree and back
- line under cursor
- relative numbers
- syntax highlighting
- vim-airline
- case-insensitive search
- undo over session-borders
- autosave
- fzf
- nerdtree
- nerdcommenter?
- vim-snippets
- ultisnips
- youcompleteme
- fzf
cd ~/appdata/local/programs/
git clone https://github.com/junegunn/fzf
cd fzf
.\install.ps1
[Environment]::SetEnvironmentVariable("PATH", $env:PATH + ";$HOME\AppData\Local\Programs\fzf\bin", "User")
Start fzf with <leader>f <type file>
- vim-python-function-expander
- syntastic
- vim-colors-solarized
- papercolor-theme
- molokai
- delimitmate
- vim-dispatch
- jedi-vim
- limelight
- sparkup
- vim-surround
- syntastic
- tabular
- VOoM
cd ~/vimconfig/bundle/
apt install -y cmake python3-dev build-essential pip
git clone https://github.com/ycm-core/YouCompleteMe
git submodule update --init --recursive
cd YouCompleteMe
./install.py --verbose
The install.py will show something like this at the end, which is not abnormal:
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -I/usr/include/python3.12 -c regex_3/_regex.c -o /home/achim/vimconfig/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.linux-x86_64-cpython-312/regex_3/_regex.o
In file included from /usr/include/python3.12/unicodeobject.h:1013,
from /usr/include/python3.12/Python.h:51,
from regex_3/_regex.c:50:
In function ‘PyUnicode_GET_LENGTH’,
inlined from ‘unicode_slice’ at regex_3/_regex.c:18618:14,
inlined from ‘get_slice’ at regex_3/_regex.c:18646:16,
inlined from ‘state_get_group’ at regex_3/_regex.c:20591:12,
inlined from ‘pattern_findall’ at regex_3/_regex.c:22182:21:
/usr/include/python3.12/cpython/unicodeobject.h:282:35: warning: array subscript ‘PyASCIIObject[0]’ is partly outside array bounds of ‘PyObject[1]’ {aka ‘struct _object[1]’} [-Warray-bounds=]
282 | return _PyASCIIObject_CAST(op)->length;
| ^
In file included from /usr/include/python3.12/Python.h:44:
/usr/include/python3.12/object.h: In function ‘pattern_findall’:
/usr/include/python3.12/object.h:842:22: note: object ‘_Py_NoneStruct’ of size 16
842 | PyAPI_DATA(PyObject) _Py_NoneStruct; /* Don't use this directly */
| ^~~~~~~~~~~~~~
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -I/usr/include/python3.12 -c regex_3/_regex_unicode.c -o /home/achim/vimconfig/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.linux-x86_64-cpython-312/regex_3/_regex_unicode.o
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 /home/achim/vimconfig/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.linux-x86_64-cpython-312/regex_3/_regex.o /home/achim/vimconfig/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.linux-x86_64-cpython-312/regex_3/_regex_unicode.o -L/usr/lib/x86_64-linux-gnu -o /home/achim/vimconfig/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex/_regex.cpython-312-x86_64-linux-gnu.so
Continue to install and review the YCM installation:
vim
:PluginInstall
:qa
touch /tmp/test.py
echo "def hallowelt:" >> /tmp/test.py
vim /tmp/test.py
# -> ausprobieren