0
votes
1answer
15 views

How to read shell and insert in text (using Emacs)?

I want to read and insert output from shell (bash) in a text using Emacs. My idea is to do something like :r!ls in vi, but using emacs.
2
votes
0answers
73 views

LC_LOCALE settings interactions between Mac OSX and LINUX via SSH

I have been struggling with the following problem for years now. I have never been able to solve it, and I adopted several workarounds to keep being able to work. However now I can't stand it anymore, ...
2
votes
1answer
416 views

bash vi mode: What does # -*- mode: ruby -*- # vi: set ft=ruby : mean?

I'm looking through some random code, and at the top of it, it says this: # -*- mode: ruby -*- # vi: set ft=ruby : What does this mean? I know it's a simple question, but I couldn't find it out ...
0
votes
3answers
166 views

How to easily write a website using a text editor and version control? [closed]

Question I would like to write a website with nice design, say like the ones generated by WordPress, SPIP or with advanced CSS-based templates. At the same time, I would like to write the contents in ...
2
votes
2answers
427 views

How to replace emacs keybindings with vim keybindings in OS X GUI-level text fields

I'm fairly fluent with VIM, but find myself having to use GUI programs (in OS X) and their awkward editing modes more and more frequently for my work. I know that OS X lets you use basic emacs ...
0
votes
2answers
118 views

emacs mimics for some of the most usable vim command

i've found emacs extremely powerful and vim very convenient in navigation but i am not so adapted to vim's model editing idea. so i sticked to emacs but i still want to mimic some of the navigation ...
3
votes
2answers
1k views

Is there an extension that previews markdown instantly?

In vim, there is a plugin called vim-instant-markdown that displays markdown output; and it supports GFM! In emacs, I know there is a markdown-mode that can be used when we write markdown, and we can ...
0
votes
2answers
87 views

Which editor to use for frequent remote editing [closed]

I am currently working in an environment where I have to deal with a lot of remote machines (test machines, customer setups, build servers) and frequently edit/read files on them. I use ssh to access ...
1
vote
1answer
193 views

Vim text messed up on remote server

I often work on remote servers. There is one server that seems to get "confused" about the number of available columns (my best guess), but only when working in Vim (not bash). Specifically, when I ...
-1
votes
4answers
79 views

How do I configure vim/emacs to run scripts?

I'd like to configure both Vim and Emacs to be able to run bash scripts from within the editor, so that I can commit/push my code without having to leave the editor. Could someone help me out with ...
0
votes
2answers
425 views

Best console based text editor not only for programmers [closed]

I need console based text editor for writing both source codes and human readable texts such as emails. I need it to be user friendly. It mean for me: You can use it the same way as the notepad or ...
6
votes
2answers
287 views

Is it possible to control the whole Gnome desktop with vi-like commands?

I know with readline you can use emacs or vi commands to edit the input of several interactive text programs. I wonder if there exists such a similar facility to control the whole desktop in Gnome or ...
1
vote
1answer
245 views

emacs (plugin) distribution (vim janus alike)

I'm a vim user currently trying to learn emacs. For vim there are distributions (although I'm not using any) such as janus which has all common plugins. Are there anything similar for emacs for ...
5
votes
2answers
638 views

Combining two operators in Evil-mode Emacs

In vim I've remapped > and < when in visual mode to >gv and <gv respectively, like so: vnoremap > >gv vnoremap < <gv Since my target for this question are folks experienced ...
3
votes
3answers
129 views

Auto executable permission to certain type of files

Is there a way I can configure my linux box or editor like vim/emacs to automatically give executable file permission to certain file types ? Currently if I want to write a bash script I need to ...
4
votes
2answers
557 views

Using Emacs align-regexp to format tables

Vim has the neat Tabular plugin that allows you to quickly align some text. I use it a lot to align blocks of code along a certain character (mostly things like = and =>). But it also does a very ...
0
votes
3answers
1k views

What are other text editors using in place of Sublime's “go to anything” [closed]

Sublime's "go to anything" is a functionality that allows you to fastly go to any file or symbol inside a file by just typing a few keystrokes.
2
votes
1answer
414 views

looking for an alternative to refile in orgmode for emacs

In emacs/orgmode there is something called refile. you select text, hit refile and you get a list of your outline headlines, select one and your text goes there. Can I achieve something like this in ...
6
votes
7answers
213 views

Open a Console Based Editor with limited access

I have a script that will be executed through SSH. My SSH server is configured to always trigger this script, so the user doesnt have access to actual machine. One of the features of this script is ...
0
votes
2answers
106 views

Paste format string or paste-with-replace

In Vim, can I supply a format string, yank it, and paste it with formatted values in a range?. An example in Python 2 would be: for i in range(1, 3): print "This is line %d" % i If this is not ...
0
votes
0answers
59 views

Where to find non-boring tutorial/book about Emacs for users familiar with Vim? [duplicate]

Possible Duplicate: I'm an Emacs user. How do I learn Vim? Emacs is said to be good environment to program Lisp-based (and not only) programming languages. However when I try to work ...
2
votes
1answer
193 views

Emacs equivalent of this Vim command to run my tests?

I'm using Emacs at the moment and experimenting with it for my Rails development and there is one thing that I do quite regularly in Vim and I'd like to know if an equivalent exists in Emacs, or an ...
1
vote
5answers
437 views

What's the equivalent of Vim's matchit in Emacs?

With Vim's plugin matchit, you can match not only parens, but also a lot more language structures that come in paris (e.g. , if..end, do..end). Now I'm using Emacs (for fun!), and I wonder if there ...
1
vote
4answers
198 views

emacs vim compatibility for c++ code

I use emacs for c++ coding and in my project there are many people who use gvim for the same. My problem is when I open their .h or .cc files in emacs it's formatting became really bad, Its probably ...
3
votes
3answers
745 views

Tutorial for those who know Vim but want to learn Emacs as well

I would like to find a resource listing all the Emacs equivalents (for performing various common tasks or using features in common to both editors) for the Vim commands/features that I know well.
36
votes
8answers
21k views

How can I open a file read-only from command line with emacs/vi/vim

Is there a way to tell emacs/vi/vim (from the command line) that I want to view the file in view-mode or read-only. I know how to open a file as read only if emacs/vi/vim is already running.
2
votes
4answers
561 views

Vim equivalent to Emacs C-i?

Does Vim have a command equivalent to Emacs' Ctrl-I? Emacs has an extremely useful shortcut "C-I" which fixes indentation of the current line (or selected lines.) For example, suppose you write this ...
1
vote
1answer
586 views

How to use a downloaded TrueType font with Emacs and Vim under Windows 7?

I downloaded the DejaVu font, and installing the TrueType (.ttf) files to C:\WINDOWS\Fonts enabled me to use them in EmEditor. How can I make Vim and Emacs to use this font as the default?
0
votes
2answers
445 views

Gvim Graphical Preview

I have seen some videos on YuoTube where people are doing some cool things with Emacs, e.g. compiling a LaTeX file and viewing it as a pdf from within Emacs. I have also seen a graphviz DOT file ...
3
votes
9answers
1k views

emacs or vi which should a windows user learn?

I am currently reading a book on bash and it recommends learning either emacs or vi. I am primarily a windows user and not very experienced with linux yet. So which would be best to learn, or is there ...
2
votes
1answer
74 views

Can I emulate hs-hide-initial-comment-block in vim?

In emacs, there's a helpful command called hs-hide-initial-comment-block that will fold a comment block if it is the very first thing in a file. This way, I can get straight to the code without ...
2
votes
2answers
491 views

Is there an equivalent to emacsclient for vim?

With emacs, you can use the emacsclient program to open a file in an already existing emacs frame. Is there any way to do this with vim? In other words, I want to have something I can type at the ...
10
votes
3answers
2k views

I'm an Emacs user. How do I learn Vim?

Most of the time, I use Emacs. However, I've decided to try to learn Vim. I'm happy with Emacs, I just am trying to avoid having it turn into Maslow's Hammer. I've seen a few tutorials, but I have ...
8
votes
6answers
3k views

Emacs equivalent to VIM ci"?

Does emacs have the equivalent of VIMs ci" command? Basically I want to replace the text inside a set of quotation marks. In vim I can ci) or ci] or ci} to "change inner *"...
10
votes
1answer
1k views

How to get back to insert mode in VIM when you accidentally hit C-x C-s

Given this vim session: % vim test-file.txt iHello there!C-x C-s How do I get back to insert/command mode again? (C-x C-s means Control-x Control-s, not sure if it's normal vi terminology for ...
0
votes
4answers
1k views

How do I manage newlines in Latex?

So, maybe I missed something completely when I started using Latex, but I have a difficult managing newlines in the Latex source. I have to put hard returns at the end of lines because even powerful ...
2
votes
3answers
2k views

message-mode for VIM? (or Composing Email in VIM)

Emacs has something called message-mode (type M-x message-mail) that can be used to compose emails. This mode helps one to automatically wrap text to 72 columns .. keeping quoted marks properly. Is ...
-1
votes
1answer
713 views

Is there a statistical comparison of Emacs vs Vim in number of key strokes for given tasks?

Emacs just has shortcuts for everything and as such a given shortcut can take a few key presses. Vim has modes which reduce keys for given tasks because it's usually just one key. But then you have to ...
14
votes
4answers
4k views

How to make Emacs read buffer from stdin on start?

With Vim I can easily do $ echo 123 | vim - Is it possible to do with Emacs? $ echo 123 | emacs23 ... Emacs starts with a Welcome message $ echo 123 | emacs23 - ... Emacs starts with an empty ...
4
votes
4answers
1k views

Features of Emacs that are complementary to Vim?

I've been using Vim extensively for a while now, and I really enjoy working with it. However, I keep reading praises for Emacs. I've decided to take a look at Emacs to round out my knowledge of the ...