aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2017-06-07 20:07:58 -0600
committerCody Hiar <codyfh@gmail.com>2017-06-07 20:07:58 -0600
commitfde1e9fd51d6b42e2c7ec9a7d65f731d0c5bb79e (patch)
treec5c111ea92aeaf946cf3bd3136fef69084609de3
parentccffa08636bee33cc552215e6f8884acdfeac2df (diff)
New functions
-rw-r--r--plugin/vim-options.vim4
1 files changed, 4 insertions, 0 deletions
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 <leader>er :call RestoreSession()<CR>
+ nnoremap <leader>y :call system('nc -w 1 172.17.0.1 41401', @0)<CR>
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 <leader>y :call system('nc -w 1 localhost 41401', @0)<CR>
endif
@@ -175,6 +177,8 @@ nnoremap <leader>ee :call SaveSession()<CR>
function! RestoreSession()
:source $SessionDir/session.vim
endfunction
+" Functions for deleting, changing, yanking 'in-line'
+nnoremap <leader>v ^v$h
" Some very useful shortcuts for editing Ledger entries
" Copy the last entry
nnoremap <leader>ll G{jV}y}p10l