editor

Sublime Text 2 is sluggish during work over sshfs

一曲冷凌霜 提交于 2019-12-20 10:01:26
问题 I am using Sublime Text 2.0.1, and unfortunately making it work with files distributed over sshfs is a pain - switch to other tab and go back makes Sublime checking if file has not been changed. Are there any Sublime preferences or maybe sshfs mount options which can make my work over remote resources possible? For now I am using following sshfs option (faster encryption): -o Ciphers=arcfour 回答1: This is really more of a problem with SSHFS and FUSE-based file systems than Sublime Text. If you

Sublime Text 2 is sluggish during work over sshfs

落花浮王杯 提交于 2019-12-20 10:01:01
问题 I am using Sublime Text 2.0.1, and unfortunately making it work with files distributed over sshfs is a pain - switch to other tab and go back makes Sublime checking if file has not been changed. Are there any Sublime preferences or maybe sshfs mount options which can make my work over remote resources possible? For now I am using following sshfs option (faster encryption): -o Ciphers=arcfour 回答1: This is really more of a problem with SSHFS and FUSE-based file systems than Sublime Text. If you

git rebase --editor=/something/other/than/vim? (for easier squashing)

五迷三道 提交于 2019-12-20 09:46:34
问题 I happily use vim as my default editor for commits, and do not wish to change it. However, when it comes to rebasing, I find myself squashing dozens and dozens of commits which I find much easier with an interactive editor like Textwrangler (substituting "pick" with "squash" in all but the top commit). Is there any way to specify an alternate editor for a one-off rebase command? I know in vim I can do: :%s/pick/squash/ but that has its own minor annoyances. EDIT - as stated in the comments,

JTable with a complex editor

*爱你&永不变心* 提交于 2019-12-20 09:44:54
问题 I have many custom editors for a JTable and it's an understatement to say that the usability, particularly in regard to editing with the keyboard, is lacking. The main reason for this is that my editors are always created with a similar (though often more complex) situation to this: @Override public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) { JPanel container = new JPanel(); container.setLayout(new BorderLayout()); container.add

Using VIM as a HTML editor

孤人 提交于 2019-12-20 09:29:23
问题 You know how Notepad++ has this feature that when you click on a tag (say ) it automatically highlights the ending tag () as well? What's it called? And how do you tweak VIM to have this feature as well? And any more ways you can turn VIM into a powerful and efficient HTML editor? 回答1: I do all of my HTML editing in vim. The three plugins I find most helpful for editing HTML and XML in vim are matchit, surround, and allml. Matchit will allow you to jump to the start/end tag with '%'. Surround

How to save all files in tabs on Vim?

谁说胖子不能爱 提交于 2019-12-20 09:28:19
问题 If I have multiple files in tabs on VIM and I edit few of them. How to save them with one command? 回答1: The command wa (short for wall ) will write all changed buffers. You can also use :tabdo w , which is definitely exactly what you want, and generalizes nicely. 回答2: Just do :wa (followed by return) which is a shorthand for :wall Also to "save everything and exit" you can do :wqa or :xa (="write-quit-all") 回答3: To save all the files just use an a after the write command to write all the

how to install cloud9 IDE on ubuntu server

风格不统一 提交于 2019-12-20 09:19:58
问题 I have a development server which runs mostly python-based apps. I like the interface of tools like cloud9, but since I have a server I'd rather have something similar on my own server. This is what I mean by "self-hosting". I only need to edit local files (ie, files on that server). The server is running Ubuntu server 12.04. cloud9 is apparently available for self-hosting, but I have never used node.js and I don't want to learn about it if possible. I know that cloud 9 also offer ssh

Is there an interactive way to learn Vim? [closed]

百般思念 提交于 2019-12-20 08:18:50
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Years ago I was looking for a way to learn Vim that didn't involve a wall of text, or scrolling through vimtutor without knowing the commands to do so. I wondered if anything else existed for such a purpose. 回答1: Interactive tutorial: http://www.openvim.com/ HJKL-learning game: http://www.vim.org/scripts/script

Trim trailing spaces in Xcode

て烟熏妆下的殇ゞ 提交于 2019-12-20 08:08:09
问题 Is there a way to force Xcode to trim trailing whitespaces when I save file? I'm using version 3.1.3 if that matters. 回答1: You can create a script and bind it to a keyboard shortcut: Select Scripts Menu > Edit User Scripts... Press the + button and select New Shell Script Give it a name like "Strip Trailing Spaces", and give it a shortcut like ⌃⇧R. Set Input to "Selection" and Output to "Replace Selection" Then enter the following script: #!/usr/bin/perl while (<>) { s/\s+$//; print "$_\n"; }

How to jump to previous and last cursor in Sublime Text 3? [closed]

瘦欲@ 提交于 2019-12-20 08:00:14
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 years ago . I google a lot and find BufferScroll.But it doesn't work for me.I can't find any shortcut or how to use it in the document. Update: Every time I try to use Jump Forward(Shift+Alt+Minus),my editor always says "Already at the newest position" while actually not in the newest position.Jump Back(Alt