How to save GVIM settings? [closed] - vim

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 10 years ago.
Improve this question
I just installed GVIM, went through the menus, and changed a bunch of settings.
I closed GVIM, and the settings were all lost. :(
I made my changes again.
Now how do I keep my settings?

You can use :set command to list all settings and put it to ${HOME}/.vimrc.
:se[t] Show all options that differ from their default value.

I wonder why nobody mentioned to use a vim session to save global settings and the views for all windows. Of course mastering .vimrc should be on the agenda of any serious vim user, but sessions can help further. Especially since they are similar to 'profiles' which are familiar to many people.
There also exist a plugin for gvim that facilitates the dealing with sessions further (sessions.vim : Easy session management for gvim.

You should really learn how to use .vimrc. Like VIM itself, learning to do this the hard way means more power and ease of use later.

Related

I am familiar with vim but Can anyone explain a brief working of vim? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I understand and can write commands in Vim. But i would like to know what happens in the background in Vim. Like whats files are called and how plugins come into play?
Your question isn't very specific and clear. Basically, any configuration is put into a ~/.vimrc file, like with many other (Unix-based) programs (the native Windows way is more complex). Plugins go into a directory structure in ~/.vim/. It's basically just putting the files there, and restarting Vim. Many also use plugin managers like Pathogen, Vundle, etc.
You'll find all the details under :help startup. Learn how to look up commands and navigate the built-in :help; it is comprehensive and offers many tips. You won't learn Vim as fast as other editors, but if you commit to continuous learning, it'll prove a very powerful and efficient editor.

How do I run LateX on a emacs file in Linux? [closed]

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 9 years ago.
Improve this question
I'm an absolute beginner and I've never worked on a Linux machine before. I was working on a emacs file from home on a virtual machine. Now that I'm on a Linux machine at school, how do I run LateX on the file and view the dvi? I was able to open emacs and load the file.
You can use C-c C-c, which is bound to the function tex-compile.
Here's a useful hint: you can use C-h m to bring up the documentation for a mode. This documentation usually has a list of the keybindings associated with the mode. In this case, there's a list under the heading "Special Commands:" which includes C-c C-c tex-compile as well as some other commands which may be useful in the future.
One of the best things about Emacs is that it's self-documenting, so learning to use the help system (keys starting with C-h) is invaluable.

Does anyone know the OS distro, editor and how is he spliting screens? [closed]

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 10 years ago.
Improve this question
If you look at http://bambuser.com/v/2846316 you can see a developer with two monitors, in the video this person is spliting the screens into multiple outputs of an editor. And switching the content of them... Does anyone know how to do something like this ? Or the editor he/she is using ? I think the distro is Archlinux and the website on the movie is http://japh.se
EDIT: Ahhhhh found it. Depends on the type of the Windows Managers ! :D I was looking for Tiling windows managers :D
https://wiki.archlinux.org/index.php/Window_manager
Could anyone recommend me one ? Thank you
Looks like awesome to me, which is very nice for that and is my windows manager on arch linux. You can also have a look at xmonad which is quite equivalent but older.
For the editor its not clear for me since I dont see him use it so I cant distinguish between vim and emacs.

Linux, Unix or OS X tool for displaying what keyboard typing outputs? [closed]

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 10 years ago.
Improve this question
I'm looking for a tool that will tell me what my keyboard is sending to the operating system when i push different keys.
This is to help me answer this question How to get Cmd-left/right working with iTerm2 and Vim (without requiring .vimrc changes)? which has me trying to figure out why Vim treats my iTerm2 mapping of Cmd-left to Escape-[H differently from Home.
I tried unix's read, and it says that Home and Cmd-left both produce "^[[H". I'm hoping that read is misleading me, and that some other tool will show how Home and Cmd-left are different (note: when I say, Cmd-left in this paragraph, it is when iTerm2's mapping is turned on).
Thanks!
You're doing all this in a terminal, right?
I'm afraid you're not going to do much better than read (my preferred approach is to do cat > file, type, press ^D, and then look at the file in a hex editor).
With regard to the underlying question, it's worth hunting for options in your terminal emulator. Right now it's emulating a terminal which doesn't distinguish between HOME and CMD+LEFT. It may be possible to tell it to emulate a different terminal, which does.

Tips and tricks for emacs' viper-mode and the likes [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
Basically, I really like vi[m]'s key-bindings, but not the rest of the editor. I really dislike emacs key-bindings, but like the rest of the editor.
viper-mode seems like the best of both worlds, but it's not perfect..
What vim features did you miss in emacs (and more importantly, how did you get them back)? What config-tweaks did you do to make viper-mode nicer to use?
As a start: I really missed vim's visual-selection mode.. vimpulse adds this to emacs!
As far as I know, VIM/VI has always had the :set nu feature to show line numbers along-side the lines themselves. By default, emacs only had line-number-mode which showed the line-number of the current line in the mode-line (not the same thing).
To fix that, I always found linum.el pretty useful. Starting with the upcoming emacs 23, the linum mode would be included in the standard distribution. But for emacs <= 22, one still needs to install it manually.
I also miss the incremental search with / and ? . Something like
what is posted here first in the TODO section.
http://common-lisp.net/project/vial/darcs/extended-viper/vimlike.el
If anyone can provide it, it would be great. Jurta ?
I would recommend you use my version of the emacs starter kit. It is totally customized for heavy (symbiotic) use of emacs and vi/vim (via viper and vimpulse) together.

Resources