5if has('win32') || has ('win64')
6 let $VIMHOME = $HOME . "/vimfiles"
7elseif v:false && v:true
10 let $VIMHOME = $HOME . "/.vim"
13" show existing tab with 2 spaces width
15" when indenting with '>', use 2 spaces width
17" always set autoindenting on
20autocmd VimEnter * echo "Hello Vim"
22" Allow :W and :Wq to save too
28 autocmd FileType * echo "New filetype"
35function! HelloWorld(name)
36 let l:function_local = "function_local_var"
37 let l:parts = split(l:function_local, "_")
38 let l:greeting = "Hello " . a:name
39 return s:echo(l:greeting)
42function! source#Hello()
43 return "Hello from namespace"
46function! EchoFunc(...)
52imap <C-h> <C-r>=HelloWorld("World")<CR>
54command! -nargs=? Echo :call EchoFunc(<args>)
57let g:global = "global var"
58let s:script_var = "script var"
59let w:window_var = "window war"
60let b:buffer_var = "buffer war"
61let t:tab_var = "tab war"
66echo "Hello" ==# "Hello2"
67echo "Hello" ==? "Hello2"
68echo "Hello" == "Hello2"
69echo "Hello" is "Hello2"
70echo "Hello" isnot "Hello2"
72echo "Hello" !~ "Hello2"
73echo "Hello" !~ "Hello2"
75echo "/This/should/not/be/a/regex"
77" Error case from issue #1604 (https://github.com/sharkdp/bat/issues/1064)
78set runtimepath=~/foo/bar
83let g:dict.item = ['l1', 'l2']
85let g:dict2 = {'dict_item': ['l1', 'l2'], 'di2': 'x'}
89silent %s/regex/not_regex/
91filetype plugin indent on
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list