liangxianzhe / oh-my-vim Goto Github PK
View Code? Open in Web Editor NEWAwesome vim config for everyone.
License: MIT License
Awesome vim config for everyone.
License: MIT License
This is a part of my .after.vimrc:
" I perfer no color 'ctermfg' and 'guifg,' so I set them values to 'NONE'. This
" means the characters under the cursorline won't be forced to certain color.
" It looks like the colored cursorline is transparent to the syntax highlighted
" characters under it, though the cursorline still keeps its highlight setting
" in the loaded color scheme. I also use InsertEnter and InsertLeave to set
" cursorline in different colors when in INSERT mode or out of INSERT mode.
function! s:ReadCursorLineInfo() "{{{
highlight CursorLine ctermfg=NONE guifg=NONE
redir => g:cursorl_hi
silent exe "hi cursorline"
redir END
let g:cursorl_hi = 'highlight' . ' ' . substitute(g:cursorl_hi, '\V\(\n\|\s\*xxx\)', '', 'g')
if g:cursorl_hi ==? '\V\[\s\n\]\*'
let g:cursorl_hi = 'highlight CursorLine cterm=NONE ctermbg=235 guibg=White'
endif
endfunction "}}}
call s:ReadCursorLineInfo()
augroup cursorline
autocmd!
autocmd ColorScheme * call s:ReadCursorLineInfo()
autocmd WinLeave * setlocal nocursorline
autocmd VimEnter,WinEnter,BufWinEnter * setlocal cursorline
autocmd InsertEnter * highlight CursorLine term=underline cterm=NONE ctermbg=16 guibg=LightGray
autocmd InsertLeave * execute g:cursorl_hi
augroup END
Without this setting, cursorline is green if we use molokai256, and characters under cursorline is white (the color of ctermfg setting), which is not the colors when there is no highlighted cursorline.
This snippets isn't general. I mean, when you change the color scheme, the color of cursorline in insert mode may not be proper.
I post it here, and I hope it can be a reference.
How to disable this vertical line in editor?
I guess its a word wrap gutter cause whenever i'm writing it always break upon hitting that line.
edit:
I tried setting :set nowrap
so i guess its not related to word wrap at all.
its so annoying as you can see it negates the code syntax-highlighting it covers.. btw what was that line for?
Few days ago, I had the same problem as #13 . After a new update the errors were different.
[neobundle] `NeoBundle` commands must be executed within a neobundle#begin/end block. Please check your usage.
[neobundle] `NeoBundle` commands must be executed within a neobundle#begin/end block. Please check your usage.
[neobundle] `NeoBundle` commands must be executed within a neobundle#begin/end block. Please check your usage.
[neobundle] `NeoBundle` commands must be executed within a neobundle#begin/end block. Please check your usage.
[neobundle] `NeoBundle` commands must be executed within a neobundle#begin/end block. Please check your usage.
[neobundle] `NeoBundle` commands must be executed within a neobundle#begin/end block. Please check your usage.
[neobundle] `NeoBundle` commands must be executed within a neobundle#begin/end block. Please check your usage.
[neobundle] `NeoBundle` commands must be executed within a neobundle#begin/end block. Please check your usage.
[neobundle] `NeoBundle` commands must be executed within a neobundle#begin/end block. Please check your usage.
[neobundle] `NeoBundle` commands must be executed within a neobundle#begin/end block. Please check your usage.
[neobundle] `NeoBundle` commands must be executed within a neobundle#begin/end block. Please check your usage.
[neobundle] `NeoBundle` commands must be executed within a neobundle#begin/end block. Please check your usage.
[neobundle] `NeoBundle` commands must be executed within a neobundle#begin/end block. Please check your usage.
[neobundle] `NeoBundle` commands must be executed within a neobundle#begin/end block. Please check your usage.
[neobundle] `NeoBundle` commands must be executed within a neobundle#begin/end block. Please check your usage.
I'm not familiar with vim plugins and I can't locate the problem.
hi! thanks for writing this, this made me finally switch to vim after so many tries and it has most features I use in Sublime Text editor by default. I am unable to see whitespaces that may have creeped up while I write code. How do I draw spaces in all files with • except in grey? (just like Sublime Text)
Is this possible?
Thanks.
Thanks for your plugin and works.
I've had a try and think It have big potential~~(but still lots work to do~~)
I think there should be a better way of modifing the mappings, like put them in a single file? (Also UI:font,theme,etc.)
Course I have lots of mappings defined in my vimrc, But I don't know whether they are conflict or what they are.
I'm new at vim. I dont know how to install packages or which packages i should install.
[unite.vim] function pymode#breakpoint#init, 27. satır
[unite.vim] Vim(python3):vim.error: Vim:<string>:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
[unite.vim] Error occurred while executing "open" action!
Any idea how to implement vimplug than "neobundle" ?
https://github.com/junegunn/vim-plug
how do I turn off the auto work completion/ suggester thing? thanks!
Hi @liangxianzhe , could you please add support for multi cursor mode, e.g. https://github.com/terryma/vim-multiple-cursors?
From the readme:
For Linux, you will need to figure out what the above script does, and install them according (apt-get etc). Please note a vim with lua support is needed.
to satisfy the requirements, in Debian, I've gotten these to match up:
apt-get install ctags tig ranger lua5.2 luajit python-pip vim vim-nox
pip install pylint virtualenvwrapper coverage
But cannot find any packages that provide ag
and ack
- any clues to these? Has anyone else gotten this installed/running in Debian or Ubuntu? Thanks
Hello,
First of all, thank you for this amazing plugin. Just to say I'm on ChakraOS and I've gone throught the installation without too many problems (and I'm not an adminsys).
But maybe you could just add a small section talking about dependencies, just to write down the brew install
line in the install script. Maybe just to say why the plugin needs them ? Actually I still have things that doesn't work yet but I'll fix them when I have time.
I've found almost all de packages on my distrib so maybe one day all send you a debian / ubuntu script because if it is possible on Arch it should be on Debian =)
Finally, I'm completely new to your plugin but in the readme, can you emphasize the usefull command in Unite. I've had a hard time finding how to tell NeoBundle how to install the plugin i've searched.
Well these are all remarks that I think, could enhance your documentation.
Keep on the good work !
[Pymode] Regenerate Rope cache ...
[Pymode]: error: invalid load key, 'A'.
Press ENTER or type command to continue
Hi ,Thanks for your oh-my-vim, I like it although i don't know it 100percent.
But now when i :w every time, there is an error, it is annoying....
Can you teach me how to fix it ~
Thanks a million
if you are a Chinese , you can teach me in Chinese
Thanks a million~
Hi,
I love what you have done with the whole configuration and I'm big fan of it. Please could you write detailed instruction how to add new plugins using neobundle and your configuration. I have marked that as an issue because there are a lot packages that could be installed and the whole process is complicated. I think I will drop using it if that part won't be covered.
Krystian
How do I fold functions (I am looking at a javascript file)?
space+e command has "toggle fold" but when I execute it, I get
/private/var/folders/zt/fghg3whn1px0_ndpww30wtsw0000gn/T/vW4uVzQ/126, line 1
Vim(normal):E490: No fold found
Error occurred while executing "execute" action!
Press ENTER or type command to continue
Am new to vim! but love that I am able to learn vim faster with your plugin setup. Thank you for writing this! Your docs are awesome.
Hi,
when trying to go to options with space+u I get this:
Error detected while processing FileType Auto commands for "*"
When trying to go to "coding" i get this error after:
Vim(call):E117: Unknown function: UltiSnips#FileTypeChanged
How can I get rid of ?
Thanks
I want to change the default line numbering mode to absolute, how to add that to my config?
Also how to remove the none
mode from being switched to using the Leader key + l
?
Do you have any idea about how to get rid of these ERRORS?
[neobundle] :NeoBundle commands usage is invalid.
[neobundle] :NeoBundle commands usage is invalid.
Error detected while processing /Users/lanjiann/.oh-my-vim/packages/basic.vimrc:
line 151:
E185: Cannot find color scheme 'molokai256'
[neobundle] :NeoBundle commands usage is invalid.
[neobundle] :NeoBundle commands usage is invalid.
[neobundle] :NeoBundle commands usage is invalid.
[neobundle] :NeoBundle commands usage is invalid.
[neobundle] :NeoBundle commands usage is invalid.
[neobundle] :NeoBundle commands usage is invalid.
[neobundle] :NeoBundle commands usage is invalid.
[neobundle] :NeoBundle commands usage is invalid.
[neobundle] :NeoBundle commands usage is invalid.
[neobundle] :NeoBundle commands usage is invalid.
[neobundle] :NeoBundle commands usage is invalid.
[neobundle] :NeoBundle commands usage is invalid.
[neobundle] :NeoBundle commands usage is invalid.
[neobundle] :NeoBundle commands usage is invalid.
[neobundle] :NeoBundle commands usage is invalid.
[neobundle] :NeoBundle commands usage is invalid.
[neobundle] :NeoBundle commands usage is invalid.
[neobundle] :NeoBundle commands usage is invalid.
[neobundle] :NeoBundle commands usage is invalid.
[neobundle] :NeoBundle commands usage is invalid.
[neobundle] :NeoBundle commands usage is invalid.
[neobundle] :NeoBundle commands usage is invalid.
[neobundle] :NeoBundle commands usage is invalid.
Error detected while processing function neobundle#parser#lazy..<SNR>8_parse_arg..neobundle#parser#_init_bundle..neobundle#init#_bundle..<SNR>5_init_depends:
line 11:
E18: Unexpected characters in :let
line 12:
E18: Unexpected characters in :let
line 13:
E18: Unexpected characters in :let
Error detected while processing function neobundle#parser#lazy:
line 11:
E18: Unexpected characters in :let
line 12:
E18: Unexpected characters in :let
Error detected while processing function neobundle#parser#lazy..neobundle#config#add..<SNR>6_add_depends:
line 3:
E121: Undefined variable: name
E116: Invalid arguments for function has_key(s:neobundles, depend.name)
E15: Invalid expression: !has_key(s:neobundles, depend.name)
[neobundle] :NeoBundle commands usage is invalid.
[neobundle] :NeoBundle commands usage is invalid.
[neobundle] :NeoBundle commands usage is invalid.
[neobundle] :NeoBundle commands usage is invalid.
[neobundle] :NeoBundle commands usage is invalid.
[neobundle] :NeoBundle commands usage is invalid.
The last commit/merge hasn't been for some time. Is there a more active fork?
If I do vim temp.r
then :set ft
says the filetype is "r", but r snippets don't work. However, if I do vim temp.r
then :set ft=python
, then :set ft=r
, then r snippets do work.
C files are the same -- I have to go via :set ft=python
:set ft=c
.
I have a clean install of oh-my-vim.
Hello,
After i have completed to install oh-my-vim i got .oh-my-vim/tools/check_for_upgrade.sh: Syntax error: "(" unexpected when i use vim command . I try to change #!/bin/sh to #!/bin/bash or #!/usr/bin/zsh
still not work .. Please help !! Thank for advanced.. :)
In Linux, loading vimrc will show error msgs like
E10: \ should be followed by /, ? or &
line 8:
E10: \ should be followed by /, ? or &
line 9:
E10: \ should be followed by /, ? or &
line 10:
E10: \ should be followed by /, ? or &
line 11:
E10: \ should be followed by /, ? or &
line 12:
E10: \ should be followed by /, ? or &
line 13:
E10: \ should be followed by /, ? or &
line 14:
E10: \ should be followed by /, ? or &
line 15:
E10: \ should be followed by /, ? or &
line 16:
E10: \ should be followed by /, ? or &
line 17:
E10: \ should be followed by /, ? or &
line 18:
E10: \ should be followed by /, ? or &
line 19:
E10: \ should be followed by /, ? or &
line 20:
E10: \ should be followed by /, ? or &
line 21:
E10: \ should be followed by /, ? or &
line 22:
E10: \ should be followed by /, ? or &
line 23:
E10: \ should be followed by /, ? or &
line 24:
E10: \ should be followed by /, ? or &
line 25:
E10: \ should be followed by /, ? or &
line 26:
E10: \ should be followed by /, ? or &
It turns out that in vimrc file need to have set nocompatible
.
I notice that when I used the arrow keys or j k to move up and down the text file the line numbering seems to change in reverse order making the currently focused line as the last line number and everything above the current line have numbering in reverse order. How can I turn this off? Thanks!
default curser move in insert-mode is weird, how can I change it to origin version?
Hi ! whats the simplest way to get nerdtree into this great config?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.