Luke Davis
  • Member for 5 years, 7 months
  • Last seen this week
Disable case sensitive auto-completion, while "smartcase" search is enabled?
Accepted answer
5 votes

Update: I created a plugin named vim-idetools that implements this feature along with a bunch of related refactoring tools. Feel free to try it out. Original answer: Well, I figured out a way to do ...

View answer
Visual scrolling/visual <C-e> and <C-y> across wrapped lines?
Accepted answer
5 votes

I've released a vim plugin that pretty closely matches this behavior. Instead of scrolling by exactly N lines, this maps <C-u>, <C-d> (half window) and <C-j>, <C-k> (quarter ...

View answer
How can I right-align end-of-line comments with the Tabular plugin?
Accepted answer
3 votes

Just figured this out and wanted to share with people. You can use :Tabularize /^\s*\S.*\zs# where the ^\s*\S.*\zs# is a vim regexp that matches only the last comment character, while ignoring ...

View answer
Getting Shift-Tab to work in VIM Insert mode
Accepted answer
2 votes

Thanks to @B Layer for their help. Turns out that all escape-prefixed keycodes (e.g. forward-delete, shift-tab, scroll-wheel-up, scroll-wheel-down) will fail for the mode in question if there is any ...

View answer
How can I use Tabularize to align by spaces, but ignore spaces in end-of-line comments?
Accepted answer
2 votes

I solved this problem and wanted to share with everyone: just takes a little regex-magic to match the first space after non-whitespace text, except where it is preceded by a comment character anywhere ...

View answer
Identify if a buffer is CtrlP or not
0 votes

I figured out how to solve this problem, more or less. I had a similar issue with some CursorMoved autocommands that were rendering CtrlP unusable; the author claims that when CtrlP is opened all ...

View answer
Auto-complete popup menu: make Enter trigger newline if no item was selected
Accepted answer
0 votes

I solved this with a fairly hacky solution. I just remap the keys I want to use for scrolling the popup menu to also increment/decrement a counter as the menu is scrolled. If the counter is zero, we ...

View answer
How can I return the current filetype's comment character in vimscript?
0 votes

Well, I figured out how to do this if you also use the NERDCommenter plugin. Simply query the 'left' key in the dictionary variable b:NERDCommenterDelims. let CommentChar=b:NERDCommenterDelims['left'...

View answer
How can I keep the Tab title text fixed, during movement through separate split panes/panels?
Accepted answer
0 votes

So I figured out a method by hijacking the content of the Tabline plugin. The function simply labels each tab by the first name in the list of open buffers with filetypes not in the list ["nerdtree","...

View answer
DelimitMate Plugin: How can I specify my own delimiters? Also, can I jump the cursor to the end of the generated right-delims with an insert-mode map?
0 votes

For anyone reading this, I figured out that to move "outside" a set of (), [], or {} can be accomplished with inoremap ;; <Esc>l%%a where I choose to use a double-semicolon, because I find in ...

View answer