Skip to content

Instantly share code, notes, and snippets.

@lakshmankumar12
Last active June 7, 2017 18:27
Show Gist options
  • Save lakshmankumar12/988255b093085d552988b285e1b89c93 to your computer and use it in GitHub Desktop.
Save lakshmankumar12/988255b093085d552988b285e1b89c93 to your computer and use it in GitHub Desktop.
diff --git a/lakshman.vim b/lakshman.vim
index 49199bf..c0e1d99 100755
--- a/lakshman.vim
+++ b/lakshman.vim
@@ -254,17 +254,17 @@ endfunction
" functions
-nmap gGG <Esc>:call PanosTags("../tags_f")<CR>
+nmap gGG <Esc>:call PanosTags("tags_f")<CR>
" struct/typedef
-nmap gGS <Esc>:call PanosTags("../tags_s")<CR>
-nmap gGT <Esc>:call PanosTags("../tags_s")<CR>
+nmap gGS <Esc>:call PanosTags("tags_s")<CR>
+nmap gGT <Esc>:call PanosTags("tags_s")<CR>
" member
-nmap gGM <Esc>:call PanosTags("../tags_m")<CR>
+nmap gGM <Esc>:call PanosTags("tags_m")<CR>
" global variables
-nmap gGV <Esc>:call PanosTags("../tags_v")<CR>
+nmap gGV <Esc>:call PanosTags("tags_v")<CR>
" defines/enums
-nmap gGD <Esc>:call PanosTags("../tags_d")<CR>
-nmap gGE <Esc>:call PanosTags("../tags_d")<CR>
+nmap gGD <Esc>:call PanosTags("tags_d")<CR>
+nmap gGE <Esc>:call PanosTags("tags_d")<CR>
function! PanosTagsSink(line)
let s:cmdName = "a=" . a:line . "; echo ${a##*::}"
diff --git a/vimrc b/vimrc
index 1588063..4dd3fbf 100755
--- a/vimrc
+++ b/vimrc
@@ -139,8 +139,7 @@ function! DumpToClipBoard()
if s:uname == "Darwin"
call system("pbcopy -pboard general", getreg("\""))
else
- call system("xsel -i -b", getreg("\""))
- call system("xsel -i -b", getreg("\""))
+ call system("ssh lakshman.narayanan@$(cat /home/lakshman_narayanan/.mymacip) pbcopy", getreg("\""))
endif
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment