3
votes
2answers
89 views

vi/vim alternative to sublimetext's “Expand selection to scope”

Sublime text has a cool feature called "Expand selection to scope" SHIFT+CMD+SPACE which selects the everything within the scope. It select everything in scope, works perfectly ( ) or [ ] or { } ...
0
votes
2answers
146 views

Editor of txt files for Windows with syntax highlight and foldable/collapsible sections for Markdown [closed]

I asked the same for Notepad++, but in fact I don't mind changing of software. I am interested in managing txt files that contain Markdown. I would like to find an editor of txt files for Windows ...
1
vote
1answer
79 views

Vim: edit multiple lines

I was looking for a way to edit multiple line simultaneously. I found that Ctrl-V + selecting the lines + I should be the solution. The problem is that, for me, after pressing I (in fact Shift-i) I'm ...
-1
votes
1answer
97 views

How to switch between two Vim windows (two separate instances) on separate monitors

Whats the keyboard shortcut to switch between running instances of Vim?
0
votes
2answers
203 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 ...
2
votes
2answers
60 views

Prepend new vim buffer with 2 new lines

I am using vim from mutt to reply to my emails and in the .muttrc I have the follow specified: set editor= 'vim +1 -c "set textwidth=72" -c "set wrap" -c "set nocp" -c "set spell"' I want to be ...
0
votes
1answer
61 views

vim: how do I view my history of yanks and deletions?

:buffers displays a list of window buffers, but suppose I dd'd a few lines (this puts them in buffers 1-9) and yanked "[a-z]yy a few others. That's up to 35 buffers I couldn't possibly keep in my ...
3
votes
1answer
85 views

How to insert a real tab with Vim SuperTab plugin if completion fails

I really like vim SuperTab plugin. But there is a little problem I have. When there is no keyword to complete the plugin doesn't insert a real tab but instead it tries to complete the word with ...
2
votes
1answer
406 views

Vim style cursor movement for Notepad++

I was just wondering if there was a way to get "vim" style cursor movement (i.e. 'hkjl' movement). After spending much time with vim, I have gotten used to not having to lift my hands off the keyboard ...
-1
votes
1answer
84 views

Any editor support emacs-like comment editing? [closed]

The most favorite feature of Emacs for me is to add comment to C source by Alt+;. This feature in Emacs can do: Automatically determine whether the comment is a standalone comment or a suffix ...
0
votes
1answer
66 views

How can I switch vim mode quickly?

This question is not the same as In vim, how can I quickly switch between tabs?, but what I want is a bit similar to it, since we are all trying to find shortcuts when editing with vim:) Now I am in ...
1
vote
1answer
124 views

Does scite have a setting similar to vim's colorcolumn?

For those who don't know what colorcolumn in vim is - it displays a vertical line after a custom amount of characters. Very useful to keep track of line lengths when writing code (so they don't get ...
1
vote
2answers
167 views

How to get vim to retain cursor position when opening a split

When I open a vertical split in vim, it takes my current line and bumps it to the top of the buffer (scrolling the entire file up). How do I get vim to retain its current position?
1
vote
2answers
110 views

vim (gvim) marking occurrences on the vertical bar?

When I search for a string, vim(gvim) highlights all the occurrences, which is great. But is there a way to show the occurrences with markers on the vertical bar on the right hand side, so if I click ...
7
votes
1answer
543 views

Why can Vim open large files faster than some other text editors?

When opening large log files (well, not that large, but 80mb is still a lot of text!), I've always used Vim since it loads them almost instantly. Other text editors like Notepad, Notepad++, etc will ...
0
votes
3answers
704 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.
0
votes
1answer
64 views

How do I modify a literate haskell script to contain unicode characters?

I would like to modify a .lhs file currently written in plain text. For example, -> would be replaced by → in the .lhs file. I am aware that for display purposes, many text editors can replace these ...
2
votes
1answer
279 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 ...
2
votes
2answers
134 views

Is there a way to start vim in read only mode

I use /bin/view as it is a safe way to view text files and not have accidental changes persist once I am finished. /bin/view seams to be lack features that normal vim has. Is there a way to start vim ...
3
votes
2answers
751 views

how to do a vim search inverse search for all lines with out text

with grep I can do a grep -v "my search" to get all the lines with out "my search" with sed I can sed '/baz/!s/foo/bar/g' to find replace text on lines with out baz Is there a way to do the same ...
3
votes
2answers
379 views

How to fix vim textwidth during editing?

When editing files that I limit in my .vimrc to tw=80, when I come back to edit them later, the line-lengths end up all over the place. e.g. lets say for the sake of argument that this line hits 80 ...
2
votes
1answer
628 views

how to block select, move, copy, paste in vi?

I am trying to migrate from Notepad++ to vi. In N++, I constantly rely on block edit (or "column mode"), as it is a great increase in productivity: I can select a rectangular area of text by pressing ...
2
votes
4answers
484 views

I'm trying to customize my text editor and terminal. Is it possible to use non-monospaced fonts without the horrible results?

I want to experiment with all fonts, including those that aren't mono-spaced. I understand the reason for using monospaced fonts, but frankly they don't seem legitimate to me. For instance, one ...
0
votes
2answers
573 views

Searching for a certain word and modifying them within Sublime Text 2 and Vim

I am trying learn the keybindings of vim one by one. I thing that I thought I should get good at early is to find a string of text and replace them with something else. I had successfully done this ...
3
votes
1answer
644 views

vim in Console2 on Windows doesn't colour code?

I'm using Console2 on Windows with Cygwin. Using Windows vim (on my PATH), the colour coding doesn't seem to display in Console2? Using vim from cmd does colour code.
0
votes
2answers
104 views

better way then using vim :r! command line to put text out of the command line history like a directory path into the a file

Is there a better way to do this in vim I like the command line completion that lets me quickly get a full path out. So I use the :!ls and tab to quickly get the path I am looking for. :!ls ...
4
votes
2answers
109 views

Getting vi/vim syntax highlighting used by certain user

At work most web-development we do, is done in vi/vim, on a debian-server. Sometimes we have to alter some files as root, and the syntax-highlighting-model of that user (root) is absolutely awesome. ...
2
votes
0answers
405 views

Vim user considering Sublime [closed]

I've been using vim mostly happily for a few years now. I'm a pretty advanced user, to the point of creating my own addons. I recently heard about the sublime text editor. What features of sublime ...
1
vote
2answers
86 views

How can I use the vim editor to format the text like this?

I have a data.txt file, the data format is something like this: a|Êó• a|Êõ∞ a|Ôõ∏ a|Ôùã aa|Êòå aa|Êòç aaa|Êô∂ aamh|Êöò all I would like to do is convert the following text into this result: 'a' ...
2
votes
1answer
510 views

How can I make vim show the current class and method I'm editing

Does anyone know if it's possible (or know of an existing vim script or plugin) that can create a "status bar" that shows the name of the current class and method (or function) I'm editing? I'm ...
0
votes
1answer
2k views

gvim options / Settings window cannot write buftype is set e382

In gvim i was trying to customize it a bit. I see under the edit menu is an option to change Settings Window. It opens up but then I get the following error. E382 cannot write, 'buftype' option ...
4
votes
2answers
1k views

textwidth=0 and wrapwidth=0 in .vimrc.local not being respected

I have the following lines at the bottom of my .vimrc.local: set textwidth=0 set wrapmargin=0 However, whenever I open a new file, both these values are set to their defaults (72 and 2, ...
2
votes
5answers
473 views

Does anyone else use mouse in Vim? [closed]

I have been using Vim for a couple of months and I think I've fallen in love with it. But I am still using the mouse for selecting text and scrolling. Every tutorial, advice and blog post I have ...
2
votes
2answers
531 views

VIM: How do you get the last ex command you used?

I find that sometimes I write a really long ex mode command that do lots of stuff. They are sort of "mini-scripts" that I write in the text editor then I start ex mode and copy them into the ex line ...
5
votes
2answers
619 views

Multiple foldmethods in vim

I use the folding option of vim quite a lot, and have usually set foldmethod to syntax. Recently I discovered that it is possible to add custom folds, such that I can put whole blocks in /*{{{*/ and ...
3
votes
1answer
977 views

Unix command-line editor for big files

I sometimes run into the problem where I need to replace just a few characters in files ~10Gb. As I only have 2Gb RAM, opening such a file with Vim or nano will consume all system resources. The way ...
2
votes
1answer
1k views

How to create custom keyboard shortcuts in vim?

For example - when coding in Perl, I need to sometimes comment out a bunch of lines. What I do is something like :80,96 s/^\(.*\)$/#\1/ I want to create a custom shortcut for this so that I can do ...
11
votes
3answers
2k views

How reverse selected lines order in vim?

For example, if I have four lines as follows: the first line the second line the third line the fourth line I want to reverse them to the fourth line the third line the second ...
2
votes
2answers
564 views

Append after last character in line in vim editor

I am using vim in the cygwin terminal right now. I am looking for a way to go behind the last character of a line to append words. When I use $i all I type is inserted before the last character.
3
votes
1answer
198 views

Vim project plugin \R not refreshing new directories created

I'm using the vim project plugin to manage a project, and whenever a new file goes in I need to use \R to refresh the project tree. This is fine, but I recently created a new directory in the tree, ...
0
votes
3answers
606 views

username/password for ftp

I tried to download the rpm for vim from ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/vim/vim-minimal-6.3-1.aix5.1.ppc.rpm . I am using "ftp" command in AIX. when I use, open ...
2
votes
1answer
272 views

Something remapped <C-w> in Vim, how do I reclaim it?

I've been adding a lot of things to my Vim configuration, and apparently one of the plugins I've installed is reclaiming . Whenever I use that key combination, it shows this error: "E784: Cannot close ...
8
votes
3answers
631 views

Is there a way to “lock” the viewport in vim?

I recently started using Vim with NERDTree. The annoying thing is when I close the buffer, NERDTree expands to fill the rest of the screen, and I have to open another file and reopen NERDTree to get ...
4
votes
2answers
629 views

How do I make vim's autoindent not drop trailing spaces?

In some text editors (e.g. Kate, gedit), when auto indent is enabled, pressing return twice will leave a trailing whitespace (which I want): if (code) { .... ....| } While others cater to the ...
5
votes
2answers
475 views

Vim Editor is very smart?

I am programming in C++ or Java. I want to use the Vim editor, and have heard that I can configure the Vim editor to be able to go: From an object to the definition From a function to the definition ...