The following is a tutorial to install the pathogen.vim plugin manager and the UltiSnips snippet manager plugin.
- In your
nvimconfiguration folder, create directoriesautoloadandbundle. - Download the pathogen plugin file at
http://tpo.pe/pathogen.vimand place it into yourautoloadfolder.
- In your
init.vim, add the following lines:
execute pathogen#infect()
call pathogen#helptags()
syntax on
filetype plugin indent onNote: The following procedure works for any
vimcolor scheme, I just happen to likeDraculathe most.
- Initialize a git repository in your
nvimfolder by runninggit init. - Clone the
Dracularepository in yourbundledirectory by calling
$ git submodule add https://github.com/dracula/vim bundle/dracula
- Add the following line in your
init.vimfollowing the call topathogen:
colorscheme dracula- Restart your editor, and enjoy your new color scheme.
- Clone the
UltiSnipsrepository in yourbundledirectory by calling
$ git submodule add https://github.com/sirver/ultisnips bundle/ultisnips
- Create a folder called
mysnips(or similar) in yournvimfolder. - In your
init.vim, after thepathogencall, add the following:
let g:UltiSnipsSnippetDirectories=['/path/to/mysnips']
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<c-j>"
let g:UltiSnipsJumpBackwardTrigger="<c-k>"- Create a new Java class file somewhere in your file system.
- Open the new Java class with Neovim.
- Type
:UltiSnipsEditto open a new Java snippet file. - Create your snippets!