macvim

(Python) YouCompleteMe is ignoring my code and pip packages

不羁岁月 提交于 2019-12-23 10:09:35
问题 I am using YouCompleteMe on MacVim (vim 7.4 on OSX 10.9.4) for Python code auto-completion. YCM works perfectly when referencing Python built-in functionality (like os.* stuff), but it doesn't seem to be able to auto-complete identifiers written by me or from various packages installed using pip. According to its documentation, YouCompleteMe uses Jedi for Python code completion, and the Jedi GitHub page clearly states that Jedi can auto-complete any code, not just standard library identifiers

windows下gVim(Vi/vim)基本使用

假如想象 提交于 2019-12-23 04:38:47
Vim 是一个Linux 平台上功能非常强大的编辑器,他是早年的Vi 编辑器的加强版。这个gVim 是windows 版的,并且有了标准的windows 风格的图形界面,所以叫g(graphical)Vim。我们可以将gvim 理解为vim(vi的加强版)图形化版本,其指令和用法都完全相同,所以可以參考vim的指令。这是一个国际版本,会根据安装的平台自动选择相应语言包, 支持中文及其各种编码,连界面也是中文的,请放心使用。这个极具Unix特色和风格(simple is the best)的编辑器相信会给您带来不同的感受。 【历史回顾】 Vim 是从vi 发展出来的一个多平台文本编辑器。代码补完、编译及错误跳转等方便编程的功能特别丰富,在程序员中被广泛使用,和Emacs 并列成为类Unix 系统用户最喜欢的编辑器。有人曾戏称世界上的程序员只有三种,一种是使用Emacs 的,一种使用vi 的,还有就是使用其他编辑器的。 创建者Bram Moolenaar 在80 年代末购入他的Amiga 计算机时,由于Amiga 尚没有他最常用的编辑器vi,Bram 便从一个开源的vi 复制Stevie 开始,开发了Vim 的1.0 版本。最初的目标只是完全复制vi 的功能,那时的Vim 是Vi IMitation(模拟)的简称。1992年1.22 版本的Vim 被移植到了UNIX 和MS-DOS 上

Can't Map <S-CR> in Vim

£可爱£侵袭症+ 提交于 2019-12-22 06:56:59
问题 Got my first Mac over the weekend, and I'm trying to get adjusted. This line in my vimrc, which worked on my windows, won't work with vim through iTerm inoremap <S-CR> <Esc> I'm wanting Shift-Enter to act as Escape in insert mode. I've tried using Enter and Return, but that requires me to use the Fn key on my Macbook, which is just as annoying as the escape key. I Appreciate the help! 回答1: The problem here is with the terminal emulation. Most terminals cannot distinguish between non-printing

Macvim won't load specific color scheme by default

心已入冬 提交于 2019-12-22 04:13:38
问题 I'm having a problem similar to VIM Color scheme not loading by default Except I am having the problem with the gentooish theme found here http://www.vim.org/scripts/script.php?script_id=2474 For some reason macvim refuses to load this colorscheme by default. My vimrc file is as follows, I do not have a .gvimrc file. :set term=xterm-256color :set t_Co=256 set background=dark colorscheme gentooish But once I have macvim opened if I do :colorscheme gentooish it will load fine. Also it does load

Opening a directory in vim

会有一股神秘感。 提交于 2019-12-22 01:27:43
问题 I'm a mac user giving vim a serious try. Most of the GUI editors I'm used to allow me to open a directory as a "project" by executing a command like: edit ~/www/example.com/ The vim equivalent vim ~/www/example.com/ will show me a list of files in the directory, and I can open them. But it does not set vim's working directory to that path, I have to run :cd . to set the working directory. Is there some way, perhaps with a shell script, to open vim and have it's working directory set to a

MacVim on OSX / Yosemite: no editor windows visible at all

核能气质少年 提交于 2019-12-21 13:07:55
问题 Installed MacVim on my Yosemite 10.10.2 Macbook Pro today from http://www.macupdate.com/app/mac/25988/macvim The problem is that no editor window(s) are visible. If I open a file using the menu, there's simply no effect: no editor window appears. It's not hidden behind other windows, it's not listed in the Windows menu, it's just entirely undisplayed. Strangely, the file will appear in the MRU list, though. So this renders the entire editor completely useless. Should I just build gvim myself?

Can't paste into MacVim

£可爱£侵袭症+ 提交于 2019-12-21 03:44:39
问题 I copy text from outside of Vim. ⌘V in other apps pastes text without problem. In MacVim, it doesn't work. In Insert Mode, nothing appears. In Normal Mode, I get E353: Nothing in register + . This happens when set clipboard=unnamed is on or off. Oddly enough, this was working before. What's wrong? 回答1: If you are using tmux and sometimes you initially launch MacVim via the mvim command-line program, then you might be encountering the problem that prompted me to write the reattach-to-user

Reasons for using command line Vim versus GUI Vim [closed]

北城余情 提交于 2019-12-21 03:29:07
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . Background I'm building an application where it detects what documents you're using from the file system. To do this it must access

Vim auto complete

↘锁芯ラ 提交于 2019-12-20 08:19:14
问题 So I know you can get Vim autocompletion with Ctrl - X , Ctrl - O but I'm wondering if you could rework it so it works with just pressing Tab (more like Textmate's snippets), or even just how I could remap it to something a bit shorter (even if I can't get fancy tab completion), as I find Ctrl - X , Ctrl - O a bit awkward. 回答1: Map Tab to Ctrl - X , Ctrl - O :imap <tab> <c-x><c-o> See this page from vim-wiki for a smarter Tab completion 回答2: I realize this question has been already answered,

What are the most-used vim commands/keypresses?

不打扰是莪最后的温柔 提交于 2019-12-20 07:58:09
问题 I'm a Ruby programming trying to switch from Textmate to MacVim, and I'm having trouble wading through the gargantuan lists of things you can do in VIM and all of the keypresses for them. I'm tired of hearing "You can use 'I' for inserting text, or 'a' for appending text after the character, or 'A' for appending text at the end of the line, or…" I can't imagine everyone uses all 20 different keypresses to navigate text, 10 or so keys to start adding text, and 18 ways to visually select an