1
vote
2answers
31 views

Vim assembly formatting

Vim is not properly indenting assembly code, regardless of if I want it to do it automatically or if I try gg=G it'll just says ## lines indented even though it didn't change anything and all my text ...
1
vote
0answers
38 views

Vim indentation and the prooftree package

I am using the fabulous vim-latex suite. I use (a lot) the prooftree package which has commands of the kind: \prooftree SOME-HYPOTHESIS-HERE \justifies SOME-CONCLUSION-HERE \using ...
0
votes
0answers
42 views

Vim “:set cindent” filters commas from the document

With or without a specific document language, whenever "cindent" is set on vim, no comma can be typed or even pasted on the document. I got a "non-us-standard" keyboard (pt-latin).
1
vote
3answers
179 views

Vim: wrap/indent/prefix mail lines with “alice> ” and “bob> ”

In a mail thread, Alice and Bob both sent me mail with incredibly long lines. I would like to send a reply that looks like this: alice> blah blah blah, foo dee bar dee baz, ho hum and then ...
1
vote
1answer
121 views

VIM inconsistent indentation

I have the following small Specman (.e) file: (set filetype=specman) <' extend sys { a : b; !enable : bool; run() is also { message (LOW, "Hello World"); }; }; '> ...
0
votes
1answer
148 views

How to have vim left-align indented lines (like is possible in Notepad++)

In Notepad++ there is a linewrap option that can be set to aligned so that indented, wrapped lines align at the same left margin. See also here: How can I indent the wrapped text in Notepad++?. Is ...
2
votes
1answer
163 views

vim: select the current indents lines

in vim, how I can selected the lines with the same indent, example if true: line 1 line 2 ... line n if the cursor is over line 2, how I can selected from line 1 to line n?
0
votes
1answer
237 views

Set indent mode for tpl files in vim

I currently work on a cms with .tpl files. It's mainly HTML so I would lile vim to understand that I want to use an "HTML complient" mode for autoindent. When I type text, it works, but when I try ...
1
vote
2answers
558 views

VIM - Auto-indent lines with over length

Is there an option in VIM to auto-intend (like in Espresso) lines which are too long to be displayed in the current window so that they get an automatic line break? This is how it looks like in ...
0
votes
1answer
589 views

How can I tell what syntax and indentation rules Vim is using on a particular line?

For better or worse, PHP code often includes both HTML and Javascript. Getting Vim to indent it all correctly can be tricky. My .vimrc specifies that a tab should always be two spaces: set ...
2
votes
3answers
651 views

How to configure backspace to delete 1 char with ts,sw,sts & et configured in vim

I have the following in my vimrc: set tabstop=8 set shiftwidth=4 set softtabstop=4 set expandtab set backspace=indent,eol,start set autoindent This does what I want: insert spaces only, never tab ...
0
votes
1answer
483 views

Can I get vim to correctly indent this Ruby code (Nokogiri)?

The first XML Builder Example for Nokogiri looks like this: builder = Nokogiri::XML::Builder.new do |xml| xml.root { xml.products { xml.widget { xml.id_ "10" ...
2
votes
2answers
2k views

How to set syntax specific settings in my VIMRC?

I work with several languages and markups in vim every day (ruby, python, javascript, CSS, HTML, etc), and would like to have different settings for each buffer when I fire up my editor. How can I ...
5
votes
2answers
562 views

Enter insert mode indented in VIM

See above picture. My cursor is on line 23 at the start of the line in normal mode. What is a quick command to begin inserting at the correct indentation level?
2
votes
1answer
999 views

Different vim indentation settings for specific file type

Drupal provides some reference on how to setup VIM for Drupal development, but I want these indentation settings to be applied to only drupal related files instead of all files set expandtab set ...
2
votes
4answers
746 views

Indentation for plain text bulleted lists in Vim

I often write text with a format like this in Vim— - talking point 1 - talking point 2 .... continue on point 2 Ideally, I would hope Vim could auto align it for me such as: - talking ...
5
votes
2answers
929 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 ...