I'm sitting at a screen split in 3 in Putty showing my files. I can't figure out what I need to Google in order to find documentation on how to navigate the command line UI for KDIFF3. I'm trying to figure out how to go line by line or conflict by conflict or take a whole file altogether. Can you guys help me find a manual or tell me how I can navigate this GUI?
Thanks
What do you mean the "command line UI for kdiff3". Kdiff3 is a GUI application with an easily found usermanual. Are you sure you're not looking at vimdiff or something else?
Related
I have been learning basic vim and I found out that you can customize it. I have spent the last hour and a half trying to find out how. I am on windows 10. Apparently, I have to create the vimrc file and add everything myself but I don't even know where to put the file or what kind of file it should be. No tutorial or explanation yet has mentioned where to put the file; they all just say create the file. Some say I should already have the file but I don't. Others give me a command to put into the command prompt but none of those work. Please help, I have no idea why I could not find a solution to such a basic question.
I am not able to configure winscp to work with ATOM.IO/
I tried to add external editor from the wincsp settings however when I clicked on the file to edit, an command line is opening and nothing happen.
external url : C:\Users\yjradeh\AppData\Local\atom\Update.exe !.!
any help on this ?
I guess the question is off topic, but since it's here and I was JUST trying to figure this out, I thought I would leave an answer just in case.
You need to find the location of the atom.io executable, atom.exe. The update is just run to check for updates and then starts the executable with some other commands. I don't think you can use the Update.exe to start the editor at a specific file, at least not through winscp.
For me, I found that the atom.exe was installed to
C:\Users\mynamehere\AppData\Local\atom\app-0.187.0\atom.exe
So I just copied and pasted this into my winscp editor preferences and it seemed to work fine.
Sidenote: I'm also going to be trying out some of the sftp plugins for atom as they might be better than using winscp if they allow the use of authorization keys. There seem to be plenty of choices.
Update (3/22/16): I found that atom installs itself in the PATH. So now I just add atom as an external editor and use the command
atom !.!
I am using Komodo edit 7.1 on a macbook pro running OS X mountain lion
Note that the duplicated file needs a space at the beginning. e.g:
to execute hello-world.py, I wrote the code given in the lesson but when running the command i get an error
/bin/sh: /usr/bin/pythonhello-world.py: No such file or directory.
When I create a file name: _hello-world.py (the underscore is actually white space) and execute it from there, the command completes the action correctly
'/usr/bin/python hello-world.py' returned 0.
Interestingly enough, the code for the duplicated file can be blank, somehow it is choosing the proper file.
p.s. obviously I am brand new at this. I have searched google for similar problems but haven't found what I need. Please help!
Thank you
The path to the python executable is not setup correctly. Use the Terminal to fix it.
is there a way to locate a specific file in the fielview of director via a shell command?
I open a file (test.php) like this in dreamweaver, using an other application:
"C:\Program Files\Dreamweaver.exe c:\test.php"
But the fileview listing the local files does not jump to the opened file.
Maybe I can write a script and launch this script via shell to locate the file in the fileview?
Thanks for help or hints!
I assume that you're talking about having the file opened via the command line automatically become selected in the Files panel.
I am aware of no documented method of getting Dreamweaver to perform operations from the command line.
About the closest you're going to easily get to would be to assign a keyboard shortcut to Site -> Locate in Site via Edit (Dreamweaver on Mac?) -> Keyboard Shortcuts. I'm not aware of it, but there may be some way to send an a specific application keystrokes via the command line.
I'm a VIM noob, and have revisited it time and again, and I'm hoping to actually stick with it this time. Primarily I'm programming in TextMate with Ruby on Rails. On advice from someone, I have installed Janus (https://github.com/carlhuda/janus) and its helping a lot. But one thing I miss is having a "project" so that I can easily get back into a project quickly.
I want to be able to start a copy of macvim, pointing it to a file, or giving it a command, to load a project back to where I last left it. This means:
CD to the root of the project
Set back up any tabs / splits I had set, at their same locations
Reopen the files I was working on last.
I'm going to explore Conque Shell today (http://code.google.com/p/conque/) and if that works, I would want those shells to also reload and fire off their startup commands. (CD to the project root, fire up the rails server, tail a log, etc.)
Suggestions? I'm looking to streamline my process so that I can just click a shortcut or run a command and after a few seconds be staring at my dev environment right where I left it last.
Bonus: I often use windows too, so being able to do the same in GVim would be great as well.
Thanks for your help
You may want to check out Vim's built-in ability to create a restore sessions. These allow you to save pretty much everything you have setup including cwd, folds, splits, buffers, vars etc. See :help :mksession.
Here are two plugins that help with saving and restoring sessions:
sessionman: http://www.vim.org/scripts/script.php?script_id=2010
session.vim: http://www.vim.org/scripts/script.php?script_id=3150
You might also want to check out the project plugin: http://www.vim.org/scripts/script.php?script_id=69
I too have heard good things about rails.vim.
For Rails developer, there is a well-known plugin by Tim Pope named rails.vim.
Once you are at the root of a rails project (You can change Vim current directory with :cd /path/to/project/root ), rails.vim provides quick way to access your file like :
:Rcontroller file
:Rview file
:Rstylesheet file
They are other options to refactor using partials. Install it and type :help rails.txt. There is plenty of nice features like that. It is really useful to speed up access to your project files.
You can probably combine it with session.vim which provides a way to restore your previous session automatically.
If you don't want to type the path of your project, one possible solution, is to add at the end of your .vimrc the following code :
if isdirectory("~/workspace/project1")
cd ~/workspace/project1
endif
This way you always start Vim into your current workspace. Obviously if you need to switch to another directory you have to manually edit your .vimrc... which is kinda sub optimal.
Terminitor (a Ruby Gem) won't specifically solve your vim "project" goal, but it will solve the rest of your problems. You can setup your terminal windows and then execute a command to capture the terminal positions and sizes, edit the configuration to add any other commands (in Ruby) that you want executed and this will allow you to restore your environment.