nfnty / vim-nftables

vim nftables syntax
MIT License
45 stars 6 forks source link

How to install manually without NeoBundle? #10

Open Strykar opened 1 year ago

Strykar commented 1 year ago

NeoBundle seems outdated, can't I just add this stuff to my .vimrc or something?

tacerus commented 10 months ago

Hi,

you can just install the files in your vim's site directory. In my case, with NeoVim, I use the following process:

cd ~/work/git
git clone https://github.com/nfnty/vim-nftables.git

cd ~/.local/share/nvim/site/

 # create directories if they don't exist yet / this is the first time manually installing a plugin. otherwise skip and use existing directories.
mkdir ftdetect ftplugin indent syntax

for x in ftdetect ftplugin indent syntax; do ln -s ~/work/git/vim-nftables/$x/nftables.vim $x/; done

Of course, this is just my opinionated approach, but maybe it's useful. :)

longthanhtran commented 3 months ago

If you are using vim 8.*, you can use native vim packages (:h packages) to create the folder structure under ~/.vim/pack then place the packages to the according folder. After this step, vim would auto load the plugins/packages.