vim-plugin

Migrating to Vim from RubyMine - Interpreted Auto completion

本小妞迷上赌 提交于 2019-12-09 07:28:59
问题 Up until last week, I had been using RubyMine for my Rails development. I know it has a vim plugin but I have been working on migrating my development to vim and tmux. I don't want to keep using the mouse and VIM gives me a lot more flexibility. I have found plugins and workarounds for almost all the features I care about except the "interpreted auto complete" functionality in my first screenshot below. RubyMine interprets the whole rails application and offers sorted-by-relevance suggestions

Vim snippets, without snippet/templating addon

若如初见. 提交于 2019-12-08 04:12:53
问题 I use vim a lot, but my workflow usually forces me to interact with other IDE's, so I am not a god-like vim poweruser, nor am I trying to be anytime soon. Vim is not an IDE for me, nor do I want it to be. It is a fast and light editor that doesn't get in my way. I am looking for simplicity in both usage and config, not uber power or gold stars in efficiency. I have been preloading several registers with my snippets up until now, and then keep a cheatsheet for which register has which text

Vim snippets, without snippet/templating addon

[亡魂溺海] 提交于 2019-12-07 23:41:44
I use vim a lot, but my workflow usually forces me to interact with other IDE's, so I am not a god-like vim poweruser, nor am I trying to be anytime soon. Vim is not an IDE for me, nor do I want it to be. It is a fast and light editor that doesn't get in my way. I am looking for simplicity in both usage and config, not uber power or gold stars in efficiency. I have been preloading several registers with my snippets up until now, and then keep a cheatsheet for which register has which text block. But I am running out of registers, and one single alpha-numeric letter does not immediately remind

How to always have the same current directory in VIm and in Terminal?

醉酒当歌 提交于 2019-12-07 07:24:00
问题 I would like to my terminal current directory follows my VIM one. Example: In TERMINAL: > pwd => /Users/rege > vim Then in VIM :cd /Users/rege/project <Ctrl-z>(for suspend) In terminal > pwd => /Users/rege/project I`m using MacOS, zsh, tmux. I need this because when Im trying to use tags in VIM, tags are check in project from my terminal directory not vim one. So I need to change terminal current directory always when I change VIM current directory. 回答1: What kind of command do you issue in

Error running ':ConqueTerm bash'

谁说我不能喝 提交于 2019-12-07 06:21:16
问题 I have installed Conque with vundle using the following line: Bundle 'Conque-Shell' However, when I run :ConqueTerm bash I get the folowing error: Error detected while processing function conque_term#open..conque_term#dependency_check..conque_term#load_python: line 2: Traceback (most recent call last): File "<string>", line 1, in <module> IOError: [Errno 2] No such file or directory: '/Users/snowch/.vim/bundle/Conque-Shell/autoload/conque_term/conque_globals.py' line 3: Traceback (most recent

How to use second argument (input) of system() function

ε祈祈猫儿з 提交于 2019-12-06 04:13:13
问题 The documentation to vim's system function says this about the second argument: When {input} is given, this string is written to a file and passed as stdin to the command. What I understood from that was that if your system call looked like this: call system('node something.js --file', 'here is some text') The command executed would look like this: node something.js --file some/temp/file and some/temp/file would have the text here is some text as its contents. To test this, I ran the vim

Make NERDtree not be the default window when VIM starts?

梦想与她 提交于 2019-12-05 20:32:16
问题 I just started playing around with NERDtree and VIM and can't figure out how to make NERDtree NOT be the default window when it opens. I'd like to open NERDTree in one pane and the relevant file in another but instead of having the NERDTree tab take focus when it opens, have the file I am editiing by the default focus. I have looked at the github project but the behavior for how to change this isn't obvious to me. Everything else is working perfectly. Is there a configuration that specifies

Error running ':ConqueTerm bash'

一世执手 提交于 2019-12-05 11:34:32
I have installed Conque with vundle using the following line: Bundle 'Conque-Shell' However, when I run :ConqueTerm bash I get the folowing error: Error detected while processing function conque_term#open..conque_term#dependency_check..conque_term#load_python: line 2: Traceback (most recent call last): File "<string>", line 1, in <module> IOError: [Errno 2] No such file or directory: '/Users/snowch/.vim/bundle/Conque-Shell/autoload/conque_term/conque_globals.py' line 3: Traceback (most recent call last): File "<string>", line 1, in <module> IOError: [Errno 2] No such file or directory: '/Users

How to always have the same current directory in VIm and in Terminal?

爱⌒轻易说出口 提交于 2019-12-05 10:57:51
I would like to my terminal current directory follows my VIM one. Example: In TERMINAL: > pwd => /Users/rege > vim Then in VIM :cd /Users/rege/project <Ctrl-z>(for suspend) In terminal > pwd => /Users/rege/project I`m using MacOS, zsh, tmux. I need this because when Im trying to use tags in VIM, tags are check in project from my terminal directory not vim one. So I need to change terminal current directory always when I change VIM current directory. What kind of command do you issue in your shell after you suspend Vim? Isn't Vim's :!command enough? With set autochdir , Vim's current directory

Vim: how to enter insert-anywhere/canvas mode?

徘徊边缘 提交于 2019-12-05 09:56:27
How can you put vim in an insert mode where the entire screen is effectively whitespace i.e. you can type anywhere? I know it's possible, I just cannot remember the command, unfortunately! This allows you to draw diagrams and whatnot easily, I hope this rings a bell? Update: Thanks to @phd I made: ┏━━━[ Tasker Radars ]━━━┓ ┃ 🔴 has 1 mile radius ┃ ,,ggddY''''Ybbgg,, ┃ 🔵 has 5 mile radius ┃ ,agd''' `''bg, ┃ 🌕 has 20 mile radius ┃ ,gdP' 'Ybg, ┗━━━━━━━━━━━━━━━━━━━━━━━┛ ,dP' 'Yb, ,dP' _,,ddP'''Ybb,,_ 'Yb,<━━━━━━ 20 miles ,8' ,dP'' `'Yb, '8, ,8' ,d' 'b,<━━━━━━━━━━━━━━━ 5 miles ,8' d' 'b `8, d' d'