Sudo apt-get install vim-gnome And it will read your original. The normal VIM fail to share its clipboard with system (if you want to see the detail, please see this article ).įortunately, change from normal VIM to VIM-Gnome is easy. Here is the solution: Make VIM share clipboard with the system! Do do so, you must install Isn't that kind of silly? And the reason you use VIM is to avoid your hand switching between keyboard and the mouse. And finally you search that keyword by "grep" command. ![]() This can be done by use the mouse right-click and select "copy" in the VIM and move to the other terminal and type "grep '" and use the mouse right-click and select "paste" to paste the keyword. One way to do this is to copy that keyword in VIM and move to the other terminal and use the "grep" command. Have you ever want to search all files to find a keyword (e.g. Other plugins of VIM can be installed in the similar way. Now move files inside " plugin" (which is in the TagList directory you just Unzip) to NEARD_Tree or other plugins, you would have a " doc" and " plugin" directory in your ". Butīe careful not to replace the file that belong to NERD_Tree. Like NERD_Tree, Unzip the file you just download, and move them to the ". You can use this plugin to see the class, functions, enums in the file.Ģ. ":tabm -1": Likewise, you can use this command to move current tab to left. (e) ":tabm +1": If you have more than one tabs, you can move the current tab to right by this (d) "Ctrl" + "w" + "r": If you have more than one split windows, this will change the two "Ctrl" + "w" + "-": The opposite of above. (c) "Ctrl" + "w" + "+": If you have more than one horizontal split window, it would expand yourĪctivate window (in which your cursor in) expanded by one more line (and shrink the others (b) "Ctrl" + "w" + "T": If you have splitted window, you can use this command to move the split ":vs" + "FileName": Likewise, open a new file in the vertical split windows. If you don't specified FileName, VIM would open ![]() (a) ":sp" + "FileName": Open a new file in the horizontal split window (so that you have two Here is some commands (which already shiped with VIM) that can control the window or tabs: You can use "Ctrl" + "w" + "w" to switch between windows in VIM.Ĥ. If you want to open a file in a new tab, just hit "Shift" + "t" when your cursor is on that file name.ģ. Tab, just press Enter when your cursor is on that file name.Ģ. When you want to see the file architecture, press F2, and if you want to open a file in current Your keyboard, the NEARD_Tree will comes out.ġ. vimrc" file in your $HOME directory, so that when you press F2 in Move everything in NERD_Tree you just download to ". ![]() vim" directory (if you have no VIM plugin yet).ģ.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |