From fde1e9fd51d6b42e2c7ec9a7d65f731d0c5bb79e Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Wed, 7 Jun 2017 20:07:58 -0600 Subject: New functions --- plugin/vim-options.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugin') diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim index fc6f5e6..f6555c3 100644 --- a/plugin/vim-options.vim +++ b/plugin/vim-options.vim @@ -114,6 +114,7 @@ if has('nvim') set directory=.vimcache/swp/ let g:syntastic_python_python_exec = '/usr/bin/python3' nnoremap er :call RestoreSession() + nnoremap y :call system('nc -w 1 172.17.0.1 41401', @0) else let $EditorDir=$HOME.'/.vim/' let $SessionDir='.' @@ -121,6 +122,7 @@ else set backupdir=~/.vim/vim-files/backups/ set directory=~/.vim/vim-files/swaps/ let g:vimwiki_list = [{'path': '~/Wiki/wiki', 'path_html': '~/Wiki/wiki_html/', 'ext': '.wiki'}] + nnoremap y :call system('nc -w 1 localhost 41401', @0) endif @@ -175,6 +177,8 @@ nnoremap ee :call SaveSession() function! RestoreSession() :source $SessionDir/session.vim endfunction +" Functions for deleting, changing, yanking 'in-line' +nnoremap v ^v$h " Some very useful shortcuts for editing Ledger entries " Copy the last entry nnoremap ll G{jV}y}p10l -- cgit v1.2.3