Vim Tips Wiki
We recommend that you log in before editing. This will allow other users to leave you a message about your edit, and will let you track edits via your Watchlist. Creating an account is quick and free.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 15: Line 15:
   
 
<pre>
 
<pre>
alias sc=" gvim --servername DBX --remote-silent $vfile +$vlineno"
+
alias sc=" gvim --severname DBX --remote-silent $vfile +$vlineno"
when stop { gvim --servername DBX --remote-silent $vfile +$vlineno ;}
+
when stop { gvim --severname DBX --remote-silent $vfile +$vlineno ;}
 
</pre>
 
</pre>
   
Line 32: Line 32:
 
<pre>
 
<pre>
 
# Functions
 
# Functions
  +
 
# Write Current, this will write a line to ~/.dbx.vim
 
# Write Current, this will write a line to ~/.dbx.vim
 
# which will cause vim to open the current file at the current location
 
# which will cause vim to open the current file at the current location
Line 37: Line 38:
 
echo :e +$vlineno $vfile > $HOME/.dbx.vim
 
echo :e +$vlineno $vfile > $HOME/.dbx.vim
 
}
 
}
  +
 
# Write Variables, dumps the values of all variables local to current
 
# Write Variables, dumps the values of all variables local to current
 
# procedure into ~/.dbx.vars
 
# procedure into ~/.dbx.vars
Line 53: Line 55:
 
done
 
done
 
}
 
}
  +
 
# Vim Current, same thing, but will spawn vim
 
# Vim Current, same thing, but will spawn vim
 
function vc {
 
function vc {
 
vim +$vlineno $vfile
 
vim +$vlineno $vfile
 
}
 
}
  +
 
# Whens
 
# Whens
 
when stop { wc; }
 
when stop { wc; }
  +
 
# Aliases
 
# Aliases
  +
 
# Whens
 
# Whens
 
when stop { wc; }
 
when stop { wc; }
  +
 
# Aliases
 
# Aliases
 
alias sdb="source ~/.dbxrc"
 
alias sdb="source ~/.dbxrc"
Line 92: Line 99:
 
# Clear out any displayed variables
 
# Clear out any displayed variables
 
undisplay 0
 
undisplay 0
  +
 
# Set breakpoint
 
# Set breakpoint
 
stop at dbmulti.c:7043
 
stop at dbmulti.c:7043
 
stop at riintfn.c:4128
 
stop at riintfn.c:4128
  +
 
# Other commands
 
# Other commands
 
</pre>
 
</pre>
Please note that all contributions to the Vim Tips Wiki are considered to be released under the CC-BY-SA
Cancel Editing help (opens in new window)