diff options
author | Urbain Vaes <urbain@vaes.uk> | 2015-04-24 22:59:49 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2015-04-24 22:59:49 +0100 |
commit | 86e42e709711d4b45bb39bf8d81c1f484bc895c2 (patch) | |
tree | 0cbc8a7250f4354ee94aa60151f3ed3b37949269 | |
parent | b04fadd5abcbeedf96acd3140546df5e361ac25c (diff) |
Integration of neovim in workflow
-rwxr-xr-x | make | 4 | ||||
-rw-r--r-- | vimrc (renamed from vim/vimrc) | 6 | ||||
-rw-r--r-- | zshrc | 1 |
3 files changed, 9 insertions, 2 deletions
@@ -4,7 +4,7 @@ dir=~/dotfiles olddir=~/dotfiles_old # Files to sync -files="vim mutt passwords vifm msmtprc bashrc zshrc xmodmap mynotes tmux.conf zathurarc offlineimaprc offlineimap.py inputrc latexmkrc crontab gitconfig" +files="vim vimrc mutt passwords vifm msmtprc bashrc zshrc xmodmap mynotes tmux.conf zathurarc offlineimaprc offlineimap.py inputrc latexmkrc crontab gitconfig" rm -rf $olddir mkdir -p $olddir @@ -19,7 +19,7 @@ done # Symlink for neovim ln -s $dir/vim ~/.nvim -ln -s $dir/vim/vimrc ~/.nvim/nvimrc +ln -s $dir/vimrc ~/.nvimrc # Solarized cd @@ -135,6 +135,7 @@ set noautochdir set cpoptions+=I set encoding=utf-8 set mouse=a +set clipboard=unnamedplus "" Colorscheme try | colorscheme solarized | catch | endtry @@ -176,3 +177,8 @@ augroup autorelead_vimrc au! au BufWritePost ~/.vim/vimrc source ~/.vim/vimrc augroup END + +"" Neovim specific +if has('nvim') + tmap jk <C-\><C-n> +endif @@ -49,6 +49,7 @@ alias g='git' alias v=$EDITOR alias g='git' alias v='vim' +alias n='nvim' alias vs="vim --servername SYNC" alias va="vim --servername SYNC main.tex \ sections/introduction.tex \ |