Thanks to visit codestin.com
Credit goes to github.com

Skip to content

cajone/dotvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repo is based on Drew Neil's Vimcasts episode #27

http://vimcasts.org/episodes/synchronizing-plugins-with-git-submodules-and-pathogen/


List of modules in this configuration

modules used in this configuration

  • Note: neocomplete has been deprecated in vim 8+. I have switched this out for deoplete.

Setup Instructions

  • Note: the following commands maybe destructive to your existing vim setup make sure you move your ~/.vim and ~/.vimrc out of the way eg:
  mv ~/.vim ~/.vim_bak
  mv ~/.vimrc ~/.vimrc_bak

Once done then :

mkdir ~/.vim
cd ~/.vim
git clone [email protected]/cajone/dotvim.git . 

( Use this if you have ssh keys in place : Note the trailing dot is important but will only work if .vim is empty )

or

git clone https://github.com/cajone/dotvim.git . 

( Note the trailing dot is important but will only work if .vim is empty )

mkdir undodir  # this gives you persistent undo capabilities across sessions

If on a linux system run the next line:

  ln -s ~/.vim/vimrc ~/.vimrc

if on a windows system move the .vim/vimrc file to ~/.vimrc

Once this is done we need to download all the bundles defined as git submodules:

cd ~/.vim
git submodule update --init

END OF SETUP INSTRUCTIONS


Folding : Don't do this if you have no intention of using vim folding as it will confuse you
mkdir view  # You only need this if you intend to use vims folding capability

Regular Maintenance :

To update this repo on your system after the original init load do the following :

cd ~/.vim
git pull
git submodule foreach git pull origin master

Helptags

last but not least start vim and run :Helptags to load all the help files for the submodules


<leader>

This vimrc file uses '\' as its leader key, if you wish to change this to something else change this line in the vimrc

    let mapleader='\'

NeoVim (nvim)

To use this vimrc configuration with nvim :

start nvim

:help nvim-from-vim

but basically for unix installs do the following ( cribbed from docs https://neovim.io/doc/user/nvim.html#nvim-from-vim )

start nvim

  1. To start the transition, create your |init.vim| (user config) file:
    :call mkdir(stdpath('config'), 'p')
    :exe 'edit '.stdpath('config').'/init.vim'
  1. Add these contents to the file:
    set runtimepath^=~/.vim runtimepath+=~/.vim/after
    let &packpath = &runtimepath
    source ~/.vimrc

About

my vim setup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published