Disable yankring, update lusty, add italics
git-svn-id: http://photonzero.com/dotfiles/trunk@93 23f722f6-122a-0410-8cef-c75bd312dd78
This commit is contained in:
parent
505e3205d2
commit
b5f5d230a3
19 changed files with 2795 additions and 2608 deletions
|
|
@ -82,6 +82,10 @@ module VIM
|
|||
VIM::nonzero? VIM::evaluate("getbufvar(#{number()}, '&modified')")
|
||||
end
|
||||
|
||||
def listed?
|
||||
VIM::nonzero? VIM::evaluate("getbufvar(#{number()}, '&buflisted')")
|
||||
end
|
||||
|
||||
def self.obj_for_bufnr(n)
|
||||
# There's gotta be a better way to do this...
|
||||
(0..VIM::Buffer.count-1).each do |i|
|
||||
|
|
@ -110,3 +114,19 @@ module VIM
|
|||
end
|
||||
end
|
||||
|
||||
# Hack for wide CJK characters.
|
||||
if VIM::exists?("*strwidth")
|
||||
module VIM
|
||||
def self.strwidth(s)
|
||||
# strwidth() is defined in Vim 7.3.
|
||||
evaluate("strwidth('#{single_quote_escape(s)}')").to_i
|
||||
end
|
||||
end
|
||||
else
|
||||
module VIM
|
||||
def self.strwidth(s)
|
||||
s.length
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue