*v:hlsearch* *hlsearch-variable*
v:hlsearch 検索による強調表示がオンになっているかどうかを確認する変数。 |+extra_search| 機能が必要である 'hlsearch' が有効になっている 時のみ意味をなす。この変数を0に設定することは、 |:nohlsearch| コマンドを実行することと同様に働き、1に設定することは以下と同様に働く > let &hlsearch = &hlsearch
"vim | |
"vim | |
"vim | |
"vim | |
"vim | |
"vim | |
"vim | |
"vim | |
"vim | |
"vim |
" おまじない | |
" Load Once {{{ | |
if exists('g:loaded_helloworld') && g:loaded_helloworld | |
finish | |
endif | |
let g:loaded_helloworld = 1 | |
" }}} | |
" Saving 'cpoptions' {{{ | |
let s:save_cpo = &cpo |
#!/usr/bin/env python | |
# -*- coding:utf-8 -*- | |
# | |
# Download Screencast from Derek Vim tutorial | |
# Scraping | |
import urllib2 | |
from bs4 import BeautifulSoup | |
# youtube-dl |
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 18 2013 19:56:11) | |
Included patches: 1-94 | |
Compiled by root@haya14busa-ThinkPad-X200s | |
Huge version with GTK2-GNOME GUI. Features included (+) or not (-): | |
+acl +farsi +mouse_netterm +syntax | |
+arabic +file_in_path +mouse_sgr +tag_binary | |
+autocmd +find_in_path -mouse_sysmouse +tag_old_static | |
+balloon_eval +float +mouse_urxvt -tag_any_white | |
+browse +folding +mouse_xterm -tcl | |
++builtin_terms -footer +multi_byte +terminfo |
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Oct 23 2013 14:49:19) | |
MacOS X (unix) version | |
Included patches: 1-52 | |
Compiled by Homebrew | |
Huge version without GUI. Features included (+) or not (-): | |
+acl +farsi +mouse_netterm +syntax | |
+arabic +file_in_path +mouse_sgr +tag_binary | |
+autocmd +find_in_path -mouse_sysmouse +tag_old_static | |
-balloon_eval +float +mouse_urxvt -tag_any_white | |
-browse +folding +mouse_xterm -tcl |
noremap <expr>;c | |
\ ':<C-u>call EasyMotion#User(' . | |
\ '"\\<' . expand('<cword>') . '\\>",' . | |
\ '"' . EasyMotion#helper#mode(1) . '",2)<CR>' |
function! s:before_get_visual() | |
exec "normal! \<Esc>" | |
normal! gv | |
endfunction | |
function! s:after_get_visual() | |
normal! gv | |
endfunction | |
function! s:test_visual_scroll(mode) |
" Sample vim-easymotion setting with introducing new feature | |
" config leader key or turn off default mapping(recommend) | |
map <Leader> <Plug>(easymotion-prefix) | |
let g:EasyMotion_do_mapping = 0 " turn off | |
" bi-directional find motion | |
" - you can jump to anywhere with only three type `s{char}{target}` | |
" - `s<CR>` repeat last find motion. | |
" - default `s` can be replaced with `cl` but you can mapping any key you like. |
" buffer書き換え前 | |
let s:mychangedtick = b:changedtick | |
" buffer書き換えて操作 | |
" ... | |
" 書き換え後に | |
" for tpope/vim-repeat | |
if exists('g:repeat_tick') | |
if g:repeat_tick == s:mychangedtick |
*v:hlsearch* *hlsearch-variable*
v:hlsearch 検索による強調表示がオンになっているかどうかを確認する変数。 |+extra_search| 機能が必要である 'hlsearch' が有効になっている 時のみ意味をなす。この変数を0に設定することは、 |:nohlsearch| コマンドを実行することと同様に働き、1に設定することは以下と同様に働く > let &hlsearch = &hlsearch