Add vim surround pluging

Remove configure_options as moving to neovim
Tweak vimrc for neovim compatability
Add neovim setup details to README
This commit is contained in:
Edward Litherland-Smith 2022-04-28 10:00:56 +01:00
parent aa68d37952
commit 5614060b0a
5 changed files with 29 additions and 17 deletions

3
.gitmodules vendored
View file

@ -65,3 +65,6 @@
[submodule "pack/plugins/start/ack"]
path = pack/plugins/start/ack
url = git@github.com:mileszs/ack.vim.git
[submodule "pack/plugins/start/vim-surround"]
path = pack/plugins/start/vim-surround
url = git@github.com:tpope/vim-surround.git

View file

@ -1,6 +1,29 @@
# Vim config
Personal configuration and plugins for Vim
## Installing neovim AppImage
```bash
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
chmod u+x nvim.appimage
mv nvim.appimage "$HOME/bin/."
# ./nvim.appimage
```
### To use with existing `~/.vimrc`
Add the following lines to neovim init file:
> set runtimepath^=~/.vim runtimepath+=~/.vim/after
> let &packpath = &runtimepath
> source ~/.vimrc
Using the following commands:
> :call mkdir(stdpath('config'), 'p')
> :exe 'edit '.stdpath('config').'/init.vim'
From [vim documentation](https://neovim.io/doc/user/nvim.html#nvim-from-vim)
### Enabling python support
Install `pynvim` package for python
## Miscellaneous settings
- Modifications in `pack/plugins/start/python-syntax`
- Edit `.git/modules/pack/plugins/start/python-syntax/info/exclude` to exclude `doc`

View file

@ -1,15 +0,0 @@
# VIM build options
To reset `configure` options: `make clean distclean`
## `./configure`
| Commmand | Effect |
| -------------------------------- | -------------------------------------------------------- |
| `--prefix=$HOME/.local` | Local install so don't need `sudo` |
| `--with-features=huge` | Enable all extra VIM features |
| `--enable-python3interp` | Compile with python3, *Don't be in virtual env for this* |
| `--with-python3-command=python3` | Compile with python3, *Don't be in virtual env for this* |
Standard command: `./configure --prefix="$HOME/.local" --with-features=huge --enable-python3interp --with-python3-command=/usr/bin/python3`
Heimdall specific (using pyenv install): `./configure --prefix="$HOME/.local" --with-features=huge --enable-python3interp --with-python3-command=/home/elitherl/.pyenv/versions/3.9.10/bin/python --with-python-config-dir=/home/elitherl/.pyenv/versions/3.9.10/lib/python3.9/config-3.9-x86_64-linux-gnu`

@ -0,0 +1 @@
Subproject commit bf3480dc9ae7bea34c78fbba4c65b4548b5b1fea

4
vimrc
View file

@ -1,5 +1,5 @@
unlet! skip_defaults_vim
source $VIMRUNTIME/defaults.vim
" source $VIMRUNTIME/defaults.vim
" fix for wsl starting with REPLACE mode
nnoremap <esc>^[ <esc>^[
@ -50,7 +50,7 @@ set cursorline
set laststatus=2
let mapleader=","
set nonumber
set relativenumber
set listchars=trail:.,tab:>_
set list
set wrap