Close #28 and added files to setup Neovim from Vim
Namely nvim and set-nvim.
This commit is contained in:
@@ -3,3 +3,5 @@
|
||||
name = Kevin Mok
|
||||
[color]
|
||||
ui = auto
|
||||
[core]
|
||||
editor = nvim
|
||||
|
||||
6
dotfiles/nvim
Normal file
6
dotfiles/nvim
Normal file
@@ -0,0 +1,6 @@
|
||||
set runtimepath^=~/.vim runtimepath+=~/.vim/after
|
||||
let &packpath = &runtimepath
|
||||
source ~/.vimrc
|
||||
|
||||
let g:python_host_prog = '/usr/lib/python2.7'
|
||||
" let g:python3_host_prog = '/usr/lib/python3.5.zip'
|
||||
7
dotfiles/set-nvim.sh
Executable file
7
dotfiles/set-nvim.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
# Get directory variables from script.
|
||||
. ../dirs.sh
|
||||
orig_file="$sys_config_dir"/nvim/init.vim
|
||||
# Remove system dotfile.
|
||||
rm "$orig_file"
|
||||
# Link dotfile in repository to system dotfile.
|
||||
ln -s "$dot_dir"/nvim "$orig_file"
|
||||
@@ -12,7 +12,7 @@ set linebreak
|
||||
set shiftwidth=4
|
||||
set autoindent
|
||||
set mouse=c
|
||||
set clipboard=unnamedplus
|
||||
set clipboard+=unnamedplus
|
||||
set foldmethod=marker
|
||||
set linespace=5
|
||||
" set listchars=tab:\|\
|
||||
@@ -137,6 +137,7 @@ nnoremap <leader>he :help
|
||||
nnoremap <leader>vhe :vert help
|
||||
nnoremap <leader>m :call cursor(0, len(getline('.'))/2)<CR>
|
||||
nnoremap <leader>nw :set nowrap<CR>
|
||||
nnoremap <leader>nv :echo has('nvim')<CR>
|
||||
nnoremap <leader>pli :PlugInstall<CR>
|
||||
nnoremap <leader>plc :PlugClean<CR>
|
||||
nnoremap <leader>plu :PlugUpdate<CR>
|
||||
|
||||
Reference in New Issue
Block a user