vim

Varying font size in gvim windows

泄露秘密 提交于 2019-12-24 14:34:11
问题 Can I make the font size in my NERDTree window smaller than in all other windows of gvim? Generally I need large font size of 15 but I'd like the folder tree window of NERDTree to be 12 - is this possible to set using code in _vimrc . Currently I have the following simple setting: set guifont=Consolas:h16:cANSI Slightly duplicated question and answered here: Stackoverflow Post Stackoverflow Post 回答1: Not possible bro. Vim uses the same font size for all its windows. This is one (if not the

Vim - slimv : close-parenthesis position upon pressing enter

柔情痞子 提交于 2019-12-24 14:19:04
问题 I'm a vim user trying to learn common lisp. I run gvim on windows. I am trying to follow the slimv tutorial given here: http://kovisoft.bitbucket.org/tutorial.html My question:suppose you type the following and press enter after :morse (the vertical bar denotes the cursor position) (defpackage :morse|) I get the following result (again the vertical bar '|' denotes the cursor position): (defpackage :morse | ) Whereas I want the following result: (defpackage :morse |) so that I can continue to

Vim Plugins For Node.js

风格不统一 提交于 2019-12-24 14:01:15
使用Vim作为Node.js的IDE环境也是个不错的选择。 Vim: http://www.vim.org/download.php Node.js在Github上也有一篇关于Vim插件的推荐文章。 https://github.com/joyent/node/wiki/Vim-Plugins 下面就整理一下配置Vim的一些步骤。 1. Pathogen 这是Vim中用来方便管理插件的插件,有了它,之后介绍的很多插件安装就会显得简单。 在~\vimfiles下新建两个文件夹,~\vimfiles\autoload和~\vimfiles\bundle 复制 pathogen.vim 到~\vimfiles\autoload\pathogen.vim 记事本打开~\_vimrc,在最后加入如下代码: "自动缩进 set autoindent "语法高亮 syntax on "自动检测文件类型并加载相应的设置 filetype plugin indent on "不自动换行 set nowrap "智能对齐方式 set smartindent "一个tab是4个字符 set tabstop=4 "按一次tab前进4个字符 set softtabstop=4 "显示行号 set number "缺省不产生备份文件 set nobackup call pathogen#infect() 2.

:sf in vim but split vertically?

≯℡__Kan透↙ 提交于 2019-12-24 13:06:20
问题 I use :sf <filename> with vim a lot, to split horizontally and edit the said file in the new window. I wonder what's the equivalent command to do the same but split vertically rather than horizontally? :vne seems the closest I can find to this, but the help says it doesn't search for the file like :sf does. 回答1: :vert sf <filename> From :h :vert : *:vert* *:vertical* :vert[ical] {cmd} Execute {cmd}. If it contains a command that splits a window, it will be split vertically. Doesn't work for |

How to comment out/in a paragraph of haml in vi?

这一生的挚爱 提交于 2019-12-24 13:04:21
问题 I just started diving into vi and so far learned only basic moving around/editing commands. While I am going through the book, is there a fast way to comment out a paragraph with -# in the same column with the cursor position (indenting the lines accordingly)? Let's say I have a piece of code: %table - unless paginate(@clients).nil? %tr %th =t('index.name') %th =t('index.address') %th =t('index.phone') =render :partial => 'client', :collection => @clients and I want to comment out lines

In VIM how to make NERDTree open at startup nicely when giving args

馋奶兔 提交于 2019-12-24 11:20:00
问题 Let me explain my question, what I want to do is: From the command line calling gvim without arguments, want NERDTree open by default in my /home/user/Documents folder. From the command line calling gvim . want to open NERDTree with the directory set to the actual directory where the command was executed from. BUT I still want NERDTree on the left and a empty buffer in the right (not NERDTree being the only window just like normally happens). From the command line calling gvim /some/path/to

Express.js, Node.js Jade vim

南笙酒味 提交于 2019-12-24 09:50:23
问题 Help, before I throw my beautiful, expensive MacBook Pro to the ground in a fit of annoyance. I'm trying to get something working in Expressjs, and it's really getting on my nerves. I'm following the tutorial on: expressjs.com/screencasts.html Screencast 2: And I'm getting this error message: Express 500 Error: /home/duncan/helloExpress/views/users.jade:4 2| p#users 3| - each user in users > 4| li user.name 5| expected "indent", but got "newline" * 2| p#users * 3| - each user in users * > 4|

Proper tag highlighting in Vim?

我怕爱的太早我们不能终老 提交于 2019-12-24 09:33:20
问题 Just getting into Vim, but can't figure out why it's not highlighting these HTML tags properly. Shouldn't the closing body and html tags be bold and red? See pic. 回答1: Most colorschemes don't go very far beyond the generic highlight groups like Keyword or String . My favorite colorscheme is Sorcerer but I had to customize it like that : hi htmlTag guifg=#90b0d1 gui=NONE hi htmlSpecialTagName guifg=#90b0d1 gui=NONE hi htmlTagName guifg=#90b0d1 gui=NONE hi htmlEndTag guifg=#90b0d1 gui=NONE to

How to remap <Ctrl-Home> to go to first line in file?

此生再无相见时 提交于 2019-12-24 09:03:43
问题 How to remap Ctrl + Home to go to first line in file? I tried the following command, but it doesn't work (environment is xterm in KDE). Vim recognises the Home key and goes to beginning of line, but looks like it doesn't recognized Ctrl + Home combo. noremap <Ctrl-Home> gg 回答1: Vim does not know <Ctrl- modifier. It calls it <C- . Try inoremap <C-Home> gg If that does not help, then see whether there is some difference between what vim shows when you press <C-v><C-home> and <C-v><Home> , post

How to improve the completion speed of clang_complete?

泪湿孤枕 提交于 2019-12-24 09:00:23
问题 I'm using the plugin clang_complete in Vim. The plugin could complete C++ STL accurately. But its completion speed is unacceptable. Is there any way to improve the clang_complete's completion speed? update:Yesterday I found this,and now the omnicppcomplete could basically meet my need ,so I decided to continue to use omnicppcomplete.vim. Thak you for your answers!! 回答1: Well i heard, that using libclang.so instead of clang executable is much faster. However for reliable completion, you need