0
votes
1answer
37 views

Vim delete motions include under the cursor

If you delete backwards in vim, it doesn't delete the character under the cursor. What do you need to do to have it delete, say, back to the last space?
0
votes
3answers
55 views

Vim Colorscheme

What do I change in vimrc to make the while and if/else/elseif in this screenshot a different color? EDIT----------------------- This is a custom colorscheme and I am wondering what I change in ...
1
vote
1answer
84 views

Vim command mode percent expansion

My typical day-to-day workflow in Vim involves having two vertical panes; production code on the left, and the tests on the right. I frequently switch languages (and test frameworks), so I like to ...
0
votes
1answer
83 views

vim editor full screen in putty

I am using putty to connect to my linux server and if I open any files with vim or vi editor the editor margins are getting limited, whereas the same full screen is coming if I open in XTERM. My ...
0
votes
2answers
96 views

Vim: How to append even lines to odd lines

I have the following lines. 1 4 2 10 3 20 4 35 5 56 ... ...(many more lines after this) And I want to change to the following in Vim. 1 4 2 10 3 20 4 35 5 56 ... ... How can I achieve this?
0
votes
2answers
110 views

What's Sublime Text 2's equiverlant to vim's Ctrl-P?

Sublime Text is great but Ctrl-P (and Ctrl-N) in vim (inserting a word with same starting characters in insert mode) is such an essential feature that I just cannot live without it. Is this ...
0
votes
1answer
39 views

Using vim for creating fixed width text?

I've got text in the form xxxx yyyyy xx yyyy xxxxxxxx yyyyy x y I'd like the second set in each line to begin at the same point ie xxxx yyyyy xx yyyy xxxxxxxx yyyyy x y I ...
3
votes
1answer
575 views

vim inside tmux: throws “E388” with <C-Left> in insert mode [duplicate]

I've read that in insert mode in vim, one can use <C-Left> and <C-Right> to move by words. This works for me, but only as far as I don't run vim inside tmux terminal splitter. When inside ...
2
votes
1answer
79 views

Are there any lite text editors in console mode on Windows? [closed]

I know a few: Renowned text editor: MS-DOS Editor Vim/Vi But, MS-DOS Editor is a 16-bit software which cannot be run in Win7 (64-bit), and Vim/Vi is not lite. Are there any lite text editors in ...
-1
votes
2answers
43 views

Tabs Within a VIM Split

I am writing a few different js files in my new favorite text editor, VIM. Coming from ST2, I miss the feature of having splits with tabs. I.e: A split contains a collection of files which can be ...
1
vote
4answers
684 views

How to columnate text with tabs (in vim or on the shell)

I have a frequent need to manually manipulate tab-delimited text for data entry and other purposes, and when i do this it helps if the text is aligned properly into columns. For example (assuming ...
0
votes
2answers
152 views

How can indent/dedent in vim without losing selection?

It is really annoying, especially when I need to indent more than one level.
5
votes
2answers
693 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
313 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
387 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
150 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
438 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
99 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
85 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
324 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
2answers
2k 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 ...
0
votes
1answer
93 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 ...
4
votes
1answer
279 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
400 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
159 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 ...
9
votes
1answer
1k 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
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.
0
votes
1answer
98 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
420 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 ...
3
votes
2answers
237 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 ...
5
votes
2answers
2k 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
848 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
2k 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 ...
3
votes
5answers
1k views

Customize text editor and terminal 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
761 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
886 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
123 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
119 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
452 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
94 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' ...
4
votes
1answer
2k 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
4k 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 ...
8
votes
2answers
2k 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
724 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 ...
4
votes
2answers
934 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 ...
6
votes
2answers
888 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
1k 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 ...
25
votes
4answers
5k 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
2k 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.